Data for ever :)
How can I hold some data on the device between sessions of running my app, so that every time my app runs I get that data back and don't have to start from the begining....
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
How can I hold some data on the device between sessions of running my app, so that every time my app runs I get that data back and don't have to start from the begining....
Hi Aris.
You can use LSV(local storage variable) for these goals.
Please pass this tutorial to understand how to use this feature.
http://devcenter.appery.io/tutorials/...
Also here is a common JS code to work with LSV:
precode
var someVariable = "Hello world"
//Store someVariable into "someLSV".
localStorage.setItem("someLSV", someVariable);
//Restore someVariable from "someLSV".
var restoredSomeVariable = localStorage.getItem("someLSV");
//Using restored value.
console.log(restoredSomeVariable);
/code/pre
Regards.
I know about that, I wasn't sure if I refresh the app if the data in LSV stays there and I can access them again when the application reloads?
Indeed. Please find more here http://devcenter.appery.io/documentat...