问题描述
我有一个使用应用内购买的应用.除了 UI 组件,我已经集成了 Dungeons 示例中的所有代码.我已经提交了我的草稿 apk,激活了它,创建了我的应用内购买,所有这些都被管理并发布了.
I have an app that uses in-app purchasses. I have integrated all the code from the Dungeons example except for the UI components. I have submitted my draft apk, activated it, created my in-app purchases, all of which are managed, and published them.
我成功地购买了我的应用内商品并解锁了相应的内容,没有任何问题.我遇到的问题是,每当我调用恢复事务时,我都会返回错误代码 RESULT_SERVICE_UNAVAILABLE.我知道结果代码意味着该应用程序无法访问商店,但这没有任何意义,因为我可以很好地购买商品.
I am successfully able to purchase my in-app items and unlock the corresponding content without issue. The problem I am running into is that whenever I call to restore transactions, I get back the error code RESULT_SERVICE_UNAVAILABLE. I know that the result code means that the app can't access the store, but that makes no sense seeing as I can purchase items just fine.
我在装有 Android v2.3.6 和 Google Play v3.5.16 的 HTC Nexus One 上运行.我正在通过 WiFi 连接,因为该设备没有数据计划.安装的apk和提交的draft apk完全一样.我正在通过 adb -d install 命令安装 apk.
I am running on an HTC Nexus One with Android v2.3.6 and Google Play v3.5.16. I am connecting over WiFi because there is no data plan for the device. The apk installed is exactly the same as the draft apk submitted. I am installing the apk via adb -d install command.
任何可能导致此问题或在哪里查看的建议将不胜感激.
Any suggestions of what might cause this or where to look would be greatly appreciated.
谢谢
推荐答案
如果在日志中发现类似信息:
if you find similar message in the log:
05-30 09:28:23.760:E/Volley(4636):[13] BasicNetwork.performRequest:https://android.clients.google.com/vending/api/ApiRequest
05-30 09:28:23.760: E/Volley(4636): [13] BasicNetwork.performRequest: Unexpected response code 429 for https://android.clients.google.com/vending/api/ApiRequest
这可能意味着您在一定时间内发送了过多的 RESTORE_TRANSACTIONS 请求.谷歌显然有一些限制要求.它在测试应用内计费期间发生在我身上,大约.20-30 恢复事务请求正常,然后 - 完全相同的问题 - 服务不可用响应.
it can mean that you've send too much RESTORE_TRANSACTIONS request in certain amount of time. Google has clearly some throttling on request. It happened to me during testing in-app billing, approx. 20-30 restore transactions request went ok, and then - exactly the same problem - service unavailable response.
这篇关于Android RESTORE_TRANSACTIONS 返回 RESULT_SERVICE_UNAVAILABLE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!