使用 storekit 设置不可续订订阅的到期日期

Setting expiry date for Non-Renewable subscription using storekit

我正在为我的新应用程序编写一个不可更新的订阅模块。它包括 1 个月、3 个月和 6 个月的订阅期。我不明白,如何使用 icloud 设置到期日期。任何帮助将不胜感激?

对于 Apple,没有 "within the validity period" 非续订订阅。这段时间的长短,幸运还是不幸,由开发者决定。

订阅 validity/expiry date 由开发者决定。

开发人员使用自己的服务器来跟踪非续订订阅的到期时间似乎很常见。

"So if When you use iCloud for restoration you should have to manage expiry date on your own server..."

Non-renewable subscriptions. Subscriptions that don’t involve delivering episodic content. Examples include access to a database of historic photos or a collection of flight maps. It’s your app’s responsibility to make the subscription available on all of the user’s devices and to let users restore the purchase. This product type is often used when your users already have an account on your server that you can use to identify them when restoring content. Expiration and the duration of the subscription are also left to your app (or your server) to implement and enforce.

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Products.html

希望对你有帮助。