【发布时间】:2015-07-15 05:14:18
【问题描述】:
我在android应用程序上实现了Amazon IAP v2.0,在应用程序启动时我注册了PurchasingService,并调用了
PurchasingService.getUserData();
PurchasingService.getPurchaseUpdates(true);
在 Amazon App Tester 中工作时一切正常,但是当我使用 Amazon Live Testing 时,PurchasingService 没有给出任何响应(不调用回调:@987654325 @)。我还使用了 Proguard 的所有规范,并在清单中注册了 ResponseReceiver 。 所有实现都是使用tutorial on amazon 完成的。 在日志中我看到了类似
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
已编辑:
当我调查此 com.washingtonpost.android.paywall.billing.amazon.AmazonIAPListener 来自 Amazon App Tester 时,已将其删除,但无论如何它都无法正常工作
编辑:它可能与 multidex 构建有关。 主 dex 应包含:
自定义、应用程序、活动、服务、接收者、提供者、 仪表、注释
来自亚马逊here的规范和stackoverflow上的问题解决方法
【问题讨论】:
标签: android in-app-purchase amazon