{"action":"created","issue":{"url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/163","repository_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme","labels_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/163/comments","events_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/163/events","html_url":"https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/163","id":146779376,"number":163,"title":"In IOS, one app(with url scheme plugin) cannot be launched by another app(with inappbrowser plugin) ","user":{"login":"ron-liu","id":1534952,"avatar_url":"https://avatars.githubusercontent.com/u/1534952?v=3","gravatar_id":"","url":"https://api.github.com/users/ron-liu","html_url":"https://github.com/ron-liu","followers_url":"https://api.github.com/users/ron-liu/followers","following_url":"https://api.github.com/users/ron-liu/following{/other_user}","gists_url":"https://api.github.com/users/ron-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/ron-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron-liu/subscriptions","organizations_url":"https://api.github.com/users/ron-liu/orgs","repos_url":"https://api.github.com/users/ron-liu/repos","events_url":"https://api.github.com/users/ron-liu/events{/privacy}","received_events_url":"https://api.github.com/users/ron-liu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-08T00:32:59Z","updated_at":"2016-06-12T00:11:52Z","closed_at":null,"body":"Hi, \r\n\r\nThis issue looks not true, but I tried many times and always the same case. I am describing all the details below, and please point me anything I was wrong, thanks. If you need any more information, let me know.\r\n\r\n-- Cheers, Ron\r\n\r\n**Environment**\r\nIPhone 6s on IOS 9.3\r\nionic 2.0.0-beta.23 (I am using ionic v1)\r\ncordova 6.1.0\r\n\r\n**Steps:**\r\n1  Create two ionic apps under /app:\r\n```\r\nmkdir /app && cd /app\r\nionic start handler tabs  # it will be the app to be launched\r\nionic start sender tabs  # it will be the app to be triggered and launch another app\r\n```\r\n2  In handler app, add custom-url-scheme plugin\r\n```\r\ncd /app/handler\r\nionic plugin add cordova-plugin-customurlscheme --variable URL_SCHEME=handler\r\n```\r\n3  In sender app, add inappbrowser plugins\r\n```\r\ncd /app/sender\r\nionic plugin add cordova-plugin-inappbrowser\r\n```\r\n4  In sender app, add one button to launch handler app, and another button to launch google site\r\n```\r\n<button ng-click='window.open('handler://', \"_system\")'>Open handler</button>\r\n<button ng-click='window.open(\"http://www.google.com\", \"_system\")'>Open google</button>\r\n```\r\n5  Test results:\r\n\r\n- In sender app, \"Open google\" works. (which should mean inappbrowser is working on sender app)\r\n- In safari, I can type \"handler://\" to open handler app. (which should means url scheme is working on handler app)\r\n- However, \"Open handler\" does NOT work. (which means when putting together it doesn't work)\r\n\r\nI tried the exact same code on android, it all works fine. "},"comment":{"url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/comments/225401622","html_url":"https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/163#issuecomment-225401622","issue_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/163","id":225401622,"user":{"login":"ron-liu","id":1534952,"avatar_url":"https://avatars.githubusercontent.com/u/1534952?v=3","gravatar_id":"","url":"https://api.github.com/users/ron-liu","html_url":"https://github.com/ron-liu","followers_url":"https://api.github.com/users/ron-liu/followers","following_url":"https://api.github.com/users/ron-liu/following{/other_user}","gists_url":"https://api.github.com/users/ron-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/ron-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron-liu/subscriptions","organizations_url":"https://api.github.com/users/ron-liu/orgs","repos_url":"https://api.github.com/users/ron-liu/repos","events_url":"https://api.github.com/users/ron-liu/events{/privacy}","received_events_url":"https://api.github.com/users/ron-liu/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T00:11:52Z","updated_at":"2016-06-12T00:11:52Z","body":"This problem has been solved by referring this post: http://stackoverflow.com/questions/30987986/ios-9-not-opening-instagram-app-with-url-scheme. \r\n\r\nBasically, it is because ios 9 changed the url scheme rule, which need a white list declaration on the sender part. \r\n\r\n@pallaviMN I have done it successfully on both Android and Ios, please refer to the simple source: https://github.com/mashuo-io/communication-between-ionic-apps. "}}
{"actor":{"display_login":"ron-liu"}}