简体   繁体   English

iOS-InApp订阅-到期日期

[英]iOS - InApp subscription - Expiry date

In my application, after successfully subscribing to the in-app purchase, i want to know the data of expiry and show an alert to user. 在我的应用程序中,成功订阅了应用程序内购买后,我想知道到期数据并向用户显示警报。 (Just for information purpose). (仅供参考)。 How can I do that without sending a verification receipt? 不发送验证收据怎么办?

Is this for an auto-renewing subscription? 这是用于自动续订的吗? The only way you can get the actual expiration date is by verifying the receipt with Apple's servers. 获取实际到期日期的唯一方法是通过使用Apple的服务器验证收据。 If you only want to display the original expiration date as a confirmation right after they subscribe, you can just calculate it based on the current date and subscription period for the product ID. 如果您只希望在订阅后立即显示原始到期日期作为确认,则可以仅基于产品ID的当前日期和订阅期进行计算。

But if you want to be able to display the current expiration date at any given time, or when the subscription renews, you have to verify the receipt. 但是,如果您希望能够在任何给定时间或订阅续订时显示当前的到期日期,则必须验证收据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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