-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Works with cordova-plugin-ionic-webview? #2
Comments
Check out the https://github.com/paulpatarinski/cordova-plugin-migrate-localstorage fork for ionic-webview |
@paulpatarinski I've tried your fork of this plugin with ionic-webview 1.1.16 (as pointed out in your disclaimer) however it does not copy the old localStorage (from the UIWebView) to the WKWebView. I do see in XCode the log that it sees there's no localStorage (as the NSLog of "No existing localstorage data found for WKWebView. Migrating data from UIWebView" is posted), so it attempts to copy over, but then when I check the localStorage it did not actually copy over. |
@hellkith Did you get any solution for coping the old localStoage to the WKWEbView for iOS? |
yes, I changed some of the code in the MigrateLocalStorage.m. IF you replace the contents of your MigrateLocalStorage.m it should work. So easy way to test this is to have an install of your app with the UIWebView, make a backup of that via XCode (Window -> devices -> click on app -> cogwheel -> download container). This way you can always replace the container with the UIWebView again if it fails. `#import "MigrateLocalStorage.h" @implementation MigrateLocalStorage
// Bail out if source file does not exist
}
#if TARGET_IPHONE_SIMULATOR
}
@end` |
Hi,
Great plugin.
Will it also work with this version: https://github.com/ionic-team/cordova-plugin-ionic-webview ?
The text was updated successfully, but these errors were encountered: