breautek commented on issue #1534: URL: https://github.com/apache/cordova-ios/issues/1534#issuecomment-2863867017
> Thanks for the info. local storage seems indeed gone for my app after this change. That will complicate things a bit Migration is possible. Back when migrating from UIWebView to WKWebView, the exact same issue happened, different webview implementations used different data containers. At the end of the day, they are just sqlite databases on disk stored in a particular directory, under a particular name. So on app launch, using a plugin you can check to see if the old sqlite db exists, and if the new sqlite db location doesn't exist, then move/copy the old sqlite to the new location. Back in the day I used https://github.com/totalpave/cordova-plugin-migrate-localstorage, it won't be usable as is you'll need to fork and make some adjustments but the premise should be the same, assuming wkwebview sitll uses sqlite storage containers. The naming scheme is `<protocol>_<hostname>_0.localstorage`, so the old filename will be `file__0.localstorage` (file protocols has a null hostname). So you just need to copy/move the sqlite db to `app_localhost_0.localstorage` -- 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-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org