小编Byr*_*ron的帖子

IABHelper.queryInventoryAsync不返回任何购买,但启动产品流失败并显示"已拥有的项目"

我正在使用Google提供的IABHelper在In App Billing Version 3中遇到间歇性问题.

在启动新购买之前,我使用queryInventoryAsync检查未使用的购买.如果发现我消耗任何未消耗的购买并开始新的交易,如果不是直接开始新的交易.99%的时间它工作正常.

有时,当queryInventoryAsync未返回未使用的购买时,以下launchPurchaseFlow将失败并显示响应:7:项已经拥有.

INFO    [IABHelper] Starting async operation: refresh inventory
INFO    [IABHelper] Querying owned items, item type: inapp
INFO    [IABHelper] Package name: jp.co.mycompany.myapp
INFO    [IABHelper] Calling getPurchases with continuation token: null
INFO    [IABHelper] Owned items response: 0
INFO    [IABHelper] Continuation token: null
INFO    [IABHelper] Querying SKU details.
INFO    [IABHelper] queryPrices: nothing to do because there are no SKUs.
INFO    [IABHelper] Querying owned items, item type: subs
INFO    [IABHelper] Package name: jp.co.mycompany.myapp
INFO    [IABHelper] Calling getPurchases with …
Run Code Online (Sandbox Code Playgroud)

android in-app-billing

18
推荐指数
1
解决办法
3436
查看次数

标签 统计

android ×1

in-app-billing ×1