question

priomobi avatar image
priomobi asked

No response from Purchasing SDK when testing IAPs in "Live App Testing"

Hi, Sorry for the crosspost with the "Testing & Submitting" forum, but I still got no reply over there. I also reported the issue directly to the support using the "Contact us" form but got reply from there as well... Please, can anyone help? I am trying to integrate the latest version of your IAP API into my Android 4+ app. Everything seems to work just fine when the app is sideloaded onto my test devices (Nexus 5 and Kindle Fire) and used with the Amazon App Tester. The IAPs can be purchased without any problem. Know I have uploaded a "Live App Testing" version of the app to the Amazon store and installed it on my test devices. Running this versions IAPs are not possible. This is the log output when using the sideloaded version with App Tester: D/PTLog (14109): IAPManager - init - using Amazon D/d (14109): In App Purchasing SDK - Sandbox Mode: PurchasingListener registered: xyz.IAPManager@425fe410 D/d (14109): In App Purchasing SDK - Sandbox Mode: PurchasingListener Context: xyz D/c (14109): In App Purchasing SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:GET_USER_ID_FOR_PURCHASE_UPDATES_PREFIX:1:fca787d5-4b9d-42e4-840f-ff28f3d13ac4 W/ContextImpl(14109): Implicit intents with startService are not safe: Intent { act=com.amazon.testclient.iap.appUserId flg=0x10000000 (has extras) } android.content.ContextWrapper.startService:494 com.amazon.device.iap.internal.a.c.a:87 com.amazon.device.iap.internal.a.c.a:150 D/c (14109): In App Purchasing SDK - Sandbox Mode: sendItemDataRequest W/ContextImpl(14109): Implicit intents with startService are not safe: Intent { act=com.amazon.testclient.iap.itemData flg=0x10000000 (has extras) } android.content.ContextWrapper.startService:494 com.amazon.device.iap.internal.a.c.a:137 com.amazon.device.iap.internal.d.a:103 D/c (14109): In App Purchasing SDK - Sandbox Mode: handleResponse I/c (14109): sendGetPurchaseUpdates with user idl3HL7XppEMhrOGDnur9-ulvqomrSg6qyODKmah76lJU= I/c (14109): send PurchaseUpdates with user id:l3HL7XppEMhrOGDnur9-ulvqomrSg6qyODKmah76lJU=;reset flag:true, local cursor:null, parsed from old requestId:GET_USER_ID_FOR_PURCHASE_UPDATES_PREFIX:1:fca787d5-4b9d-42e4-840f-ff28f3d13ac4 W/ContextImpl(14109): Implicit intents with startService are not safe: Intent { act=com.amazon.testclient.iap.purchaseUpdates flg=0x10000000 (has extras) } android.content.ContextWrapper.startService:494 com.amazon.device.iap.internal.a.c.a:421 com.amazon.device.iap.internal.a.c.e:388 D/c (14109): In App Purchasing SDK - Sandbox Mode: handleResponse As you can seen the Purchasing SDK is initialised just fine. Now, when using the Live App Testing version the log shows the following: D/PTLog (18032): IAPManager - init - using Amazon D/Kiwi (18032): In App Purchasing SDK - Production Mode: d: PurchasingListener registered: xyz.a.a.d@410435f8 D/Kiwi (18032): In App Purchasing SDK - Production Mode: d: PurchasingListener Context: xyz@41021558 D/Kiwi (18032): In App Purchasing SDK - Production Mode: a: sendGetPurchaseUpdates D/Kiwi (18032): Kiwi: WARNING: Use of deprecated method detected. E/Kiwi (18032): Kiwi: Kiwi subsystem is not fully initialized. Cannot process task. D/Kiwi (18032): In App Purchasing SDK - Production Mode: a: sendGetProductDataRequest D/Kiwi (18032): Kiwi: WARNING: Use of deprecated method detected. E/Kiwi (18032): Kiwi: Kiwi subsystem is not fully initialized. Cannot process task. As you can see there seems to be a problem with the Purchasing SDK: "Kiwi: WARNING: Use of deprecated method detected." It does not matter if the Live App Testing version is used on Kindle or on the Nexus with the latest version of the Amazon Store app. The result is exactly the same: IAPs are not possible. Is this a known issue? How can this be solved? Thank you very much
iap
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Bipin@Amazon avatar image
Bipin@Amazon answered
We see that you have not created the IAP items in distribution Portal. Please follow the instructions from below link to create all required items and submit in the portal. https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/submitting-copy Please note, once you have integrated and tested the In-App Purchasing API in sandbox environment, you need to define the item in portal and submit those before your app submission.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.