Closed mathiasconradt closed 6 years ago
Hi @mathiasconradt
I don't think you can use window.open
to open urls with the file://
uri. I believe it was a security feature added in iOS 9.
This is a security addition in iOS 9, try with a relative url
We have a hybrid app developed with DevExpress and PhoneGap (cli-5.2.0).
We try to open a local jpeg image via
window.open('file:///var/mobile/Containers/Data/.../image.jpg', '_system');
but it does not work (anymore) on iPhone and iPad (latest iOS 9 version), failing with the error error:
(The app downloaded the image beforehand via the Phonegap method FileTransfer.download to the folder that it got via window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, ...) method.)
It works fine on Android, and it worked fine on iPhone as well a few weeks ago. It might be related to the PhoneGap update due to an update of DevExtreme.
Before, we used PhoneGap 3.7.0, now we use cli-5.2.0.
Using GapDebug, this shows up in the log:
It's some kind of permission problem, but what to add to the config.xml?
This is the config.xml:
We even added the two lines
according to https://github.com/apache/cordova-plugin-whitelist and it does not help.