Hi DonRIF Ok so that gets handled by the iAP plugin (I'm using Cranberrygame's iAP plugin in Cluckles' Adventure).
It goes something like this. The user's purchase is stored in their account in iTunes / GooglePlay.
Then when the game is launched you need to have events that check for previous purchases and then restore those purchases to the game if any are present. This works even if the game is uninstalled and all the games data removed from the device. When the player reinstalls the game in the future, upon launching you can check the players previous purchases on their account, then restore them to the game.
I do this check and restore right at the beginning of the game when the title screen is visible.
Actually the 'purchase restore' process took a few attempts to get through the iOS approval process. They wouldnt approve my game unless I also included a 'restore purchase' button. So users can actually manually restore their purchases. But in my game the button isn't even needed, because the restore happens when the game is launched, I just had to include the button to make the reviewers happy. The Android version of Cluckles doesn't have the purchase restore button as it's not needed.
God bless my brother, thank you for all this valuable info that I'll keep in mind!
Much success to you, I hope you release a Steam version of Cluckles with tons more of content!
Oh one more thing, I noticed you have the "white screen" splash issue, if you want to get rid of the "white screen" just after the launch, add this plugin to the config.xml file:
<plugin name="cordova-plugin-splashscreen" source="npm" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="ShowSplashScreenSpinner" value="false" /> [/code:3gcyqlm1]
Peace!