Aris Miliotis
Posts: 0
Joined: Fri May 30, 2014 4:52 pm

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....

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Data for ever :)

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&quot

//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.

Aris Miliotis
Posts: 0
Joined: Fri May 30, 2014 4:52 pm

Data for ever :)

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?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Data for ever :)

Indeed. Please find more here http://devcenter.appery.io/documentat...

Return to “Issues”