Are universal links supposed to redirect app to app?
Mobile Technologies
Mobile Computing
3 years ago
_x000D_
_x000D_
I want to know about the behavior of universal links. My confusion stems from the documentation Apple provides for the behavior of universal links: "iOS users can tap a link to your website and get seamlessly redirected to your installed app without going through Safari". (https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html)
However, when clicking a universal link in my application, I'm seeing a redirect to safari then a message, "Open in the Spotify App," to app instead of app to app like the documentation suggests.
Some background of how the universal link is being clicked or tapped: I have an application that I created that I'm using a web view (WKWebView and UIWebView) that when clicked redirects to a specified url. I'm also using openUrl:withOptions:completionHandler:. I want to know what happens when a user clicks a universal link that is in the web view that I created.
Are universal supposed to go directly app to app? Or, it is expected to go from app to safari (with a message saying "Open in the Spotify App") to app?
Example 1: https://open.spotify.com/artist/6vWDO969PvNqNYHIOW5v0m
After clicking the Spotify link, I'm redirected to Safari. After scrolling down the Safari page, I see the message "Spotify Music Open in the Spotify app" with the button "Open." After clicking "Open," I'm redirected to the Spotify app. Subsequent clicking of the Spotify link results in the same flow: My app --> Safari --> Click "Open" --> Spotify. I'm not being redirected directly from my app to the Spotify app
Example 2: https://urlgeni.us/spotify/Arty
After clicking the urlgeni Spotify link, I'm redirected to Safari. A message appears saying "Open this page in 'Spotify?'." After waiting a few seconds, I'm redirected to the Spotify app (Note: this is occurring without me clicking "Open".)
Subsequent clicks to the urlgeni Spotify link has the same flow: My app --> Safari --> Spotify app
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
manpreet
Best Answer
3 years ago
_x000D_ It should go app-to-app seamlessly - the Open in 'Spotify'? message you're getting should be a one time only flag, and afterwards subsequent Universal Links for Spotify will be app-to-app