IOS in apps is the best way to find out if a user has purchased

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.

+5
source share
2 answers
+3

. . restoreCompletedTransactions.

, "" , .

UPDATE

! . , , . , NSUserDefaults, , , .

, , .

0

All Articles