Local storage persistance

Thread is closed for posting
2 posts, 0 answers
  1. Mat-Moo
    Mat-Moo avatar
    103 posts
    Member since:
    Nov 2012

    Posted 22 Apr 2015 Link to this post

    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).
  2. Zdravko
    Zdravko avatar
    657 posts

    Posted 24 Apr 2015 Link to this post

    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.


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

Back to Top