IAB consumePurchase()不再是静态响应工作android.test.purchased [英] IAB consumePurchase() no longer works for static response android.test.purchased
问题描述
我们的测试版的应用程序使用 android.test.purchased
,以便客户可以测试是免费的。但最近爆出的东西与消费这些测试产品。购买过程中仍然工作正常,但当我们试图消耗:
Our beta app uses android.test.purchased
so customers can test for free. But recently something broke with consuming these test products. The purchase process still works fine but when we try to consume:
int response = ms.consumePurchase(3, mContext.getPackageName(), token);
这现在总是返回 RESULT_DEVELOPER_ERROR == 5
。传递的数据显示有效,标记就是 inapp:com.lootworks.swords:android.test.purchased
我认为这是正确的静态测试产品
This now always returns RESULT_DEVELOPER_ERROR == 5
. The data passed appears valid, token is inapp:com.lootworks.swords:android.test.purchased
which I think is correct for the static test products.
同时我们所有的早期版本的应用程序也停止了工作,我们没有改变我们的code,所以它肯定看起来似乎改变与IAB本身。
Simultaneously all our earlier app versions also stopped working and we did not change our code, so it sure seems like something changed with IAB itself.
我还测试了购买/消费的真正(为$)的产品,并将其与相同的code成功。因此,消费问题似乎只影响静态响应测试项目。
I also tested purchase/consume of the real (for $) products and it succeeds with the same code. So the consume problem seems to affect only the static response test item.
推荐答案
随着肖恩的帮助和一些额外的测试,这似乎是一个谷歌的发挥IAB回归。打开了一个错误<一个href="https://$c$c.google.com/p/android/issues/detail?id=53077">https://$c$c.google.com/p/android/issues/detail?id=53077
With Sean's help and some additional testing this appears to be a google play IAB regression. Have opened a bug https://code.google.com/p/android/issues/detail?id=53077
这篇关于IAB consumePurchase()不再是静态响应工作android.test.purchased的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!