What is deferred deep linking? (And why it matters for referrals and ads)
Deferred deep linking sends a new user to the right screen after they install your app. Here is how it works, where it pays off, and what to measure.
A normal deep link only works if the app is already installed. Deferred deep linking handles the case where it isn't: the user taps a link, installs the app from the store, and on the first open lands exactly where the link pointed — with its data.
A quick example
Priya sends her friend a referral link: https://link.myshop.com/invite?code=PRIYA50.
- Without deferred deep linking: the friend installs, opens the app, sees the home screen. The referral code is gone, Priya gets no credit, and the friend never sees the ₹50 offer.
- With it: the friend installs, opens the app, and lands on "Priya invited you — here's ₹50", with the code already applied.
How it works
- Click. The link service records the tap (device, OS, time) and sends the user to the App Store or Play Store.
- Install. The store does its thing. The link isn't passed through the store on iOS, so the service has to remember it.
- First open. The app's SDK asks the service, "was there a click for this device?"
- On Android, the Play Install Referrer carries the click ID through the install — an exact match.
- On iOS, the service matches on signals such as IP address, device and timing within a short attribution window. Here's how matching works on iOS without the IDFA.
- Deliver. The SDK hands the app the link's path and parameters, flagged as deferred.
Where it pays off
- Referrals and invites — credit the referrer and show the reward on the first screen. Our guide to building refer-and-earn in React Native covers the whole flow.
- Paid ads — send people from a product ad straight to that product after install, not the home page.
- E-commerce and content — a shared product, article or video opens on first launch.
- Onboarding — skip steps the link already answers (city, language, plan).
- Posters, packaging and QR codes — a scan opens the offer in the app, or keeps it through the install. See how to make a QR code that opens your app.
What to measure
Track each link from click → install → first open → the action you care about (sign-up, purchase, referral redeemed). If installs from a campaign are high but first-open matches are low, check the attribution window and that the SDK is initialised on the very first launch.
What it looks like in the app
With a deferred deep linking SDK, the app doesn't need separate code for "opened from a link" and "first open after install". In React Native, the CodeOnAir SDK, @codeonair/deeplink-react-native, delivers both to one callback and tells you which it was:
import DeepLink from "@codeonair/deeplink-react-native";
DeepLink.init(); // as early as possible on launch
DeepLink.onLink((link) => {
// link.path "/invite", link.params { code: "PRIYA50" }
if (link.isDeferred) {
// came through an install: show the welcome offer, skip steps the link answers
}
navigation.navigate(link.path, link.params);
});
link.matchMethod says how the install was matched (install_referrer, clipboard or probabilistic), and link.confidence how sure the match is: 1 for exact matches, lower for probabilistic ones. Use it to decide what's safe to do automatically. Opening a product page on a probable match is fine; crediting a referral with money attached may need an exact one.
Common mistakes
- Starting the SDK late. If it starts after onboarding, the first open has already gone by. Initialise it at launch.
- Testing with an old tap. Each click is matched to one install at most. Tap a fresh link before every test.
- A window that's too short. People who see a poster or an ad may install hours later. If the attribution window is one hour, they land on the home screen.
- A custom Android store URL. Replacing the Play Store link with your own URL drops the install referrer, so Android matches stop being exact.
- Assuming iOS is exact. Without clipboard matching, iOS matches are probabilistic. Check
confidencebefore you do anything that costs money.
FAQ
Is a deferred deep link different from a deep link?
A deep link opens a screen in an app that's already installed. A deferred deep link does the same for someone who has to install the app first: the link is remembered through the store and delivered on the first open.
Do Universal Links and App Links do deferred deep linking?
No. They only open an app that's installed. When it isn't, the link opens in the browser, and nothing is passed through the store. You need a link service, or your own server plus the Play Install Referrer on Android.
Does deferred deep linking need the IDFA on iOS?
No. Matching uses signals from the tap and the first open, or a clipboard token if you turn that on. Neither needs the advertising identifier or the App Tracking Transparency prompt.
How long after the tap can someone install?
As long as the link's attribution window. In CodeOnAir that's up to 1 hour on Free, 24 hours on Starter and Growth, and 7 days on Scale (pricing).
Getting started
CodeOnAir AppLinks gives every app a link domain, deferred deep linking on Android and iOS, QR codes, and per-link stats for clicks, installs and opens. Building in React Native? Start with our React Native deep linking guide; on Expo, the Expo deep linking guide. SDK setup is in the docs for React Native and Expo, Android and iOS. Create a free account: the Free plan includes 100 app links, and new workspaces get 30 days of Growth free.