Skip to content
CodeOnAir
← All posts

Deferred deep link not working after install? Causes and fixes

A new user installs from your link and lands on the home screen. The causes in order of likelihood, from testing on an install that isn't fresh to the install referrer, iOS matching and navigation timing, with a test plan.

CodeOnAir team10 min read

When a deferred deep link doesn't work after install, the app opens on its home screen instead of the screen the link pointed to. Most of the time the test itself is the problem: the app wasn't really a fresh install, it had already been opened once, or too much time passed between the tap and the first open. After that come the real setup problems: the install referrer missing on Android, a different IP address on iOS, or a link handler that isn't ready when the link arrives.

This post goes through every cause in the order we see them, with how to check each one and how to fix it. It's written around CodeOnAir AppLinks and @codeonair/deeplink-react-native, but the causes are the same for any deferred deep linking service, because they all work the same way. New to the idea? Read what deferred deep linking is first.

How a deferred link survives the install

There are three steps, and each one can fail:

  1. The tap. The user taps the link without the app installed. The link server records a click (the link, the time, and signals such as a hashed IP address, the OS and its version, the language and the time zone), then sends the user to the store.
  2. The install. The App Store passes nothing to the app. The Play Store passes an install referrer, a string the link put in the store URL, and CodeOnAir puts the click's ID there.
  3. The first open. The SDK tells the server "this device just opened the app for the first time" and sends what it has. The server finds the click and returns the link: exactly, through the referrer (Android) or the clipboard (iOS, opt-in), or by matching signals within the link's attribution window (iOS).

If step 3 finds nothing, the app opens normally, with no error. That's why this fails quietly.

Turn on logging first

Before changing anything, see what the SDK sends and what comes back:

import DeepLink from "@codeonair/deeplink-react-native";

DeepLink.init({ debug: true }); // logs "[DeepLink] POST /v1/sdk/open" and any error
DeepLink.onLink((link) => {
  console.log("link", link.path, link.params, {
    deferred: link.isDeferred,
    method: link.matchMethod, // install_referrer | clipboard | probabilistic | universal_link | uri_scheme
    confidence: link.confidence, // 1 for exact matches, lower for signal matches
  });
});

If the first open fails (wrong App ID, no network), debug mode logs [DeepLink] open failed with the reason. Without debug, that error is silent.

1. It wasn't a fresh install (or the app was opened first)

The SDK asks for a deferred link only on the first launch after install. It knows that from a flag it keeps in the app's storage. The server also checks that it has never seen this install's device ID. So any of these makes the next open "not first":

  • You updated the app instead of reinstalling it. Installing a new build over an old one keeps its storage.
  • The app opened before you tapped the link. Xcode, Android Studio, npx react-native run-* and npx expo run:* start the app straight after installing it. That launch is the first open, and it happens before the click exists.
  • Android restored a backup. With Android's Auto Backup on, reinstalling from the Play Store can restore the app's data, including the SDK's storage, so the app doesn't count as new. React Native's default template sets android:allowBackup="false". Expo apps back up unless you set "android": { "allowBackup": false } in app.json.

Fix: test in this order, every time:

  1. Delete the app from the phone.
  2. Tap the link on the phone (paste it into Notes or Messages and tap it there).
  3. Install the build without opening it: from the store or TestFlight, or with adb install app-release.apk on Android. On iOS, Xcode's Run starts the app, so stop it before it launches, or install the build another way.
  4. Open the app from the home screen.

A click that has been matched on signals isn't used again. To test again, delete the app and tap the link again, so there's a new click.

2. Too much time passed between the tap and the first open

A match counts only within the link's attribution window. By default that's 2 hours. On paid plans you can set a longer window per link: up to 24 hours on Starter and Growth, and 7 days on Scale. Someone who taps an ad in the morning and installs in the evening, on the default window, opens on the home screen.

Check: compare the click time in the link's stats with the time of the first open.

Fix: set an attribution window on the links that need one: links in email, print and QR codes, and referral links people install from later. Keep it short for paid ads, where a long window credits installs that would have happened anyway.

3. Android: the install referrer didn't arrive

On Android the exact match comes from the Play Install Referrer. When it's missing, the SDK falls back to matching signals, which is weaker. Check matchMethod in the log: install_referrer is the exact path.

Causes, most likely first:

  • The referrer package isn't installed. The React Native SDK reads the referrer through react-native-play-install-referrer, which is optional. Without it, Android installs are matched on signals only.

    npm install react-native-play-install-referrer
    # Expo: npx expo install react-native-play-install-referrer, then a new dev or release build
    

    The native Android SDK includes the Play Install Referrer library already.

  • The app wasn't installed from Google Play. A sideloaded APK, adb install or a build from another store has no Play referrer. To test the exact path, use a Play testing track (internal testing is enough) and install from the Play Store link the short link sends you to.

  • A custom Android fallback URL replaced the store link. If you set your own Android redirect on the link, for example a Play Store URL copied from the browser, the link sends people there as it is. CodeOnAir only adds the click ID to the Play Store URL it builds from your package name. A copied URL has no referrer=click_id=… in it. Leave the Android fallback empty so the link builds the store URL, and check it with the link debugger (?d=1 on the link): android_not_installed should show play.google.com/store/apps/details?id=…&referrer=click_id%3D….

4. iOS: the signals didn't match

