简体   繁体   中英

Testing Android IAB - Subscription is cancelled but purchase status is still active

Google has made IAB testing much simpler and when I'm testing a monthly subscription runs for 5 minutes and then I got the mail from Play Store:

Your ... subscription from ... on Google Play has been cancelled.

But when query inventory / purchase over Play Store API, I still get

"purchaseState":0

Which means "OK". I have been waiting for a day - may be it does not work immediately - but it's still stuck at 0 / OK. Am I doing something wrong?

我也遇到了同样的问题,google将订阅信息保存在你手机的缓存中,所以唯一的解决方法是清理应用数据,当然这不是一个可行的解决方案,另一个是更新应用程序的信息经常订阅,看看它们是否匹配,但我不知道该怎么做。

在命令行中输入以下内容以清除设备上的已购买项目缓存:

adb shell pm clear com.android.vending

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM