Flutter Auto-Renewable Subscription never expires in Sandbox

笑着哭i 提交于 2019-12-24 10:48:53

问题


I'm testing the in_app_purchase plugin for Flutter (https://github.com/flutter/plugins/tree/master/packages/in_app_purchase).

I've setup an Auto-Renewable Subscription, and was successfully able to purchase is using my sandbox user account (on an actual device).

The problem is that unlike what is described here (Testing Subscription: https://medium.com/swift-india/auto-renewable-subscriptions-for-ios-3a4068f11acd), the subscription doesn't seem to expire. I've waited for more than 2 hours, terminated the app, uninstalled and re-installed it - but when I call queryPastPurchases I always get 1 or more PurchaseDetails object...

How can I get a subscription to expire - so I can further test it?


回答1:


I'm not sure if this is going to help but did you set the sandboxTesting property of your PurchaseParam to true or false?

I am experiencing the same issue but have noticed that the purchase goes through even when I set sandboxTesting to false, this seems like incorrect behaviour considering that I am using a sandbox tester account. Wonder if that has something to do with it.



来源:https://stackoverflow.com/questions/57146042/flutter-auto-renewable-subscription-never-expires-in-sandbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!