OGeek|极客世界-中国程序员成长平台

标题: ios - 在沙盒模式下检查应用内购买自动续订订阅 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 19:55
标题: ios - 在沙盒模式下检查应用内购买自动续订订阅

我的应用程序中的自动续订收据更新出现延迟。

例如,如果用户订阅了 7 天的订阅和一周的免费试用,

所以根据上面的信息,在前 15 分钟内我应该有一个有效的订阅。但有时它不会返回事件订阅。

我发现的问题甚至在前 3 分钟之后,收据还没有更新,所以当我将到期日期与当前时间进行比较时,它会在订阅期到期时返回。

这在沙盒模式中很常见还是我做错了什么?



Best Answer-推荐答案


Testing Auto-Renewable Subscriptions

When testing auto-renewable subscriptions in the test environment, keep in mind that the duration times are compressed. Additionally, test subscriptions only auto-renew a maximum of six times. Table 3-1 lists the compressed duration times.

Table 3-1  Subscription durations for testing
Actual duration
Test duration
1 week    3 minutes
1 month   5 minutes
2 months 10 minutes
3 months 15 minutes
6 months 30 minutes
1 year    1 hour

引用这个网址: https://help.apple.com/app-store-connect/#/dev7e89e149d

关于ios - 在沙盒模式下检查应用内购买自动续订订阅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44715994/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4