How should an iOS app prevent consumable items from being reused?
-
13-04-2021 - |
Question
Probably a newbie question, I am using the Verify Store Receipts API to verify purchases of consumable items. How can I mark these items consumed so that the same receipt cannot be used again? Is there any option other than storing the used receipts?
La solution
Perhaps you could use a backend service to track receipts. Parse has brilliantly simple SDKs for iOS and Android that make it easy to persist bits of data to a provided server.
Autres conseils
You could use iCloud (or normal UserDefaults) for that. However, you will probably prefer using your own servers.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow