Cordova > Capacitor localStorage missing?

I have an established Cordova app that uses localstorage extensively. After moving to Capacitor, all localstorage data is missing - I’m assuming this is because of the change in url scheme because the data still exists if I downgrade back to the Cordova implementation.

Does anyone know the default scheme for Cordova Android? Or a way to figure out what it is? Then I can configure Capacitor to use the “old” scheme.

There are some notes about this in the Capacitor docs, but nothing relating specifically to Android Cordova to Capacitor migration.

So after trying many different things, it turns out the default URL scheme for Cordova is “file” so setting capacitor.config to:

“server”: {
“androidScheme”: “file”
}

will get you access to any Cordova localStorage data on your new migrated Capacitor project.