I need to set a global variable when a user makes an in-app purchase. I could use NSUserDefaults and just have a key called "Acquired", but that doesn't seem very safe.
What is the best way to securely store data so that I know whether a purchase is made or not?
For example, in a particular view, I need to know whether to show or not the Buy button. Obviously, this should be hidden if they have already made a purchase.
source
share