gpt4 book ai didi

android - 亚马逊内购 SDK : No response when testing IAPs in Live App Testing

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:38:26 28 4
gpt4 key购买 nike

我正在尝试将最新版本的亚马逊 IAP API 集成到我的 Android 4+ 应用程序中。当应用程序被旁加载到我的测试设备(Nexus 5 和 Kindle Fire)上并与 Amazon App Tester 一起使用时,一切似乎都运行良好。可以毫无问题地购买 IAP。

知道我已经将应用程序的“实时应用程序测试”版本上传到亚马逊商店并将其安装在我的测试设备上。无法运行此版本的 IAP。

这是将侧载版本与 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

如您所见,采购 SDK 已正确初始化。现在,当使用 Live App Testing 版本时,日志显示如下:

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.

如您所见,采购 SDK 似乎存在问题:

"Kiwi: WARNING: Use of deprecated method detected."

Live App Testing 版本是在 Kindle 上使用还是在 Nexus 上使用最新版本的 Amazon Store 应用程序都没有关系。结果完全一样:IAP 是不可能的。

这是一个已知问题吗?如何解决?

非常感谢

最佳答案

我终于找到了解决我问题中描述的问题的方法。抱歉没有早点发布这个...

有一个hint in the Amazon API docs这描述了可以用来混淆代码的一些限制。如果混淆太强,似乎某些 API 将不再起作用。

关于android - 亚马逊内购 SDK : No response when testing IAPs in Live App Testing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25782472/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com