I am implementing Auto Renewing subscriptions in my App. I am able to complete all the Purchases and Restorations perfectly. But i am kind of struck on what would be best ways to save the receipt details. Below are my questions.
- Is it a good idea to save the transaction details in NSUserDefaults and retrieve the details when needed?
- Is it a good idea to save the receipts in Documents Directory and the read it from there?
- What is the best way of checking the end date of the subscription? Do i need to constantly check the current date and then compare with the end date of the subscription every time the user tries to access the content?
- Can i get the end date of the subscription from the saved receipt or Do i need to contact the Apple server to get the end date of the subscription?
- How can i update my receipt once the subscription is auto renewed after the specified period?
I am aware of some approaches. But want to know the best approaches. Please guide me the best steps to achieve the above objectives. Thank you.