cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathias Conradt (JIRA)" <>
Subject [jira] [Created] (CB-11027) on iOS (only): "This app is not allowed to query for scheme file"
Date Wed, 06 Apr 2016 08:49:25 GMT
Mathias Conradt created CB-11027:

             Summary: on iOS (only): "This app is not allowed to query for scheme
                 Key: CB-11027
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
         Environment: iOS9, Phonegap cli 5.2.0, cordova-plugin-whitelist
            Reporter: Mathias Conradt

I had originally posted this on StackOverflow:

Not sure whether it's a Cordova or PhoneGap issue, but I use several Cordova plugins in the
app, i.e. cordova-plugin-whitelist. Sorry, I'm fairly new to Cordova/PhoneGap.

I have a hybrid app developed with DevExpress and PhoneGap, using Cordova plugins.

I try to open a local jpeg image via

{code}'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: {quote}"This app is not allowed to query for scheme file".{quote}

(The app downloaded the image beforehand via the Phonegap method to
the folder that it got via 

{code}window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, ...) method.){code}

It works fine on Android, and it worked fine on iPhone as well a few weeks ago. I think it
might be related to the PhoneGap update due to an update of DevExtreme.

Before, I used PhoneGap 3.7.0, now I use cli-5.2.0.

Using GapDebug, I see this in the log:

<Warning>: THREAD WARNING: ['InAppBrowser'] took '38.211914' ms. Plugin should use a
background thread.
<Warning>: THREAD WARNING: ['File'] took '26.509033' ms. Plugin should use a background
<Warning>: -canOpenURL: failed for URL: "file:///var/mobile/Containers/Data/Application/9425CCB6-77F7-4337-B37C-7DB577C2F6B4/Documents/myDocuments/a96e7238-a502-49e6-bcd3-186937afc3cb/camera_1458208164206.jpg"
- error: "This app is not allowed to query for scheme file"

It's some kind of permission problem, but what to add to the config.xml?

This is my config.xml:

<widget xmlns="" xmlns:gap="" id="com.devexpress.apptemplate"
version="1.0" versionCode="1">
  <preference name="phonegap-version" value="cli-5.2.0" />
  <preference name="permissions" value="none" />
  <preference name="prerendered-icon" value="true" />
  <preference name="android-windowSoftInputMode" value="adjustResize" />
  <preference name="SplashScreen" value="splash" />
  <preference name="SplashScreenDelay" value="60000" />
  <preference name="AutoHideSplashScreen" value="false" />
  <preference name="DisallowOverscroll" value="true" />
  <preference name="StatusBarOverlaysWebView" value="false" />
  <preference name="StatusBarBackgroundColor" value="#000000" />
  <preference name="KeyboardDisplayRequiresUserAction" value="false" />
  <feature name="" />
  <gap:plugin name="com.devexpress.plugins.devextremeaddon" version="1.0.1" />
  <gap:plugin name="cordova-plugin-ios-longpress-fix" version="1.1.0" source="npm" />
  <gap:plugin name="" version="0.3.6" />
  <gap:plugin name="org.apache.cordova.file" version="1.3.3" />
  <gap:plugin name="org.apache.cordova.file-transfer" version="0.5.0" />
  <gap:plugin name="org.apache.cordova.inappbrowser" version="0.6.0" />
  <gap:plugin name="" version="0.3.6" />
  <gap:plugin name="" version="0.2.16" />
  <gap:plugin name="" version="0.2.15" />
  <gap:plugin name="cordova-plugin-statusbar" version="2.1.0" source="npm" onload="true"
  <gap:plugin name="org.apache.cordova.splashscreen" version="1.0.0" onload="true" />
  <access origin="*" subdomains="true"/>
  <gap:plugin name="cordova-plugin-whitelist" source="npm"/>
  <allow-navigation href="*" />
  <allow-intent href="*" />

I even added the two lines

  <allow-navigation href="*" />
  <allow-intent href="*" />

according to and it does not help.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message