4

My app is build with Ionic / Cordova 5.0.0 - Using SQLite (PouchDB) for the majority of the data, and localStorage for preferences and what not.

Out of 300+ iOS users, I've had 4 users report complete data loss. The app simply reset to the original state as if Localstorage and the Websql data was blown out completely. All of these users are on iOS and running 8.4.*

I've tried to reproduce the problem by manually deleting all localstorage, which resets the app as expected, but the SQLite data remains. I simply cannot figure out anyway to reproduce this, let alone figure out how it could be happening.

Note: I haven't had any reports from Android.

Any ideas?

4
  • Do you backup user's data on a server or it only exists on their device? Oct 3, 2015 at 20:31
  • Backup and syncing is available.
    – CorbinUX
    Oct 4, 2015 at 1:16
  • Any luck figuring this out yet? I'm experiencing similar issues with an app built on Cordova 5+ using Web SQL. Nov 7, 2015 at 16:36
  • 1
    @thisisbrians After talking with a few users that this happened to, I now suspect it happens when an Apple device is running low on space. Rumor has it, Apple will just blow away certain types of files and data to help free up space. Which is why Apple recommends that any local data should be able to be re-created by the app.
    – CorbinUX
    Nov 8, 2015 at 17:08

1 Answer 1

3

As I've recently discovered, iOS wipes localstorage when the device is low on space.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.