Deep Linking

Deferred Deep Linking on iOS: How It Works Without an Install Referrer

Install₹499

On Android, Google Play hands your app the link the user tapped. On iOS, the App Store hands over nothing. So how do apps still open the right screen after an iPhone install? There are three ways, each with a trade-off. This guide covers all three, plus Universal Links for people who already have the app.

Why iOS is harder than Android

A deferred deep link has to survive the trip through the store. Android has the Play Install Referrer, which carries your link data through the install. The App Store has no equivalent: after the install, your app starts with no idea how the user found it. Every iOS solution fills that gap in one of these ways:

ApproachHow the app learns the linkTrade-off
Click matchingThe link service matches the first app open to a recent click from the same network or deviceWorks silently, but it's a best match, not exact; privacy rules apply
ClipboardThe web page copies the link before the App Store; the app reads it on first launchExact, but iOS asks the user to allow the paste
Sign-inThe user signs in on the web first; the app looks up their pending link after they sign inExact, but only for flows where people sign in anyway

Do this first: most taps on your links come from people who already have the app. A Universal Link is a normal https:// link that opens your app instead of Safari once Apple has verified that you own the domain. Publish an apple-app-site-association file:

// https://example.com/.well-known/apple-app-site-association
// (no .json extension, served over https, no redirects)
{
  "applinks": {
    "details": [
      {
        "appIDs": ["ABCDE12345.com.example.shop"],
        "components": [{ "/": "/l/*" }]
      }
    ]
  }
}

Add the domain to your app's Associated Domains:

// Xcode > Signing & Capabilities > Associated Domains
applinks:example.com

and handle the incoming link:

// SwiftUI: Universal Link taps arrive here
WindowGroup {
  ContentView()
    .onOpenURL { url in
      // e.g. https://example.com/l/abc123
      router.open(linkId: url.lastPathComponent)
    }
}

ABCDE12345 is your Team ID from the Apple Developer account. Apple fetches the file through its own CDN, so a fix to the file can take a while to reach devices. If the app isn't installed, the same link opens the web page instead, and that page is where the deferred part starts.

Step 2: Click matching on first open

This is what most link services do by default:

  1. The user taps your link. The link service records the click and sends the user to the App Store.
  2. The user installs and opens the app.
  3. On first launch, the app's SDK asks the link service: was there a recent click from this network or device?
  4. If there was, the service returns the original link, and the app opens that screen.

It needs no action from the user, which is why it's the default. Precision is the weak spot: people on the same office Wi-Fi or mobile network can look alike, so keep the matching window short and treat a match as a strong hint, not proof. Apple's rules don't allow device fingerprinting for tracking, so check what your provider collects and describe it in your privacy policy and App Privacy answers.

Step 3 (optional): The clipboard approach

For an exact match without sign-in, the link's web page can copy the link to the clipboard (on the user's tap) before sending them to the App Store. On first launch, the app checks the clipboard:

// First launch only. hasURLs does NOT show the paste prompt,
// reading .url does (iOS 16 and later ask the user first).
if isFirstLaunch, UIPasteboard.general.hasURLs,
   let url = UIPasteboard.general.url,
   url.host == "example.com" {
  router.open(linkId: url.lastPathComponent)
}

Since iOS 16, reading the clipboard shows the user an “Allow Paste” prompt. Checking hasURLs first doesn't trigger it, so you only ask when there's actually a link to read. Explain on the web page why the app will ask, or the prompt looks suspicious and people tap “Don't Allow”.

Step 4: Use sign-in when you have it

If the journey has a sign-in or sign-up anyway (a referral, an invite to a team, an order started on the web), store the pending link against the account on your server. When the user signs in inside the app, fetch it and open the screen. It's exact, needs no prompt and no matching. Keep the destination through sign-up too, so a new user doesn't land on the home screen after creating an account.

React Native and Flutter

  • React Native: Universal Link taps arrive through Linking.getInitialURL() (cold start) and the url event (app already running). Set up Associated Domains in the native iOS project.
  • Flutter: a deep link plugin delivers the initial link and later links as a stream; the Associated Domains setup in Xcode is the same.
  • Click matching and the clipboard check usually come from your link provider's SDK.

How to test deferred deep linking on iOS

  1. Install a TestFlight build once, then delete the app from the iPhone.
  2. Tap your link from Notes or Messages, not by typing it into Safari's address bar (typed links never open the app).
  3. Follow it to the App Store or TestFlight and install the app.
  4. Open the app and check it lands on the right screen. Log what the matching call or clipboard check returned.
  5. Repeat with the app already installed: the same link should open the app straight to the screen.
  6. Test once on Wi-Fi and once on mobile data, because click matching depends on the network.

Why deferred deep linking fails on iOS

What you seeLikely cause
Link opens Safari even though the app is installedThe association file is behind a redirect, not on HTTPS, or has the wrong Team ID or bundle ID; or the Associated Domains entitlement is missing from the build.
Works from Notes, not from a social appSome in-app browsers keep links inside their web view. Add a clear “Open in app” button on the page.
New installs land on the home screenNo match: the click was too long ago, the network changed between click and open, or the SDK asked before it was initialised.
The wrong user gets someone else's linkClick matching on a shared network. Shorten the window, and use sign-in for anything personal like invites.
Users see a paste prompt and refuseThe page didn't explain it. Say on the page that the app will ask to paste the link.

TrackerLink creates the campaign links and records each click. On iOS, where there is no install referrer, notifySphere matches the first app open to a recent click from the same IP address or device within the attribution window (7 days by default). That's less precise than the Android referrer. See the TrackerLink docs, the Android guide and the deferred deep linking overview.

Frequently asked questions

Is there an install referrer on iOS like on Android?

No. The App Store doesn't pass any campaign or link data to your app after the install. Everything that works on iOS either happens on the link service's side (matching the first open to an earlier click) or uses something the user did, like signing in or allowing a paste.

Why doesn't my Universal Link open the app?

The usual causes: the apple-app-site-association file is behind a redirect or not on HTTPS, the Team ID or bundle ID in appIDs is wrong, the Associated Domains entitlement is missing, or you typed the link into Safari's address bar. Universal Links open the app when tapped, not when typed, and some in-app browsers keep links inside the web view.

Can I use device fingerprinting to match installs on iOS?

Apple's rules don't allow fingerprinting to track users. Matching a first open to a recent click from the same network is common, but keep it short-lived, use it only for your own links, and describe it in your privacy policy and App Privacy answers. When precision matters, prefer a match the user takes part in, such as signing in or allowing a paste.

Do SKAdNetwork or AdAttributionKit give me deferred deep links?

No. They report aggregated install counts for ad campaigns to ad networks, without telling your app which user came from which ad. They help measure ad spend, not route a single user to the right screen.