{"action":"closed","issue":{"url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/31","labels_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/31/comments","events_url":"https://api.github.com/repos/EddyVerbruggen/Custom-URL-scheme/issues/31/events","html_url":"https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/31","id":41769548,"number":31,"title":"Chrome for Android does not redirect to App via Link","user":{"login":"confile","id":64265,"avatar_url":"https://avatars.githubusercontent.com/u/64265?v=3","gravatar_id":"","url":"https://api.github.com/users/confile","html_url":"https://github.com/confile","followers_url":"https://api.github.com/users/confile/followers","following_url":"https://api.github.com/users/confile/following{/other_user}","gists_url":"https://api.github.com/users/confile/gists{/gist_id}","starred_url":"https://api.github.com/users/confile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confile/subscriptions","organizations_url":"https://api.github.com/users/confile/orgs","repos_url":"https://api.github.com/users/confile/repos","events_url":"https://api.github.com/users/confile/events{/privacy}","received_events_url":"https://api.github.com/users/confile/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-09-03T00:04:56Z","updated_at":"2015-01-06T21:27:17Z","closed_at":"2015-01-06T21:27:17Z","body":"I use Android 4.1.2. and use the following JavaScript im my page to redirect to the app: \r\n\r\n```\r\n\t\tvar baseUrl = // my baseurl;\r\n    \tvar customUrlPrefix = \"myapp://\";\r\n   \t\tvar customAppUrl = document.URL.substring(baseUrl.length + 1);\r\n   \t\tif (customAppUrl.length == 0) {\r\n   \t\t\tcustomAppUrl = customUrlPrefix;\r\n   \t   \t}\r\n   \t\telse {\r\n   \t\t\tcustomAppUrl = customUrlPrefix + customAppUrl;\r\n   \t   \t}\r\n\r\n\t\tvar redirect = function (location) {\r\n\t\t    var iframe = document.createElement('iframe');\r\n\t\t    iframe.setAttribute('src', location);\r\n\t\t    iframe.setAttribute('width', '1px');\r\n\t\t    iframe.setAttribute('height', '1px');\r\n\t\t    iframe.setAttribute('position', 'absolute');\r\n\t\t    iframe.setAttribute('top', '0');\r\n\t\t    iframe.setAttribute('left', '0');\r\n\t\t    document.documentElement.appendChild(iframe);\r\n\t\t    iframe.parentNode.removeChild(iframe);\r\n\t\t    iframe = null;\r\n\t\t};\r\n\t\t\r\n\t\twindow.onload = function() {\r\n\t\t\r\n\t\t\t// check the visiblility of the page\r\n\t\t\tvar hidden, visibilityState, visibilityChange;\r\n\t\r\n\t\t\tif (typeof document.hidden !== \"undefined\") {\r\n\t\t        hidden = \"hidden\", visibilityChange = \"visibilitychange\", visibilityState = \"visibilityState\";\r\n\t\t    }\r\n\t\t    else if (typeof document.mozHidden !== \"undefined\") {\r\n\t\t        hidden = \"mozHidden\", visibilityChange = \"mozvisibilitychange\", visibilityState = \"mozVisibilityState\";\r\n\t\t    }\r\n\t\t    else if (typeof document.msHidden !== \"undefined\") {\r\n\t\t        hidden = \"msHidden\", visibilityChange = \"msvisibilitychange\", visibilityState = \"msVisibilityState\";\r\n\t\t    }\r\n\t\t    else if (typeof document.webkitHidden !== \"undefined\") {\r\n\t\t        hidden = \"webkitHidden\", visibilityChange = \"webkitvisibilitychange\", visibilityState = \"webkitVisibilityState\";\r\n\t\t    }\r\n\t\r\n\t\r\n\t\t\tif (typeof document.addEventListener === \"undefined\" || typeof hidden === \"undefined\") {\r\n\t\t\t\t// not supported\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tdocument.addEventListener(visibilityChange, function() {\r\n\t\t\t        switch (document[visibilityState]) {\r\n\t\t\t        case \"visible\":\r\n\t\t\t\t        // open app if page gets visible again\r\n\t\t\t        \tredirect(customAppUrl);\r\n\t\t\t            break;\r\n\t\t\t        case \"hidden\":\r\n\t\t\t            break;\r\n\t\t\t        }\r\n\t\t\t    }, false);\r\n\t\t\t}\r\n\r\n\t\t\tif (document[visibilityState] === \"visible\") {\r\n\t\t\t\tredirect(customAppUrl);\r\n\t\t\t}\r\n\t\t};  \r\n```\r\n\r\nIt works great on iOS 7.1.1. and on the the native Browser of my Android 4.1.2 device. But it does not redirect to the app on Chrome for Android.\r\n\r\nI tried to access \r\n\r\n```\r\nmycoolapp://\r\n```\r\n\r\nDid I miss something?"}}