Auto Renewal Subscription Model

Hi There,


We the following scenario in our app and would like to understand how we can architect the process:


- Users in our app can buy in-app auto renewal subscriptions

- Our server should to be notified with this subscription so we can enable our services from backend and our team to work with the user


What is the best practice to cover the following scenario:


- if the user have updated his subscription from itunes directly!

- What is the required information we have to keep on the backend to be able to track the users subscriptions!

- Shall we do an daily job to check the subscription on itunes servers ?

would you please give us a detailed scenario for this process.


Thank you,

The procedure for implementing autorenewable subscriptions is described in this document:

https://developer.apple.com/library/tvos/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Introduction.html


After a subscription is purchased, your app on a user's device will get a call to its updatedTransactions method and a receipt. You can either rely on the call to the method or use the receipt as a means to determine when the subscription for that device will expire. Your app can then send information based on that call or the receipt to your server.

Thanks PBK for your response, however what if the user did update his subscription out of the app maybe from itunes, still the app will be called after the purchase ? and the observor will updatedTransaction will catch the purchase ?


Thanks

The user can't make a purchase from iTunes, only from within the app. The user can turn off the renewing function from iTunes but that does not affect their latest renewal.