0

I need to save properties for my app and I'been looking at LocalStorage to do so, but I've read in some places that it is persistent and in some places that it isnt.

DATA_STORAGE_KEY: 'velocity-customerdata',

I have a data storage key that I need to access everytime to app opens to gain the saved data about the customer, such as their account ID so they don't have to login again. Is localstorage the best method for this? in C# I've always just used the application properties.

Cody Jones
  • 320
  • 1
  • 2
  • 13
  • Possible duplicate? http://stackoverflow.com/questions/9948284/how-persistent-is-localstorage – sherb Dec 07 '14 at 01:07

1 Answers1

0

If you seek for more persistent, i suggest you use sqlite cordova plugin. It's local database in your phone.

https://github.com/brodysoft/Cordova-SQLitePlugin

How to install it

cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin
Mohammad Nurdin
  • 20,761
  • 38
  • 117
  • 280