Deep link to open Safari from another app
Asked Answered
W

1

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
Wain answered 19/8, 2018 at 12:16 Comment(6)
Have you tried just https://www.google.com?Cirenaica
That's just going to open that page in the current app browser. I need to open Safari.Wain
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?Cirenaica
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.Wain
@Wain did you find any solution? I'm having the same problem.Thorite
No, I never did.Wain
G
-2
safari-https://www.google.com ...

is the simple solution to this issue

Guay answered 14/5, 2020 at 12:57 Comment(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:]}Shetrit

© 2022 - 2024 — McMap. All rights reserved.