Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

share|improve this question
    
That part of the url is referred to as the "protocol" –  Octopus Aug 22 at 21:58

2 Answers 2

Google has official documentation on the Chrome iOS app's URL scheme on it's developer website.

The easiest method is to replace http with googlechrome. So https would be googlechromes. This means:

  • http://www.google.com becomes googlechrome://www.google.com
  • https://apple.stackexchange.com becomes googlechromes://apple.stackexchange.com

You can also use their x-callback-url if you want a back button. This (spaced out for readability):

googlechrome-x-callback://x-callback-url/open/
    ?x-source=Asdf
    &x-success=asdf%3A%2F%2F
    &url=http%3A%2F%2Fwww.google.com
    &create-new-tab

will result in this:

Example of back button

share|improve this answer

On iOS:

googlechrome://www.example.com
share|improve this answer
    
That may work on iOS—I don't have Chrome on my iPhone—but it does not work for me on Mavericks. –  samh Aug 22 at 13:57
    
I was about to say the same. How are you proposing this should work. Firstly on Mavericks if you click a link with this protocol or go to it in a web address. The OS asks you to select an app that can open it. Even when Chrome is selected chrome will try and open the URL file:///googlechrome:///www.example.com each time –  markhunte Aug 22 at 14:04
    
@markhunte OP did not specify OS X or iOS, I've clarified that this is just for iOS –  grgarside Aug 22 at 14:07
    
@GeorgeGarside Cheers saved me wasting more time trying to figure it out. –  markhunte Aug 22 at 14:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.