-
Notifications
You must be signed in to change notification settings - Fork 214
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
iOS error Failed to load resource: unsupported URL #246
Comments
I updated the following method for what it is worth and its working on my emulator, hopefully its fixed ..Im not sure why I have to change this other than cdvfile:/ path no longer supported in WKWebview
|
Hi, The change that @dpsa-dev provided works for me. So the trick is to return |
Hi there, bad news about the above fix is that it didnt work an actual device/only on emulators. A path related issue appeared and it seemed apparent that it was a iOS restriction on the specific path. I didn't find a fix for this so for me this is still not working on WKWebview. If you do find a solution please let me know. |
@shadow476z , The solution above works for me (also on an actual device) when I load the images from the cacheUrl asynchronously with a XMLHTTPRequest. Since most of my images are loaded asynchronously, I will stick to that for now, while awaiting a more general solution.. |
It didn't work for me. I'm getting : "Not allowed to load local resource: file:///var/mobile/Containers/Dat....". I'm using Cordova-ios 6.0.0. Have you faced this issue as well ? |
Frends, you have solution by this question? |
Hi guys
Great plugin but since the change to WKWebview this plugin has stopped working for me. I've switched to v2.1.1 which is working fine on Android. I'm using Cordova with the following plugins
"cordova-plugin-wkwebview-engine": "1.2.1",
"cordova-plugin-wkwebview-file-xhr": "2.1.4"
The following noted from the console indicates the file is downloaded/stored correctly but when fetching it it fails.
[Log] INFO: Download complete: file:///Users/shadow4768/Library/Developer/CoreSimulator/Devices/3965C47C-7718-48C3-82ED-DF9A2CCB3989/data/Containers/Data/Application/3BFC0F90-F7D4-4DFA-8648-0F440929F835/Library/NoCloud/imgcache/5b1950b1ee383f3fdd0e51bf84dfdbd505006d79 (cordova.js, line 1540)
[Log] INFO: Cached file size: 37161 (cordova.js, line 1540)
[Log] INFO: current size: 2533404 (cordova.js, line 1540)
[Log] INFO: com.apple.MobileBackup metadata set (cordova.js, line 1540)
[Log] INFO: File getdocument?documentid=41623&width=300 loaded from cache (cordova.js, line 1540)
[Error] Failed to load resource: unsupported URL cdvfile://localhost/library-nosync/imgcache/91c59e590d88a60c252d8281aa165be35a7d5798
Any ideas how I could get around this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered: