I have a cookie clicker like app, and I'm up to the stage where I need to save the amount of cookies a user has locally. But because this is an ever changing variable, I'm having trouble doing it.
var cookies = 0;
Cordova use regular webview so you can use localstorage like in a webkit browser.
localStorage.setItem("cookies ", 1);
var cookies =localStorage.getItem("cookies");