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
Your
LSApplicationQueriesSchemes
entry should only have schemes. There's no point to the second entry.<key>LSApplicationQueriesSchemes</key>
<array>
<string>instagram</string>
</array>Read the error. You are trying to open the URL with a typo in the scheme. Fix your reference to
instragram
in your call tocanOpenURL:
.
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
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
Detect Which App Is Currently Running on iOS Using Sysctl
iOS Uicollectionview - Default Flow, Fill Rows from Right to Left
How to Animate an Svg Path in iOS
Sqlite Database on Phonegap/iOS - More Than 5Mb Possible
The Simulator Can't Be Launched Because It Is Already in Use
Invalid Redeclaration in Auto Code Generate Nsmanagedobject Subclass Swift 3
Keep Getting Error Messages When Compiling Newest Version of Admob on iOS6 Sdk
Always Stop in App Delegate After Enabling All Exceptions Break Point
How to Detect If the Currently Running App Was Installed from the App Store
How to Prevent Initial White Flash When Showing a Uiwebview
Reused Cells in a Uicollectionview Show Multiple Uiimageviews When They Should Only Show One
Uisearchdisplaycontroller - How to Preload Searchresulttableview
How to Write Keyboard Notifications in Swift 3
Implementing Uitextfielddelegate with Swift
Firebase Cocoapods Installation Not Working