11

Is there a deep link that will open a page in Safari from another app?

I have tried

safari://https://www.google.com

safari://www.google.com

but it doesn't work. I get the pop-up asking if I want to leave the current app, but Safari doesn't open.

This is the equivalent for Chrome, which works:

googlechrome://www.google.com
6
  • Have you tried just https://www.google.com?
    – Paulw11
    Aug 19, 2018 at 12:50
  • 5
    That's just going to open that page in the current app browser. I need to open Safari.
    – user984003
    Aug 19, 2018 at 13:02
  • Are you doing this from a web app or a native app? If you are using a web view in a native app, which component are you using?
    – Paulw11
    Aug 19, 2018 at 13:16
  • 2
    This would be from the website. If someone views a certain page in the Facebook/Messenger browser then I'd want them to have the option of opening a page in Safari. From what I'm seeing, there doesn't seem to be a deep link URL for Safari like for Chrome and many other apps.
    – user984003
    Aug 21, 2018 at 20:25
  • 3
    @user984003 did you find any solution? I'm having the same problem. Mar 27, 2019 at 14:24

1 Answer 1

-2
safari-https://www.google.com ...

is the simple solution to this issue

1
  • Doesn't work. Received Failed to open URL safari-https://google.com: Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=225, _LSFunction=-[_LSDOpenClient openURL:options:completionHandler:]} Jan 19, 2022 at 14:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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