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
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 atoriginalTransaction
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 tohttp://buy.itunes.apple.com/verifyReceipt
(change buy to sandbox for testing).You can use this method validate to the subscription.because this is provide subscription start and expire date.
Tips--
Implement Checking Subscription, using application delegate method applicationDidEnterBackground.