【问题标题】:Where and when to check the expiration date and cancellation date of the subscription in the app?何时何地在应用程序中查看订阅的到期日期和取消日期?
【发布时间】:2023-03-26 00:53:01
【问题描述】:

下午好,我有一个关于 InAppPurchases 自动续订订阅的问题。
付费订阅可以随时取消。

何时何地在应用程序中检查到期日期(以及可能的取消日期)?
我是否需要每次在 didFinishLauchingWithOptions 中调用 restoreCompletedTransactions 来获取当前日期?

【问题讨论】:

    标签: swift in-app-purchase in-app-subscription


    【解决方案1】:

    我的简短回答是在应用程序启动时执行一次(我相对肯定我读到这也是 Apple 的推荐)。

    长答案:这取决于您如何验证资格(本地或通过服务器)以及阻止用户使用/消费他们通过订阅获得的内容的重要性。

    对于自动续订订阅,您无需致电restoreCompletedTransactions,因为用户的收据始终反映他当前的资格。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-06-05
      • 1970-01-01
      • 2020-09-26
      • 2015-08-17
      • 2018-09-01
      • 2012-01-06
      相关资源
      最近更新 更多