Closed mparpaillon closed 8 years ago
Ok I checked the downloaded datas and everything is there. So I guess it only fails when I try to access the file via its URI file:///var/mobile/Containers/Data/Application/AE18194F-1B41-456C-AC93-459387D5D52E/Library/NoCloud/content-sync/my-file.png
@mparpaillon you should be able to use Sync.loadUrl("file://...") to load your assets. Install plugin using:
cordova plugin add https://github.com/phonegap/phonegap-plugin-contentsync.git
Let me know if it works for you
Oh nice. Could you give me an example of how to use it in a img tag or a background-image ? I'm not sure I understand how to use it :)
Thanks a lot
Haha there's a little typo in your condition I think
if(url) {
throw new Error('URL is required.');
}
Hi, I'm using this plugin on iOS9 (Webkit Webview) with cordova-ios 4.0.1 and I have a issue.
I have several assets that I need to add remotely on my app. It used to work great but iOS9 (and/or wkwebview) seems to break it.
The download works fine. The unzip too apparently. But I can't access the assets in it (I get a "Failed to load resource")
Here is the log:
Everything works fine on Android though.
Is there a way to check if the images are indeed here ? I have no idea how to debug this.
Thanks a lot