Are universal links supposed to redirect app to app?
Mobile Technologies
Mobile Computing
2 years ago
5
Star Rating
1
Rating
_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
Posted on 16 Aug 2022, this text provides information on Mobile Computing related to Mobile Technologies. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
Take Quiz To Earn Credits!
Turn Your Knowledge into Earnings.