I have an Android app built using Cordova. Version 1, which has been released for a while, stores some data using IndexedDB. I’m ready to release the next version but updating the app wipes all the data stored in IndexedDB.
What I noticed is that on Version 1, it uses cordova-android@^7.0.0 which uses file:// as the security origin (I knew this from the debug tool). Then, on the next version, I upgrade the cordova to cordova-android@^9.0.0. Now, it is using http://localhost as the security origin.
is there a way to migrate all the existing data when the app upgraded?