Skip to content
CodeOnAir

AppLinks: deep linking for iOS and Android

Deep linking for iOS and Android that survives the install.

One link for every platform. It opens your app through Universal Links and App Links when it’s installed, sends people to the right store when it isn’t, and still opens the right screen after they install.

  • Universal Links
  • Android App Links
  • Deferred deep linking
  • Hosted AASA & assetlinks.json
  • QR codes
  • Firebase import

What a tap does

Three outcomes, one link.

App installed

Universal Links on iOS and App Links on Android open your app directly — no browser hop — with the link’s path and parameters.

Not installed

Phones go to the App Store or Play Store, or to a fallback URL you choose. Desktop visitors go to your web page.

After install

On first open the SDK matches the install to the click and hands your app the original link, so onboarding can continue where the link pointed.

How it works

From the dashboard to the right screen, step by step.

Phones only open an app from an https:// link when the domain proves it belongs to that app. AppLinks gives you a domain that already does, and a server in the middle that remembers the link while the store installs the app.

  1. 1

    Set up a URL prefix

    Pick your free subdomain, such as shop.codeonair.com, or add your own with a CNAME. Enter your website, your iOS Team ID and bundle ID, and your Android package name and signing fingerprints.

  2. 2

    We publish the verification files

    apple-app-site-association and assetlinks.json are built from those settings and served at /.well-known/ on every prefix, over HTTPS and without redirects, the way Apple and Google require.

  3. 3

    Add the domain and the SDK to your app

    Associated Domains on iOS and an autoVerify intent filter on Android; the dashboard’s App setup box shows the exact lines. Then DeepLink.init() and one onLink handler.

  4. 4

    Create links

    In the dashboard, by CSV import, from your backend with the REST API (up to 1,000 links per request), or from the app itself for share and referral buttons.

  5. 5

    Someone taps

    The link server reads the platform, records the click (IP addresses are hashed, never stored raw) and routes: into the app, to the store, or to your website.

  6. 6

    The install is matched

    On the first launch the SDK asks for the link that led to the install. Android matches exactly through the Play Install Referrer; iOS matches on signals within the attribution window, or exactly with clipboard matching.

Features

Built for marketing links and product links alike.

  • URL prefixes: your free codeonair.com subdomain, plus extra subdomains and your own custom domains (₹2,000/month add-on) on paid plans
  • apple-app-site-association and assetlinks.json generated, hosted and checked against your app
  • Per-link iOS and Android behavior: open the app, or always open in the browser
  • Attribution windows per link: 2 hours by default, up to 24 hours on Starter and Growth and 7 days on Scale
  • Social previews (title, description, image) for WhatsApp, Instagram, X and others
  • Password-protected and expiring links, routing rules by platform and country, A/B variants
  • QR code for every link, campaigns and UTM tags, and CSV import and export
  • In-app browser handling for Instagram, Facebook and similar apps
Install from npm
React Native
# App.tsx
import DeepLink from "@codeonair/deeplink-react-native";
DeepLink.init(); // App ID comes from the native config
DeepLink.onLink((link) => {
// link.path → /product/123
// link.params → { coupon: "DIWALI50" }
// link.isDeferred → true after a fresh install
});

SDKs for React Native and Expo, Android (Kotlin) and iOS (Swift). Prefer your backend? Create links with the REST API.

The code

A React Native integration, end to end.

These snippets come from the React Native SDK’s README and the AppLink docs. The App ID is the only value the app needs; no API key goes in the app.

1. Install and add your App ID

The App ID is in Settings → App credentials. The SDK reads it from the native config, and the server checks it against your bundle ID or package name.

Terminal, AndroidManifest.xml and Info.plist
$ npm install @codeonair/deeplink-react-native @react-native-async-storage/async-storage
$ npm install react-native-play-install-referrer # exact Android installs
# AndroidManifest.xml, inside <application>
<meta-data android:name="com.codeonair.APP_ID" android:value="proj_…" />
# Info.plist
<key>CodeOnAirAppId</key>
<string>proj_…</string>

2. Let the domain open the app

Add applinks:shop.codeonair.com under Signing & Capabilities → Associated Domains in Xcode, and this intent filter to your main activity.

android/app/src/main/AndroidManifest.xml
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="shop.codeonair.com" />
</intent-filter>

3. Handle every link in one place

onLink fires for links that open a running app, links that start it, and the deferred link on the first launch after install.

App.tsx
import DeepLink from "@codeonair/deeplink-react-native";
DeepLink.init(); // reads the App ID from the native config
useEffect(
() =>
DeepLink.onLink((link) => {
// link.path, link.params, link.isDeferred,
// link.matchMethod, link.confidence, link.campaign
navigation.navigate(link.path, link.params);
}),
[],
);

4. Create links from the app or your server

Give every user their own share or referral link from the app, or create links in bulk from your backend with your API key.

In the app, and with the REST API
const url = await DeepLink.createLink({
path: "/product/42",
params: { ref: "share" },
campaign: "in-app-share",
});
$ curl -X POST https://app.codeonair.com/v1/links \
-H "Authorization: Bearer sk_live_…" \
-H "Content-Type: application/json" \
-d '{ "slug": "summer", "deep_link_url": "https://shop.example/sale?code=SUMMER" }'

React Native app? Send JavaScript fixes over the air with CodeOnAir CodePush. It’s in the same workspace and dashboard as your links, so a link can open a screen you shipped this morning.

Features in detail

What each link can do.

Deferred deep linking

The path and parameters survive the App Store or Play Store. Your app gets isDeferred, the match method (install_referrer, clipboard or probabilistic) and a confidence score, so it can decide what to trust.

Verification files, done for you

