Question:
Where on an iOS-device can small pieces of information (just a few bytes, in my case just 1 bit) be stored, so that they keep available after the app gets deleted from the phone and reinstalled later again?
Background:
I am developing an App that will come into appstore for free. Together with the app comes a free test-package. This test-package gives access to a limited number of items on my server for a limited time. If the user wants, he/she can buy additional packages for more items and for a longer duration.
To use this packages each user must create an account on my server. It is easy to make shure that per each account only one free package can be used. But I don't see a way to hold a user from creating hundrets of additional accounts. So I want more:
I want, that each user (each living person) can only use one free package, independend from the number of accounts he/she will create.
I know, that it is imposible to restrict this at the level of users (living persons). But to restict it on phones is acceptable, since I believe, that there are not many persons using more that 2 or 3 iPhones at the same time. If a single person uses my app on 3 different iPhones just to be able to use 3 free packages with 3 different accounts, then this is acceptable to me.
But to do so, I need to store the information somewhere on the phone, that the free package, that was delivered together with the app, is already in use. But when the user uninstalls the app and reinstalles it later, then this information must still be available to the app. And I don't know where to store this tiny 1-bit-information to stay stored after the app is deleted from the phone.
Can you help?