You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ka-ka-xyz (via GitHub)" <gi...@apache.org> on 2026/09/30 12:07:32 UTC

[I] How to keep the "file" scheme, or migrate localStorage/IndexedDB data, when upgrading to cordova-ios 8.1.1? [cordova-plugin-media]

ka-ka-xyz opened a new issue, #409:
URL: https://github.com/apache/cordova-plugin-media/issues/409

   
   ## Questions
   
   1. Is it possible to keep using the 'file' scheme (the behavior in 7.1.1) on cordova-ios 8.x so that existing localStorage / IndexedDB data remains accessible?
   2. If not, what is the recommended way to migrate existing localStorage / IndexedDB data?
   
   ## Background
   
   I have an existing iOS app built with cordova-ios 7.1.1 that stores data in localStorage and IndexedDB. After upgrading to cordova-ios 8.1.1 without changing config.xml, the page origin changed (see the table below), so the web storage from the previous app version is no longer accessible.
   
   | cordova-ios version | Page URL |
   |---------------------|-----------|
   | 7.1.1                           | `file:///private/var/containers/Bundle/Application/<UUID>/<AppName>.app//www/index.html#/` |
   | 8.1.1                          | `app://localhost/index.html#/` |
   
   - There is no `scheme` or `hostname` preference in my project's `config.xml` nor `platforms/ios/App/config.xml`.
   - The [6.0.0 release notes](https://cordova.apache.org/announcements/2020/06/01/cordova-ios-release-6.0.0.html) mention "default to file scheme" (GH-866), which matches what I saw with 7.1.1.
   - I could not find a note about changing this default in the 8.0.0 release notes.
   - The [config.xml reference](https://cordova.apache.org/docs/en/latest/config_ref/index.html) says the iOS `scheme` default is not defined and falls back to `app` if the value is invalid.
   
   ## Environment
   
   - cordova: 13.0.0
   - cordova-ios: 7.1.1 -> 8.1.1
   - Xcode: 26.6
   - iOS: 26.0, 18.5


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] How to keep the "file" scheme, or migrate localStorage/IndexedDB data, when upgrading to cordova-ios 8.1.1? [cordova-plugin-media]

Posted by "ka-ka-xyz (via GitHub)" <gi...@apache.org>.
ka-ka-xyz closed issue #409: How to keep the "file" scheme, or migrate localStorage/IndexedDB data, when upgrading to cordova-ios 8.1.1?
URL: https://github.com/apache/cordova-plugin-media/issues/409


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org