This is a migrated thread and some comments may be shown as answers.

Local storage persistance

1 Answer 35 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mat-Moo
Top achievements
Rank 1
Mat-Moo asked on 22 Apr 2015, 09:07 PM
I'm saving data to local storage, and it all seems to work as expected... however if I quite the app (simulate a crash) and start again, the local storage data is blank. Not got a lot of data to save, but what's the best way to remember this data for the app (small amount of json).

1 Answer, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 24 Apr 2015, 03:13 PM
Hello Matthew,

Usually, the local storage data persists until removed from the app.
We can try to reproduce your case but for that purpose we will need some more details like targeting framework and device model and version you are testing on.

I would suggest testing on another device just to be sure it is not device specific issue. You can also debug your app on the device and check whether you have any populated data in Developer tools > Resources tab.

You can store data in a SQLite database using the SQLite plugin but for a small data I guess it is better to use the Local Storage.

Regards,
Zdravko
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
Mat-Moo
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Share this question
or