How mobile deep links work: universal links, app links and deferred deep links
Tap a link to a product, and sometimes it opens straight to that product in the app. Other times you land on the app's home screen or a website. The difference is how deep linking is set up.
Types of deep links
- Custom URL schemes (like
myapp://product/42): simple, but any app can claim the same scheme, and they fail if the app isn't installed. - Universal Links (iOS) and App Links (Android): regular
https://links that the operating system opens in the app if installed, and in the browser otherwise. - Deferred deep links: if the app isn't installed, the user goes to the store, and after installing, the app opens to the intended content.
How universal links and app links are verified
The website hosts a small file declaring which apps may open its links. The app declares which domains it handles. The OS checks both match, which prevents other apps from hijacking your links.
Why links sometimes don't open the app
- The verification file is missing, misconfigured or not reachable.
- Links opened inside some in-app browsers or after redirects behave differently.
- The user previously chose to open the link in the browser.
- The app doesn't have a route for that specific path.
Good practices
- Make every deep-linked path also work on the web.
- Handle unknown paths gracefully inside the app.
- Test links from messages, email, social apps and the browser.
Developers: which part of deep linking gave you the most trouble? Users: do you prefer links that open apps or stay in the browser?
Comments · 3
Do they need setup on the app side and the website side? I'm guessing there's a file on the server that links to the app.
Right, yes. The site hosts a verification file (apple-app-site-association or assetlinks.json) that proves the app and domain belong together.
Deferred deep links matter for growth, since new installs can still land on the product the user clicked. Without them you lose people at the very first step.