Hello people so i have a IAP in my game it’s simple disable ads(non - consumable) which disables gameobject. But how i can make sure that the next time the user starts the game the gameobject is not enabled again. It’s iOS game thank you!
There is nothing in Unity IAP that does inventory management, but there’s are several ways that people solve that problem.
The easiest and least secure way is to store a setting in PlayerPrefs.
A small step above that would be to serialize the data (to make it slightly more difficult to read & edit). There’s a great tutorial explaining one way to do that:
The most secure way is to store the data on your own server and let that be the source of truth for what user owns what items.
I suppose, since it’s a non-consumable, you could read and parse the receipt every time the app starts:
I forgot to mention, there was a talk at Unite LA last year that discussed various options for persisting data for mobile games:
1 Like