I'm developing a Windows Phone 8 app where users can buy coins using In-App purchase.
The app will be free, and it will have 25 free coins. Every time a user do something, I will discount a coin until the user doesn't any and he/she must have to buy more coins.
To store the remaining coins, I'm going to use Isolated Storage Settings Class. But here is where I have found my problem:
If user deletes the app and install it again, it will have another 25 free coins.
But I don't want that. He can delete it and reinstall every time he doesn't have free coins.
Maybe the problem here is that I'm storing the remaining coins on Isolated Storage.
If user deletes the app, and install it again, I want to keep app's preferences (including remaining coins) or maybe don't give to the user the free coins anymore.
Maybe I can add a free purchase only once to every user (like a durable).
How can I solve this problem?