We’ve implemented the plug-in in an app. When testing using the Amazon SDK Tester, IAP works with no issues. When testing on device directly, we get an app hang because the IAP item is not yet associated with an approved app as shown in this adb logcat capture:
V( 207:0xdc) accel data: -0.119751 -0.088616 9.766890 D(12332:0x302d) GC\_CONCURRENT freed 4365K, 68% free 12707K/39111K, paused 1ms+3ms V(12332:0x303e) \> Class.forName: plugin.amazon.iap.LuaLoader V(12332:0x303e) \< Class.forName: plugin.amazon.iap.LuaLoader V(12332:0x303e) Loading via reflection: plugin.amazon.iap.LuaLoader I(12332:0x3065) Purchasing Framework initialization complete. Build ID 1.0.3 D(12332:0x303e) In App Purchasing SDK - Sandbox Mode: PurchasingObserver registered: plugin.amazon.iap.CoronaPurchasingObserver@4163d328 D(12332:0x3065) In App Purchasing SDK - Sandbox Mode: sendGetUserIdRequest W( 207:0x27b) Unable to start service Intent { act=com.amazon.testclient.iap.appUserId flg=0x10000000 (has extras) }: not found
APP HANG HERE
The last line in the logcat capture above identifies the problem - the reason that the service couldn’t start is that the app has not been approved by Amazon.
Therefore, you can ONLY use the SDK Tester to test IAP before approval.
Reference article: http://stackoverflow.com/questions/13559565/i-am-using-a-amazone-purchasing-api-and-this-types-of-error-occured-into-the-log
So here’s the interesting problem - we submitted the app to Amazon for approval and they rejected it - because of the hang that occurred when they tested it!
Anyone have suggestions on how to address this?