Both files are rebuilt when you change your app settings. Links you set to open in the browser on iOS are added to the file’s exclusions automatically.

Link previews that look right

Set a title, description and image per link. Leave them empty and they come from your website’s home page, so even a bare link gets a real preview in WhatsApp.

Routing and experiments

Send iOS, Android and desktop to different places, route by country, split traffic between A/B variants, and expire or password-protect a link.

Analytics per link

Clicks, installs credited to the link and app opens, per day, platform and country, with campaigns and CSV export on paid plans. Link-preview bots aren’t counted.

A debugger in every link

Add ?d=1 to any link to see where each platform would go and the data your app would receive, without installing anything.

Compared

AppLinks, Branch, Firebase Dynamic Links and doing it yourself.

Firebase Dynamic Links shut down on 25 August 2025, and its page.link URLs stopped resolving. Branch is the best-known replacement, but it is an attribution platform first. Plain Universal Links and App Links cost nothing, but only cover the case where the app is already installed.

CodeOnAir AppLinksBranchFirebase Dynamic LinksDIY Universal Links + App Links
StatusLiveLiveShut down 25 August 2025Built into iOS and Android
Opens the installed appYesYesDidYes
Deferred deep linkingYes: exact on Android, signals or clipboard on iOSYesDidNo, you’d build it
AASA and assetlinks.jsonBuilt and hosted for youHosted for its link domainsHosted on page.linkYou host and maintain them
Ad-network attributionNoYes, its main productNoNo
PricingPublic: Free, then ₹1,499 / $19 to ₹10,999 / $119 a monthIntro $39 a month, Basics $199 to $499, plus usage; Enterprise by quoteWas freeFree, plus your time
Your own domainYes, ₹2,000 / $24 a month add-on per domainYesYes, while it ranYes
Import old linksFirebase CSV import; REST bulk createCheck Branch’s docs——

Branch facts are from its pricing page, its Intro plan help page and its deep linking help page, checked on 15 November 2026. Head-to-head comparisons: CodeOnAir vs Branch, CodeOnAir vs AppsFlyer OneLink and CodeOnAir vs Adjust. More detail in our posts on a Branch alternative for deep links and choosing a Firebase Dynamic Links alternative.

Honest limits

What AppLinks doesn’t do.

No ad-network attribution. There are no postbacks to ad networks, no SKAdNetwork reporting and no ROAS reports. If you buy installs across several networks, you need a mobile measurement partner; see how AppLinks sits next to AppsFlyer OneLink and Adjust TrueLink.

No Flutter SDK yet. Flutter apps can use the link domains and call the REST endpoints directly; see our Flutter deep linking guide.

iOS deferred matches aren’t exact by default. Without clipboard matching they’re probabilistic, as they are for any service that doesn’t use the IDFA. Here’s how deferred deep linking works on iOS without the IDFA.

No self-hosting. AppLinks runs on our servers. Your links can still live on your own domain, so they survive a change of provider.

AppLinks questions

What is deferred deep linking?

When someone taps a link but doesn't have your app, they go to the App Store or Play Store. After they install and open the app, the SDK delivers the original link's path and parameters, so the app can open the right screen instead of the home screen.

How accurate is the install match?

On Android the Play Install Referrer carries the click through the Play Store, so the match is exact. On iOS the match uses device signals (a hashed IP address, OS version, screen, language and time zone) within the link's attribution window, and can be made exact with the optional clipboard method. Your app is told which method matched and how confident the match is.

Which domains can my links use?

Every app gets yourapp.codeonair.com for free. Paid plans add more URL prefixes: extra codeonair.com subdomains, or your own domains such as link.yourbrand.com with the custom domain add-on (₹2,000 or $24 a month per domain).

Do I have to host apple-app-site-association or assetlinks.json?

No. CodeOnAir builds both files from your app's settings (Team ID, bundle ID, package name and up to 20 SHA-256 fingerprints) and serves them on every URL prefix, and the dashboard's Check button reads them the way phones do. Hosting them yourself on another domain? Use the free generator and validator tools.

How long is an install credited to a link?

For the link's attribution window: 2 hours by default. On paid plans a link can have a longer window: up to 24 hours on Starter and Growth, and 7 days on Scale.

Why do links from Instagram or Facebook open a web page?

Those in-app browsers block Universal Links and App Links, so the link shows a small page with Open in app and Get the app buttons. Adding a URI scheme to your app makes Open in app work on iOS too.

Can I move from Firebase Dynamic Links?

Yes. Export your links from Firebase as CSV and use AppLinks → Import CSV. Each link keeps its path, parameters and social preview. Your old page.link URLs belonged to Firebase and stopped working at the shutdown, so share the new links from now on.

What happens to my links if I go over a limit or move to the Free plan?

They keep working. Click limits are soft: links keep redirecting, opening the app and delivering deferred deep links above them. On the Free plan you can create up to 100 app links; links over that keep working but you can't add new ones until you upgrade.

Is it an attribution platform like AppsFlyer or Branch?

No. AppLinks counts clicks, installs and opens per link and campaign, but doesn't send postbacks to ad networks or report SKAdNetwork. If you run paid install campaigns across many networks, you need a mobile measurement partner.

Coming from Firebase? Move your Dynamic Links with the CSV import, or follow the Firebase Dynamic Links migration guide.

Links opening the browser instead of the app? Check your domain with the free Universal Link and App Link validator, create both files with the AASA and assetlinks.json generator, or read the guides on deep linking in React Native and how deferred deep linking works.

Setting it up yourself? See how to set up apple-app-site-association and assetlinks.json, deep linking in Expo with Expo Router, why Universal Links open Safari instead of the app and how to fix Android App Links that aren’t verified. Plan limits are on the pricing page.

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.