2

I am working on an app which has our own user database and cross platforms subscription. and my questions are:

pre-condition: in iOS, user did login with username and did auto-renew subscription.

1.if user deleted the app, will it cancel the auto-renew subscription for the app?

  1. if user cancel the subscription from settings or from itunes, how do we know which user canceled the services?(I dont have game center id). I would like to inform my server that this user canceled subscription.

basically, how do we know a user did auto-renew or canceled the subscription without opening app. Is there any unique id in apple's receipt which we can get to validate the user id.

Thanks.

4

3 回答 3

1

得到了一个粗略的解决方案。基本上,当用户从应用程序订阅时,您还应该将收据发送到您自己的服务器,然后从自己的服务器使用收据向苹果服务器请求状态。这是用于跨平台订阅。单平台应用程序是不必要的。

于 2017-03-18T02:27:17.067 回答
0

关于您的问题,是的,当您收到取消通知 webhook 时,您应该base64在您的服务器以及original_transaction_id每个订阅上保留收据,以便在您的数据库中找到该客户。

我们在订阅收入增长平台中实现了相同的功能。如果您有任何问题,请告诉我。

于 2019-10-18T05:12:01.803 回答
0

服务器通知现在可用。

如何启用它们:https ://developer.apple.com/documentation/storekit/in-app_purchase/enabling_status_update_notifications

如何设置服务器 URL:https ://help.apple.com/app-store-connect/#/dev0067a330b

于 2019-05-06T21:12:34.623 回答