Skip to content
Mobile Apps13 min read

Mobile App Deep Linking: How It Works and Why It Matters

How deep links, Universal Links and Android App Links work, how deferred deep linking and fallbacks behave, and how to route, secure, measure and test links.

01

Quick answer

A deep link opens a specific screen in an app instead of its home screen. On iOS, Universal Links use your normal HTTPS URLs verified by an apple-app-site-association file; on Android, App Links do the same using a Digital Asset Links file. If the app isn't installed, the link opens your website. Deferred deep linking, which carries the destination through an install, needs a third-party service or custom implementation. Good deep links route reliably, handle signed-out users, treat parameters as untrusted and are tested across sources.

02

Why Deep Linking Matters

Every link that dumps a user on a home screen asks them to find the content again. Deep links connect emails, ads, social posts, QR codes, shared content and notifications directly to the right screen, which improves conversion and makes the app feel connected to the rest of your product.

03
TypePlatformFormatIf app not installedVerified
Custom URL schemeiOS and Androidmyapp://pathFailsNo; other apps can claim it
Universal LinksiOShttps://yourdomain.com/pathOpens websiteYes, via apple-app-site-association
App LinksAndroidhttps://yourdomain.com/pathOpens websiteYes, via assetlinks.json
Deferred deep linksBothUsually HTTPS via a serviceStore, then destination after installDepends on implementation
04

How It Works

The user taps a link. The operating system checks whether an installed app has verified ownership of that domain. If so, the app opens and routes to the destination screen. If not, the link opens in the browser, where your website shows the content or points to the app store.

05

Enable the Associated Domains capability in the app and host an apple-app-site-association file on your domain listing which paths the app handles. iOS verifies the association and then opens matching links in the app. Users can still choose to open links in Safari, so the web page must work too.

06

Declare intent filters with autoVerify for your HTTPS paths, and host an assetlinks.json Digital Asset Links file at /.well-known on your domain with your app's package name and signing certificate fingerprint. Once verified, Android opens those links directly in your app.

07

URL Routing

Design one URL structure shared by the website and the app, so the same link works in both. Centralize routing in the app: parse the URL, validate parameters, and map it to a screen. Handle unknown or outdated paths gracefully rather than crashing.

Connecting your website and app?

ZSpace Labs designs shared URL structures and deep linking across web and mobile, so every link lands in the right place.

Start a Project
08

Deferred Deep Linking

Universal Links and App Links don't remember a destination through an install. Deferred deep linking does, using an attribution or linking service, or your own server-side matching. Firebase Dynamic Links used to provide this but has been shut down, and Firebase now recommends App Links and Universal Links. Choose a replacement that respects platform privacy rules.

09

If the destination requires sign-in, remember it, show sign-in, then continue to the destination. If the content belongs to another account or has been removed, show a clear message. See mobile app authentication.

10

Marketing, Sharing and Notifications

Campaign links, email and QR codes should point to specific content with campaign parameters for attribution. Shared content links should use the same URLs as the website. Push notifications should carry a route to the relevant screen; see push notifications.

11

Web-to-App Journeys and Fallbacks

Every deep-linkable path should have a useful web page, since the website is the fallback when the app isn't installed or the user chooses the browser. Where the app offers a better experience, a respectful app banner can invite installation without blocking content. See ZSpace Labs' website development work for the web side.

12

Security Considerations

Treat link parameters as untrusted input: validate them and never trigger payments, account changes or data deletion directly from a link without user confirmation. Custom URL schemes can be claimed by malicious apps, so avoid sending sensitive tokens through them; prefer verified HTTPS links. See mobile app security.

13

Analytics

Track link opens by source and campaign, whether users landed in the app or on the web, and what they did next. See mobile app analytics.

14

12 deep linking use cases for apps and websites

Deep links pay off when they take someone straight to the right screen at the moment they want it. These are the common uses; each needs a sensible fallback to the website or app store when the app is not installed, and links that behave correctly when the user is signed out.

Use caseExampleFallback when the app is missing
1. Push notification tapsOrder update opens the order screenWeb order page
2. Transactional emails"Track your delivery" opens trackingWeb tracking page
3. Password reset and magic linksSign-in link opens the app signed inWeb sign-in
4. Product and content sharingShared product opens that productWeb product page
5. Marketing campaignsAd or SMS opens the promoted collectionWeb landing page, or store then deferred link
6. Referral and invite linksInvite opens sign-up with the referral appliedStore install, then deferred deep link
7. QR codes in the real worldTable QR opens the menu or orderingWeb menu
8. Web-to-app handoff"Open in app" on a mobile web page keeps the contextStay on web
9. Support and help linksSupport reply opens the right settings screenWeb help article
10. Payments and returnsPayment provider returns the user to the orderWeb confirmation page
11. Calendar and booking remindersReminder opens the booking to rescheduleWeb booking page
12. Internal and B2B workflowsApproval email opens the approval screenWeb app with sign-in
15

Common Problems and Testing

  • Association files served with wrong content type, redirects or missing paths
  • Signing certificate fingerprint mismatch in assetlinks.json
  • Links opened inside in-app browsers behaving differently
  • Signed-out users losing the destination after login
  • No web fallback page for app-only paths
  • Test installed and not installed, signed in and out, from email, messages, browsers and notifications
  • Use adb on Android and the simulator's openurl command on iOS for quick checks

Links not opening your app reliably?

Talk to ZSpace Labs about diagnosing and fixing your deep linking setup across iOS, Android and web.

Start a Project
16

Conclusion

Reliable deep linking combines verified links on both platforms, a shared URL structure, central routing, a web fallback, sign-in awareness and careful handling of untrusted input. For the wider build context, see the mobile app development guide.

FAQ

Common questions.

A link that opens a specific screen or piece of content inside an app, rather than just launching the app's home screen.

A custom scheme (like myapp://product/42) only works if the app is installed and can be claimed by other apps. Universal Links on iOS use normal HTTPS URLs verified against your website, and open the website if the app isn't installed.

Android's verified HTTPS deep links. Your website publishes a Digital Asset Links file proving your app may handle those URLs, so they open in the app directly.

Preserving the link destination through an app install, so a new user who taps a link, installs the app and opens it lands on the intended content. Standard Universal Links and App Links don't do this on their own.

No. Firebase Dynamic Links has been shut down, and Firebase recommends App Links and Universal Links. Deferred deep linking now requires a third-party service or your own implementation.

With Universal Links and App Links, the URL opens your website, which can show the content or prompt the user to install the app.

They can be. Treat link parameters as untrusted input, never perform sensitive actions automatically from a link, and prefer verified links over custom schemes that other apps can claim.

Test from different sources (messages, email, browsers, notifications), with the app installed and not installed, signed in and out, and using platform tools such as adb and the iOS simulator's URL commands.

Yes. Campaign links, email, social posts and QR codes can take users straight to relevant content, which usually converts better than sending them to a home screen.

Get in touch

Have a project in mind?

Whether you're building a new digital product, improving an existing website, or looking to automate part of your business — let's talk.