Deferred Deep Linking
Deferred deep linking remembers where a link was meant to go while someone installs your app, then opens that screen on the first launch. On Android, Google Play hands the app the original referrer string through the Install Referrer API. Apple offers no matching install referrer, so iOS apps usually restore the destination through sign-in or a code.
| Ordinary deep link | Deferred deep link | |
|---|---|---|
| App already installed | Opens the screen | Opens the screen |
| App not installed | Web page or store only | Store, then the screen after install |
| Needs data kept across the install | No | Yes |
Updated
Picture a shop that emails a discount link for one product. People who already have the app land on the product. People who do not are sent to the store, install, open the app and see the home screen: the product, and the reason they came, are lost. Deferred deep linking is the set of techniques that carries the destination through the install. Use the simulator below to follow each path.
Follow the link
What happens, step by step
- The person taps https://shop.example/product/42 in an email.
- Your web page sends the person to your Play listing with a campaign referrer attached.
- The person installs the app from the store.
- They open the app for the first time; it lands on the home screen.
- On first launch the app calls the Install Referrer API and reads the referrer string back.
- The app routes /product/42 to the product screen.
Reading the install referrer on Android
Add Google's Play Install Referrer library, version 2.2, to your app's Gradle dependencies (the line is at the top of the example), then connect once on first launch.
Read the referrer and close the connection
Store a flag after the first successful read so the call is not repeated on later launches.
// build.gradle.kts: implementation("com.android.installreferrer:installreferrer:2.2")
val client = InstallReferrerClient.newBuilder(context).build()
client.startConnection(object : InstallReferrerStateListener {
override fun onInstallReferrerSetupFinished(code: Int) {
if (code == InstallReferrerClient.InstallReferrerResponse.OK) {
val details = client.installReferrer
val referrer = details.installReferrer // e.g. "route=/product/42"
val clickedAt = details.referrerClickTimestampSeconds
openRouteFromReferrer(referrer)
}
client.endConnection()
}
override fun onInstallReferrerServiceDisconnected() {}
})Smart App Banner on your web page
Smart App Banner meta tag
Replace the numbers with your App Store ID. app-argument reaches the app only when it is already installed.
<meta name="apple-itunes-app" content="app-id=123456789, app-argument=https://shop.example/product/42">Key facts (as of October 2026)
| Fact | Detail |
|---|---|
| Android referrer lifetime | 90 days, unchanged unless the app is reinstalled |
| Play Store app version with the API | 8.3.73 or later |
| Firebase Dynamic Links | Shut down August 25th, 2025; links return 404 |
| iOS install referrer | None documented by Apple |
The privacy limit
Deferred linking only works if something remembers the person between the web click and the first app launch. Store-provided data, like Android's referrer, is the clean way. Guessing who someone is from their device details, called fingerprinting, is unreliable and raises privacy questions, so avoid building it yourself.
Start with ordinary deep links
Deferred linking sits on top of normal Universal Links and App Links. Set those up and confirm they work for installed users before adding the install path.
How it works
- Choose a platform and whether the app is already installed.
- Read the steps. Each one names the piece that does the work, such as the store, the referrer or your own server.
- Compare the paths to decide what your app has to build: usually a referrer read on Android and a sign-in or code based restore on iOS.
Tips
- Read the Android referrer once, on the first launch after install. Google says the data stays available for 90 days and does not change unless the app is reinstalled.
- Only pass a route or a campaign name through the link, never personal data or a discount amount the app trusts blindly.
- Always make the destination reachable another way, such as search, in case the referrer is missing.
- If old emails or ads still use Firebase Dynamic Links, replace them: those links now return a 404.
Frequently asked questions
Did Firebase Dynamic Links shut down?
Yes. Firebase's FAQ says Dynamic Links shut down on August 25th, 2025, and that every link clicked now returns an HTTP 404 status to the visitor.
How does Android know where the user came from?
The Google Play Store app exposes the Install Referrer API. Your app reads the referrer URL of the install, plus click and install timestamps, through the Play Install Referrer Client Library.
Is there an install referrer on iOS?
Apple's universal links documentation describes opening installed apps and falling back to the browser, not passing data through an App Store install. Most iOS apps restore the destination after the person signs in, or by asking for a short code shown on the web page.
What does a Smart App Banner's app-argument do?
Apple describes app-argument as an optional URL that gives your app context. If the person already has the app, they can jump from your web page to the matching place in it. Apple does not say it survives a fresh install.
Do I need a paid linking service?
Not for the basics. Verified links plus the Android referrer cover many small apps. Paid services add cross-platform matching and reports; check each one's privacy terms before use.
Related: What is deep linking, Mobile app testing checklist, Progressive web app guide, UTM builder.
Build your site free or see all free tools. On We.Inc you can build your site free, with no card and no trial needed to start. AI building is on paid plans from $19 a month.
More in Guides
- Department Microsites: When a Separate Site Is Right, and How to Stop Them Sprawling | How-to Guide
- How to Deploy a React or Next.js App
- Design System Examples and a Live Website Style Guide
- Design Tokens Explained, with a Live JSON to CSS Converter
- Designing a Website Homepage: A Worksheet-Led Guide | How-to Guide
- Developer Portfolio Examples and a Free Template
- Landing Page vs Website: The Difference and Which You Need | How-to Guide
- Discord Webhook: Create One and Send Messages
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App