也许有人有经验可以告诉我如何检测用户是否取消订阅?
仅供引用:订阅前我没有试用版。
例如,用户安装应用进行订阅,5 个月后决定取消订阅。我怎样才能检测到它?我想知道它,因为根据它我将禁止访问我的应用程序。
谢谢。
最佳答案
如果您的客户购买了 12 个月的订阅并在 5 个月后取消,您必须交付他/她所购买的产品。 在订阅结束之前,您不能禁止访问您的应用。
如果您的客户购买月度订阅,同样适用,但您将在期末验证并允许或不允许访问,但之前绝不会。
A subscription is paid for in full when it is purchased. Users can receive a refund only by contacting Apple customer service. For example, if the user accidentally buys the wrong product, customer support can cancel the subscription and issue a full or partial refund. Customers may cancel a subscription in the middle of a subscription period, but the subscription remains paid through the end of the same period.
也就是说……
您可以将此信息存储在您的应用中,或进行服务器验证以检查收据中的新数据。
有很多文档和示例,您可以将它们全部混合起来并制定自己的解决方案。
新的 iTunes 还提供了一个 url 回调字段,它会向您发送一个 json,其中包含您订阅中的所有交易更新。
关于ios - 取消 Apple 自动续订订阅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45739711/