I am making a game where the user can buy coins via CocoonJS in-app purchases. I want to store the coins in a variable that saves for the next play session (even if the user quits the app), but I am wary that if I use WebStorage then all coins could be lost if the user clears the browser cache.
What alternatives are there? I am making an Android app.
Webstorage's informations are independent from the browser's cache, so even if it gets cleared, the informations will still be there.
Develop games in your browser. Powerful, performant & highly capable.
Oh, OK! Thanks!