I am not convinced I know what “storage” method is being used at any given moment. I have installed cordova-sqlite-storage and ionic storage as per the documentation. But when I access “storage.driver” on an iOS device, it comes up blank. On chrome (on a Mac) it initially comes up as “asyncStorage” - I was kinda expecting “IndexDB” or “WebSQL”. I am also getting different data read at different times - sometimes I can see it is coming from Index DB sometimes it comes from WebSQL. When coming from WebSQL, the driver on Mac shows blank too. The difference seems to be whether I have done “inspect” on Chrome before accessing the app. I can see both version of the record in the chrome inspector for IndexDB and Web SQL.
My concern is that I have now had an instance of “lost” data on the iOS app. i.e. getting out of date data after the app was closed and reopened. Which feels like maybe the data is stored in two ways on iOS too? Hence my desire to be sure which is being used for Storage and for some consistency in the web version.
Any advice would be welcome.