Creating a URL that always opens in Chrome
If I want to ensure a URL, if clicked, will always open in Chrome (instead of the default browser) can I do that by modifying the header?
For example, I can get URLs that always open in Evernote, they start with evernote:///
Is this possible, for example to have something like chrome:///www.url.com
Google has official documentation on the Chrome iOS app’s URI scheme on its developer website.
Simply replace http
with googlechrome
and https
with googlechromes
. This means:
-
http://www.google.com/
becomesgooglechrome://www.google.com/
-
https://apple.stackexchange.com/
becomesgooglechromes://apple.stackexchange.com/
Previously, it supported an x-callback-url of googlechrome-x-callback://
. This allowed the calling app to indicate its name and URI scheme to Chrome, which would show a back button in the address bar that closes the tab and invokes the specified URI. This feature was removed a few years ago when iOS 9 added the “Back to …” button in the status bar (but the URI scheme still works).
On iOS:
googlechrome://www.example.com