{"action":"created","issue":{"url":"https://api.github.com/repos/intentkit/IntentKit/issues/60","repository_url":"https://api.github.com/repos/intentkit/IntentKit","labels_url":"https://api.github.com/repos/intentkit/IntentKit/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/intentkit/IntentKit/issues/60/comments","events_url":"https://api.github.com/repos/intentkit/IntentKit/issues/60/events","html_url":"https://github.com/intentkit/IntentKit/issues/60","id":107691576,"number":60,"title":"iOS 9 broke the application picker","user":{"login":"asalom","id":1466079,"avatar_url":"https://avatars.githubusercontent.com/u/1466079?v=3","gravatar_id":"","url":"https://api.github.com/users/asalom","html_url":"https://github.com/asalom","followers_url":"https://api.github.com/users/asalom/followers","following_url":"https://api.github.com/users/asalom/following{/other_user}","gists_url":"https://api.github.com/users/asalom/gists{/gist_id}","starred_url":"https://api.github.com/users/asalom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asalom/subscriptions","organizations_url":"https://api.github.com/users/asalom/orgs","repos_url":"https://api.github.com/users/asalom/repos","events_url":"https://api.github.com/users/asalom/events{/privacy}","received_events_url":"https://api.github.com/users/asalom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-22T11:03:25Z","updated_at":"2016-06-07T21:01:36Z","closed_at":null,"body":"After updating to iOS 9, IntentKit can't find other alternatives to the default application.\r\nLet's say I want to present the Map Handler on my iPhone with both Waze and Google Maps installed.\r\n\r\nHaving this method called:\r\n```objc\r\n- (void)openMapWithDirectionsFrom:(NSString *)fromString to:(NSString *)toString {\r\n    INKMapsHandler *handler = [INKMapsHandler new];\r\n    INKActivityPresenter *presenter = [handler directionsFrom:fromString to:toString mode:INKMapsHandlerDirectionsModeWalking];\r\n    [presenter presentModallyWithCompletion:^{\r\n        [self.view removeFromSuperview]; \r\n    }];\r\n}\r\n```\r\n\r\nI get the following logs on the console:\r\n```\r\n2015-09-22 12:41:17.185 App[1087:471378] -canOpenURL: failed for URL: \"comgooglemaps://\" - error: \"This app is not allowed to query for scheme comgooglemaps\"\r\n2015-09-22 12:41:17.191 App[1087:471378] -canOpenURL: failed for URL: \"waze://\" - error: \"This app is not allowed to query for scheme waze\"\r\n```\r\n\r\nThis is a new feature or bug by Apple. More information can be found [here] (http://awkwardhare.com/post/121196006730/quick-take-on-ios-9-url-scheme-changes).\r\n\r\nTo let the user choose their favorite mapping service we must add a new key to the Info.plist as follows.\r\n```plist\r\n<key>LSApplicationQueriesSchemes</key>\r\n<array>\r\n\t<string>waze</string>\r\n\t<string>comgooglemaps</string>\r\n</array>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/intentkit/IntentKit/issues/comments/224413073","html_url":"https://github.com/intentkit/IntentKit/issues/60#issuecomment-224413073","issue_url":"https://api.github.com/repos/intentkit/IntentKit/issues/60","id":224413073,"user":{"login":"lazerwalker","id":821238,"avatar_url":"https://avatars.githubusercontent.com/u/821238?v=3","gravatar_id":"","url":"https://api.github.com/users/lazerwalker","html_url":"https://github.com/lazerwalker","followers_url":"https://api.github.com/users/lazerwalker/followers","following_url":"https://api.github.com/users/lazerwalker/following{/other_user}","gists_url":"https://api.github.com/users/lazerwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/lazerwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazerwalker/subscriptions","organizations_url":"https://api.github.com/users/lazerwalker/orgs","repos_url":"https://api.github.com/users/lazerwalker/repos","events_url":"https://api.github.com/users/lazerwalker/events{/privacy}","received_events_url":"https://api.github.com/users/lazerwalker/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T21:01:35Z","updated_at":"2016-06-07T21:01:35Z","body":"@gintechsystems @nicolasFernandez @bocato Have you tried adding the appropriate URL schemes to the appropriate Info.plist key?\r\n\r\nWith iOS 9, there's no way to avoid having to manually whitelist URL schemes that way. Perhaps it could be automated, rather than requiring you to manually add the schemes, but for now I'm just trying to figure out if there's an IntentKit bug outside of the OS's requirements."}}
{"actor":{"display_login":"lazerwalker"}}