-
Notifications
You must be signed in to change notification settings - Fork 55
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
WKWebView support #24
Comments
Any updates for WKWebView? |
@jd0048 Nope. I don't recommend you using it, it is out-dated at the moment. |
Hello guys! I'm using this lib for an Ionic app and it works fine on android. Today I started with iOS and I'm using cordova-plugin-ionic-webview. You need to ionic-cache-src.js and search for:
change $window.cordova.file.documentsDirectory; to $window.cordova.file.documentsDirectory.substring(7);. It should work. It's a simple hack but it works if you need something fast. Why this works? When accessing files using WKWebView, you can not use "file://". That's why I'm using substring(7) there(to cut off that part). You can get a ref from here: https://ionicframework.com/docs/wkwebview/#rewriting-file Hope this helps! |
@devfelipereis thanks a lot, you help me so much. |
Has anybody managed to make this plugin work with wkwebview with local server?
The text was updated successfully, but these errors were encountered: