@PedroVicente wrote:
I am following the sample
http://docs.sdkbox.com/en/plugins/iap/v3-cpp/
but I have this error in my app
after
sdkbox::IAP::init(); sdkbox::IAP::setDebug(true); sdkbox::IAP::setListener(this); sdkbox::IAP::refresh();
Output is
INF: SDKBox IAP: creating Products list:
2016-01-25 00:00:10.171 wordbuild iOS[349:32620] Reachability Flag Status: -R ------- networkStatusForFlags
no native iap wrapper listenerRefreshing products: 'word_build_word_size_01'Refreshing products: 'word_build_word_size_01'2016-01-25 00:00:10.173 wordbuild iOS[349:32620] Requesting products: {(
"word_build_word_size_01"
)}
libpng warning: iCCP: known incorrect sRGB profile
2016-01-25 00:00:10.366 wordbuild iOS[349:32620] WARNING!, Products size is 0
IAP: ========= IAP Item =========
IAP: Name: word_build_word_size
IAP: ID: word_build_word_size_01
IAP: Title:
IAP: Desc:
IAP: Price:
IAP: Price Value: 0.000000
2016-01-25 00:00:10.550 wordbuild iOS[349:32620] WARNING!, Products size is 0
IAP: ========= IAP Item =========
IAP: Name: word_build_word_size
IAP: ID: word_build_word_size_01
IAP: Title:
IAP: Desc:
IAP: Price:
IAP: Price Value: 0.000000
2016-01-25 00:00:14.571 wordbuild iOS[349:32620] FBSDKLog: FBSDKAppEvents: Flushed @ 1453701614, 2 events due to 'Timer' - {
"advertiser_id" = "CFD75843-6FAF-4098-8499-ABD073A00C2F";
"advertiser_tracking_enabled" = 1;
"anon_id" = "XZB8EF8C52-1ABD-434D-BE67-9FCD2CA50F65";
"application_tracking_enabled" = 1;
event = "CUSTOM_APP_EVENTS";
extinfo = "[\"i2\",\"wordbuildfree\",\"1\",\"4\",\"9.2\",\"iPhone7,2\",\"en_US\",\"CST\",\"AT&T\",375,667,\"2.00\",2,12,7]";
"url_schemes" = "[\"fb908618432484237\",\"fbauth2\"]";
}
Events: [
{
"event" : {
"ui" : "noui",
"eventName" : "fbmobile_activate_app",
"_logTime" : 1453701599,
"fb_mobile_launch_source" : "Unclassified"
},
"isImplicit" : false
},
{
"event" : {
"fb_mobile_time_between_sessions" : "session_quanta_3",
"eventName" : "fbmobile_deactivate_app",
"fb_mobile_launch_source" : "Unclassified",
"_logTime" : 1453701599,
"fb_mobile_app_interruptions" : 0,
"ui" : "noui",
"_valueToSum" : 8
},
"isImplicit" : false
}
]
Flush Result : SuccessAfter call to
sdkbox::IAP::purchase("word_build_word_size");
Output is
2016-01-25 00:05:41.672 wordbuild iOS[349:32620] Reachability Flag Status: -R ------- networkStatusForFlags
2016-01-25 00:05:41.672 wordbuild iOS[349:32620] Invalid product: word_build_word_size_01 please double check the product id on itunes connect
Purchase Failed: Invalid product please double check the product id on itunes connect
2016-01-25 00:05:41.674 wordbuild iOS[349:32620] Reachability Flag Status: -R ------- networkStatusForFlagsMy sdkbox_config.json file is
{
"ios": {
"Facebook": {
"debug": true
},
"iap": {
"items": {
"word_build_word_size": {
"type": "non_consumable",
"id": "word_build_word_size_01"
}
}
}
}
}Any idea? Thanks
Posts: 10
Participants: 4