phonegap / phonegap-plugin-contentsync

Download and cache remotely hosted content
Apache License 2.0
206 stars 98 forks source link

Not working on iOS13 with WKWebView #203

Open ragcsalo opened 4 years ago

ragcsalo commented 4 years ago

The sync process is successful, but I can't open the URL, it says it's outside of the sandbox:

Ignoring request to load this main resource because it is outside the sandbox

The file I want to open is located here:

/Users/benkesmith/Library/Developer/CoreSimulator/Devices/4CDF822C-5552-4881-BDD0-F01A0D046AF8/data/Containers/Data/Application/20E98EE5-C810-4EBB-9D04-2F26BE93CEE2/Library/NoCloud/updated/www/index.html

Is there a workaround for WKWebView?

ragcsalo commented 4 years ago

No news on this one? Does it mean we can't use contentsync on WKWebView? :-(

ragcsalo commented 4 years ago

Allright... so it turned out that I had to use ContentSync.loadUrl with WKWebView to load the URL. And it works on newer devices (iOS 13 and 14 beta). But it doesn't work on iOS 10 an 12. :-( Are there any other methods that I could try to jump to the downloaded index.html file on iOS?