I am implementing auto renewable subscription.In that i have got the below question
Can a user be able to restore the subscription content even after it is expired?
if so how can i validate them and let them to download
Look at Restoring Auto-Renewable Subscriptions
Basically you need to call [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]
and you'll get back restored transactions. You should look at originalTransaction
property. You'll know transaction date for each transaction(also for expired ones). Then you look at product identifier and your app should know what's the lenght of subscription for each product identifier. And since you know start date and lenght of each transaction you can calculate time periods during which subscription was valid.
You validate them as any other transaction - send them to your server which will send then to http://buy.itunes.apple.com/verifyReceipt
(change buy to sandbox for testing).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With