{"action":"created","issue":{"url":"https://api.github.com/repos/ohh2ahh/AppAvailability/issues/22","labels_url":"https://api.github.com/repos/ohh2ahh/AppAvailability/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/ohh2ahh/AppAvailability/issues/22/comments","events_url":"https://api.github.com/repos/ohh2ahh/AppAvailability/issues/22/events","html_url":"https://github.com/ohh2ahh/AppAvailability/issues/22","id":97111814,"number":22,"title":"iOS 9: -canOpenURL: failed for URL","user":{"login":"ohh2ahh","id":2352329,"avatar_url":"https://avatars.githubusercontent.com/u/2352329?v=3","gravatar_id":"","url":"https://api.github.com/users/ohh2ahh","html_url":"https://github.com/ohh2ahh","followers_url":"https://api.github.com/users/ohh2ahh/followers","following_url":"https://api.github.com/users/ohh2ahh/following{/other_user}","gists_url":"https://api.github.com/users/ohh2ahh/gists{/gist_id}","starred_url":"https://api.github.com/users/ohh2ahh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohh2ahh/subscriptions","organizations_url":"https://api.github.com/users/ohh2ahh/orgs","repos_url":"https://api.github.com/users/ohh2ahh/repos","events_url":"https://api.github.com/users/ohh2ahh/events{/privacy}","received_events_url":"https://api.github.com/users/ohh2ahh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-07-24T18:36:38Z","updated_at":"2015-09-18T11:02:31Z","closed_at":null,"body":"**AppAvailability Bug**\r\n`appAvailability.check` returns alway error callback.\r\n\r\n**iOS 9 Error in Xcode**\r\n`-canOpenURL: failed for URL: \"<scheme>://\" - error: \"This app is not allowed to query for scheme <scheme>\"`\r\n\r\n**Explanation**\r\nApple changed the `canOpenURL` method on iOS 9. Apps which are checking for URL Schemes have to declare these Schemes as it is submitted to Apple. The article [Quick Take on iOS 9 URL Scheme Changes](http://awkwardhare.com/post/121196006730/quick-take-on-ios-9-url-scheme-changes) expains the changes in detail.\r\n\r\n**Solution: Add URL Schemes to the Whitelist**\r\nSimply open your app's .plist (usually `platforms/ios/<appname>/<appname>-Info.plist)` with an editor and add the following code with your needed Schemes.\r\n\r\n```xml\r\n<key>LSApplicationQueriesSchemes</key>\r\n<array>\r\n    <string>twitter</string>\r\n    <string>whatsapp</string>\r\n</array>\r\n```"},"comment":{"url":"https://api.github.com/repos/ohh2ahh/AppAvailability/issues/comments/141418603","html_url":"https://github.com/ohh2ahh/AppAvailability/issues/22#issuecomment-141418603","issue_url":"https://api.github.com/repos/ohh2ahh/AppAvailability/issues/22","id":141418603,"user":{"login":"babydance","id":6258028,"avatar_url":"https://avatars.githubusercontent.com/u/6258028?v=3","gravatar_id":"","url":"https://api.github.com/users/babydance","html_url":"https://github.com/babydance","followers_url":"https://api.github.com/users/babydance/followers","following_url":"https://api.github.com/users/babydance/following{/other_user}","gists_url":"https://api.github.com/users/babydance/gists{/gist_id}","starred_url":"https://api.github.com/users/babydance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babydance/subscriptions","organizations_url":"https://api.github.com/users/babydance/orgs","repos_url":"https://api.github.com/users/babydance/repos","events_url":"https://api.github.com/users/babydance/events{/privacy}","received_events_url":"https://api.github.com/users/babydance/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T11:02:31Z","updated_at":"2015-09-18T11:02:31Z","body":"@ohh2ahh \r\nthanks ohh2ahh! I upgrade the apypal sdk,and then everything is ok!"}}