Search code examples
jqueryioscordovalocal-storagemonaca

Persistent data storage in Cordova using Monaca.io


I am having a problem where app settings in localStorage is sometimes being deleted for some of my users in iOS. I understand that iOS will delete these if space is needed. My app is built using Monaca.io/Cordova/OnsenUI/JQuery. Can someone suggest a solution that will persist these data reliably? I have heard that WebSQL is on it's way out and for my purposes this is likely overkill. I am just storing a set of liked entities in JSON.


Solution

  • Monaca runs cordova (aka phonegap) under the hood, so it accepts it's plugins. One that solves your problem is NativeStorate, just check it out.