"This App Is Not Allowed to Query for Scheme Cydia" iOS9 Error

This app is not allowed to query for scheme cydia IOS9 error

This problem only happens in iOS 9 since Apple made some changes impacting URL schemes.

I think that one of your libraries is checking to see if you are running on a jailbroken device by checking if it can open cydia://URL...

"Up until iOS 9, apps have been able to call these methods on any arbitrary URLs. Starting on iOS 9, apps will have to declare what URL schemes they would like to be able to check for and open in the configuration files of the app as it is submitted to Apple"

Link: http://awkwardhare.com/post/121196006730/quick-take-on-ios-9-url-scheme-changes

Custom URL Scheme Error : This app is not allowed to query for scheme

You are doing it in opposite way if you register:

<key>LSApplicationQueriesSchemes</key>
<array>
<string>com.test.clientEndApp</string>
</array>

You should be calling this scheme

let urlsrting = "com.test.clientEndApp://provideInfo?username='Debanjan'"

An you were missing com.test. from your LSApplicationQueriesSchemes

This app is not allowed to query for scheme XYZ://

I have found the solution to my own question. I'm answering it here instead of just deleting my question because it might help somebody someday.

The problem here was that I'm trying to develop a framework for other developers, I have a test app that I'm using to check if everything is fine with my framework. I was setting LSApplicationQueriesSchemes values inside the framework target, not the actual test app. SO:

You need to set the whitelist values in your app target's info.plist

canOpenUrl - This app is not allowed to query for scheme instragram

  1. Your LSApplicationQueriesSchemes entry should only have schemes. There's no point to the second entry.

    <key>LSApplicationQueriesSchemes</key>
    <array>
    <string>instagram</string>
    </array>
  2. Read the error. You are trying to open the URL with a typo in the scheme. Fix your reference to instragram in your call to canOpenURL:.

I am having this error canOpenURL: failed for URL :com.appcoda.gsignin

// you need to add LSApplicationQueriesSchemes in info.plist ,
for more information refer fllowing link , the following attachment will help you

http://awkwardhare.com/post/121196006730/quick-take-on-ios-9-url-scheme-changes

Sample Image

iOS 9 not opening Instagram app with URL SCHEME

iOS 9 has made a small change to the handling of URL scheme. You must whitelist the url's that your app will call out to using the LSApplicationQueriesSchemes key in your Info.plist.

Please see post here: http://awkwardhare.com/post/121196006730/quick-take-on-ios-9-url-scheme-changes

The main conclusion is that:

If you call the “canOpenURL” method on a URL that is not in your whitelist, it will return “NO”, even if there is an app installed that has registered to handle this scheme. A “This app is not allowed to query for scheme xxx” syslog entry will appear.

If you call the “openURL” method on a URL that is not in your whitelist, it will fail silently. A “This app is not allowed to query for scheme xxx” syslog entry will appear.

The author also speculates that this is a bug with the OS and Apple will fix this in a subsequent release.



Related Topics



Leave a reply



Submit