I am finishing up a new app which will have non-renewing subscription as in-app purchase and need some advise on where to save a file that contains the subscription info.
This file will be created when the user purchases a limited time subscription to app’s premium features and will contain the expiration date among other items. The app will look here at times to check if the user has a subscription and is current on it. This file will be deleted after the subscription expires.
Is File.DirLibrary the best place to create such a file? If not, where?
Two more caveats:
Appreciate any guidance.
This file will be created when the user purchases a limited time subscription to app’s premium features and will contain the expiration date among other items. The app will look here at times to check if the user has a subscription and is current on it. This file will be deleted after the subscription expires.
Is File.DirLibrary the best place to create such a file? If not, where?
Two more caveats:
1. The file should be automatically backed up by iTunes so it gets restored if the user deletes and reinstalls the app or reinstalls it on another iOS device with the same ID, and
2. The file should not be visible in iTunes as a shared file thus preventing the user from copying and passing it to others.
Appreciate any guidance.