Without the IDFA, iOS deferred links are matched on signals: the same hashed IP address and the same OS are required, then language, time zone, OS version and model raise or lower the score. A match needs a confidence of at least 0.5 by default. Our post on deferred deep linking on iOS without the IDFA explains the scoring and its limits in detail. The causes we see most:

  • The network changed between the tap and the first open. The user tapped on Wi-Fi and the App Store download finished on mobile data, or the other way round. The IP address is different, so there's no match.
  • iCloud Private Relay or a VPN. Private Relay covers Safari browsing, so Safari's request for the link comes from a relay address while the app's own requests don't. The two IP addresses never match. A VPN that was on for one request and off for the other does the same.
  • A shared network. On office or campus Wi-Fi, many phones share one IP address. Two people tapping the same link around the same time can be confused. The other signals usually separate them, but the confidence will be lower.

Fix: for links where an exact match matters (referrals, paid offers), turn on clipboard matching: Enable advanced deferred deep link in the app's AppLinks setup, plus a clipboard getter in the app:

import * as Clipboard from "expo-clipboard";

DeepLink.init({ getClipboardString: () => Clipboard.getStringAsync() });

With it on, iOS users see a page with a Get the app button. Tapping it copies a one-time token and goes to the App Store. On the first open, the SDK reads the token and the match is exact. iOS shows a paste prompt. If the user taps Don't Allow Paste, the match falls back to signals. If the setting is on but the app has no getter, nothing is read. Use link.confidence in your own code: apply a ₹100 referral reward only at 1, but a "continue to the product you looked at" screen can work at 0.7.

5. The link arrived before the app could use it

Sometimes the match works and the app still doesn't show the screen. The first-open answer comes back a moment after launch, often while a splash screen, login check or navigation container is still loading.

The SDK keeps a link that arrives before any onLink listener and replays it to the first one, so subscribing late is fine. Navigating too early isn't. If your listener calls navigation.navigate() before the navigator is ready, the call goes nowhere.

Fix: store the link, and navigate once the app is ready:

import DeepLink, { type DeepLinkData } from "@codeonair/deeplink-react-native";

const pendingLink = useRef<DeepLinkData | null>(null);

useEffect(() => DeepLink.onLink((link) => {
  if (navigationRef.isReady() && isLoggedIn) navigationRef.navigate(link.path, link.params);
  else pendingLink.current = link; // handled after login / when the navigator is ready
}), [isLoggedIn]);

Also check that DeepLink.init() runs on every launch, early, in your root file. If it only runs after login or on one screen, a new user who has to sign up first never reaches the call before the first launch ends.

6. The app opened from the link itself

If the user installed the app and then tapped the link again, Universal Links or App Links open the app with the link directly. The SDK delivers that link (with matchMethod: "universal_link") and skips the deferred one, so the user doesn't get two navigations. That's by design. If you see isDeferred: false in testing, check that you opened the app from the home screen, not by tapping the link a second time.

7. The link itself can't be matched

A few causes on the link side:

  • The link is disabled or expired. A link disabled after the tap returns nothing on the first open. An expired link sends people to its web page, not the store, so there's no install to match.
  • The link opened in the browser for that platform. Links set to open in the browser on iOS or Android skip the store, so there's no install to match.
  • The path doesn't exist in your app. The match worked and link.path is /product/42, but your router expects product/:id or a screen name. Log the path, and map it in one place.

A copy-paste test plan

  • DeepLink.init({ debug: true }) in the build you test.
  • Delete the app. Tap the link on the phone. Install without opening. Open from the home screen.
  • Same network for the tap and the first open (iOS). No VPN, and Private Relay off for the test.
  • Android: react-native-play-install-referrer installed, and installed from a Play testing track to test the exact path.
  • Link debugger (?d=1): the Android store URL has referrer=click_id….
  • First open within the link's attribution window.
  • onLink stores the link until navigation and login are ready.

For the commands to test links on emulators and devices, see how to test deep links on Android and iOS.

FAQ

Why does my deferred deep link work in testing but not for real users?

Real users often install later than you do, on another network, or with Private Relay or a VPN on. On iOS those break signal matching. Use clipboard matching for links that must be exact, and set a longer attribution window for links people install from later.

Why does the deferred link work on Android but not on iOS?

Android can pass the click through the Play Store install referrer, which is exact. iOS has no equivalent, so the match depends on signals such as the IP address. Turn on clipboard matching for exact iOS matches.

How do I test a deferred deep link without publishing the app?

Delete the app, tap the link, install your build without opening it, then open it on the same network within the attribution window. That tests signal matching. Only the exact Android path needs an install from Google Play, and an internal testing track is enough.

Does deferred deep linking work after reinstalling the app?

Yes, if the reinstall is a real new install: the app's data was deleted and wasn't restored from a backup, and the user tapped the link before installing. Tap a new link for each test, because a click matched on signals isn't used twice.

Can I get the deferred link in Expo Go?

No. The SDK needs native code, so use a development build or a release build.

Get deferred links that tell you how sure they are

CodeOnAir AppLinks records the click, matches the first open exactly through the Play Store referrer or the iOS clipboard, falls back to signals otherwise, and tells your app which method it used and how confident the match is. Check your link domain with the Universal Link validator, then see where your links open with the deep link tester. The React Native SDK docs list every field on the link. Create a free account to try it with 100 app links.


Checked on 15 November 2026 against the @codeonair/deeplink-react-native source on npm, the CodeOnAir matching service, and Apple's and Android's documentation on iCloud Private Relay and Auto Backup.

Your first AppLink in five minutes.

Create an app, pick a subdomain, and share a link that opens your app. Try Growth free for 30 days — no card needed.