ilbets
ilbets

Reputation: 768

Amazon IAP v2.0 don't responde on android live testing

I implemented Amazon IAP v2.0 on android application, on start of application I register PurchasingService, and call

    PurchasingService.getUserData();
    PurchasingService.getPurchaseUpdates(true);

And all is working while working in Amazon App Tester, but when I use Amazon Live Testing PurchasingService don't give any response (callbacks are not called : onUserDataResponse(), onPurchaseUpdatesResponse()). Also I used all specification for Proguard , and registered ResponseReceiver in manifest. All implementation was done using tutorial on amazon. In logs i have seen something like

D/AmazonBillingHelper﹕ checking isSubscriptionActive
D/AmazonBillingHelper﹕ currentSubscription is null

But I didnt implement AmazonBillingHelper

Also in log I found that there are some default listeners that ovveride my, is it ok ?

 D/Kiwi﹕ In App Purchasing SDK - Production Mode: d: PurchasingListener registered: com.my.package
 D/Kiwi﹕ In App Purchasing SDK - Production Mode: d: PurchasingListener registered: com.washingtonpost.android.paywall.billing.amazon.AmazonIAPListener

As I investigated this com.washingtonpost.android.paywall.billing.amazon.AmazonIAPListener is from Amazon App Tester, deleted it, but anyway it's not working

It's possible that it is connected with multidex build. Main dex should contain :

Custom, Applications, Activities, Services, Receivers, Providers, Instrumentations, Annotations

specification from amazon here and problem solving method on stackoverflow

Upvotes: 4

Views: 1132

Answers (1)

ilbets
ilbets

Reputation: 768

Apparently, Amazon App Test don't full fill requirements from live testing. Because generally if you call any request from onCreate() while testing in Sandbox - you'll receive response. On Live testing you should initialize listener in onCrate() but call any methods from onResume().

Upvotes: 1

Related Questions