Flutter自动续订订阅永远不会在沙盒中过期 [英] Flutter Auto-Renewable Subscription never expires in Sandbox
问题描述
我正在测试Flutter的in_app_purchase插件( https:// github .com / flutter / plugins / tree / master / packages / in_app_purchase )。
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).
问题在于,与此处描述的不同(测试订阅: https://medium.com/swift-india/auto-renewable-subscriptions-for-ios- 3a4068f11acd ),订阅似乎没有过期。
我已经等待了两个多小时,终止了该应用程序,将其卸载并重新安装-但是当我致电 queryPastPurchases 时,我总是会得到1个或多个 PurchaseDetails >对象...
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?
推荐答案
我不确定这是否有帮助,但是您是否设置了的
到 sandboxTesting
属性PurchaseParam true
或 false
?
I'm not sure if this is going to help but did you set the sandboxTesting
property of your PurchaseParam
to true
or false
?
我遇到了同样的问题,但是注意到即使我将 sandboxTesting
设置为 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.
这篇关于Flutter自动续订订阅永远不会在沙盒中过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!