android - IAB consumePurchase() 不再适用于静态响应 android.test.purchased

标签 android in-app-billing

我们的测试版应用程序使用 android.test.purchased,因此客户可以免费测试。但最近在消费这些测试产品时出现了一些问题。购买过程仍然正常,但当我们尝试消费时:

int response = ms.consumePurchase(3, mContext.getPackageName(), token);

这现在总是返回 RESULT_DEVELOPER_ERROR == 5。传递的数据似乎有效, token 是 inapp:com.lootworks.swords:android.test.purchased,我认为这对于静态测试产品是正确的。

同时,我们所有早期的应用程序版本也停止工作,我们没有更改代码,因此 IAB 本身似乎确实发生了一些变化。

我还测试了真实(美元)产品的购买/消费,并且使用相同的代码成功了。所以消耗问题似乎只影响静态响应测试项目。

最佳答案

在 Sean 的帮助和一些额外的测试下,这似乎是一个 google play IAB 回归。已开bug https://code.google.com/p/android/issues/detail?id=53077

关于android - IAB consumePurchase() 不再适用于静态响应 android.test.purchased,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15324075/

相关文章:

android - MpAndroidChart 错误 : Line chart fill color on pre API 21 devices

android - setOnKeyListener 在此代码中如何工作?

android - 在 Android 上为 SaaS 使用外部支付处理器,而不是 Google Play 应用内结算

android - 此版本的应用程序未配置为通过 Google Play 计费

android - 在 Google Play 上隐藏应用程序

android - 无法更新android中sqlite表中的一行

java - 获取 Google Play 应用内订阅的到期日期

android - 如何更改自定义适配器中按钮单击时的按钮文本

android - 整合应用内促销

android - 更改 android 应用内产品的默认语言