What is the safest way to store data offline, assuming that I want to cover all platforms (Web, Electron & Cordova).
The reason I ask is, my app Fudget (which is a Cordova / Electron - but not Quasar) uses WebSQL to store the user's app data locally. This has worked ok for years (I occasionally had an Android user whose data would be wiped by the Android OS - but not often).
But in the last couple of days, 100's of Android users are having their WebSQL (and local storage) removed (does anybody know why?), so I'm getting a lot of angry emails from people who've lost all their data and settings.
I'm currently working on Fudget 2 (using Quasar) and want to make sure this doesn't happen again. I want to cover all the platforms (Web, Mac, Windows, iOS, Android) and want to store the data in JavaScript objects locally, so what is the safest way to store this data locally for all of these platforms?
Obviously it seems that Local Storage and WebSQL (which is now deprecated anyway) are not safe. But can I used IndexedDB safely, for example? Will this persist forever?
Or do I need to integrate some proper native data storage for each of the platforms (for example, using the cordova-plugin-nativestorage plugin for Cordova, and something similar for Electron)? And if this is the case, what do I do about the Web platform?