Amazon IAP v2.0在Android实时测试中没有响应

时间:2015-05-05 12:50:45

标签: android in-app-purchase amazon

我在Android应用程序上实现了Amazon IAP v2.0,在应用程序启动时我注册了PurchasingService,然后调用

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

所有工作都在 Amazon App Tester 中工作,但当我使用 Amazon Live Testing PurchasingService时,不会给出任何响应(不会调用回调:{{ 1}})。我还使用了Proguard的所有规范,并在manifest中注册了ResponseReceiver。 所有实施都是使用tutorial on amazon完成的。 在日志中我见过类似

的内容
onUserDataResponse(), onPurchaseUpdatesResponse()

但我没有实施D/AmazonBillingHelper﹕ checking isSubscriptionActive D/AmazonBillingHelper﹕ currentSubscription is null

已编辑: 另外在日志中我发现有一些默认的监听器可以使用我的,是吗?

AmazonBillingHelper

编辑: 我调查此 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 来自 Amazon App Tester ,删除它,但无论如何它都无法正常工作

编辑:可能与multidex版本连接。 主要的dex应该包含:

  

自定义,应用程序,活动,服务,接收器,提供商,   仪器,注释

来自亚马逊here的规范和stackoverflow

上的问题解决方法

1 个答案:

答案 0 :(得分:1)

显然,亚马逊应用测试并未满足实时测试的要求。因为通常如果您在Sandbox中测试时调用onCreate()的任何请求 - 您将收到回复。在实时测试中,您应该在onCrate()中初始化侦听器,但调用onResume()中的任何方法。