How it works
A deep linkDeep linkA link that opens a specific screen inside an app instead of just its home screen.Open in glossary → is a link that opens a specific screen inside an app, not just the app’s start screen. “Open Pinecone” is a normal link. “Open Pinecone on product 42” is a deep link.
- Someone taps a link. In an email, an SMS, a chat, a QR code scanned with the camera, an ad, or a notification.
- The phone decides who opens it. Is there an installed app that’s allowed to handle this link? If yes, the app opens. If not, the browser (or the app store) opens instead.
- The app reads the link. It takes the path (the part after the site name, for example
/product/42) and any extra parameters, and works out which screen that means. This part of the app is called the router. - The app checks the situation. Is the user logged in? Does product 42 still exist? Is the user allowed to see order 8812?
- The app shows the screen, with a sensible history. Product 42 is on screen, and Back leads somewhere that makes sense (usually the app’s Home), not out of the app.
Two kinds of links: custom schemes and https links
There are two ways to build a deep link, and testers meet both. The difference is in the scheme, the part of a link before ://. Web links start with https; an app can also invent a scheme of its own.
| Custom URL scheme | Universal Link (iOS) / App Link (Android) | |
|---|---|---|
| Looks like | pinecone://product/42 | https://pinecone.example/product/42 |
| App not installed | Nothing happens or an error | The website opens (a free web fallback) |
| Who can claim it | Any app can register pinecone:// | Only the app the website owner approves |
| Typical use | Push notifications, links between your own apps | Emails, SMS, QR codes, ads, social posts |
A custom scheme is like a nickname that the app registers on the phone: “send me everything that starts with pinecone://”. It’s simple, but it has two problems: if the app isn’t installed, the link is dead, and another app could register the same nickname.
Universal LinksUniversal Link / App LinkAn https link that opens the app if installed and the website otherwise.Open in glossary → (Apple’s name) and App Links (Android’s name) are normal https:// web addresses. If the app is installed, the phone opens the app. If not, the same link simply opens the website. To stop any random app from grabbing pinecone.example links, the website has to vouch for the app with a small verification file.
Developers write this file, not testers. But it is public, so you can check that it exists by opening its address in any browser, for example https://pinecone.example/.well-known/assetlinks.json. This is what you’d see:
The file is called apple-app-site-association (no .json at the end) and lives in the /.well-known/ folder of the website. It lists which app may open which paths:
{
"applinks": {
"details": [
{
"appIDs": ["ABCDE12345.com.pinecone.app"],
"components": [{ "/": "/product/*" }, { "/": "/orders/*" }, { "/": "/go/*" }]
}
]
}
}The app itself also lists the domains it wants to open. Apple downloads the file through its own servers when the app is installed or updated, so a fixed file can take a while to reach phones.
Dev note
applinks:pinecone.example under the Associated Domains capability.The file is called assetlinks.json, lives in the /.well-known/ folder of the website, and names the app’s package namePackage nameAn Android app's unique ID, like com.shopeasy.app (the iOS equivalent is the bundle ID).Open in glossary → and a fingerprint. Every build of an app is digitally signed by whoever made it, and the fingerprint is a long code that identifies that signature:
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.pinecone.app",
"sha256_cert_fingerprints": ["14:6D:E9:83:...:A5"]
}
}]Android checks the file when the app is installed. If the check fails, Android 12 and newer open the link in the browser instead of the app.
Dev note
android:autoVerify="true".Deferred deep links: when the app isn’t installed yet
A normal link can’t survive an app install. You tap an ad for “10% off your first tent”, go to the store, install, open the app… and land on a generic welcome screen. The offer is gone.
A deferred deep linkDeferred deep linkA link that survives an app install and opens its target on first launch.Open in glossary → fixes this. The link first goes through a link service that remembers what you wanted. After installation, the app asks “was this person sent here by a link?” and opens the offer on first launch. Android has a built-in helper for this: the Play Store passes the link on to the freshly installed app. iOS has no built-in equivalent, so link services (Branch, AppsFlyer, Adjust and similar) use their own matching, which is not 100% reliable.
Dev note
Firebase Dynamic Links, which many older apps used, was shut down in 2025, so old links that still point to it are worth a check.
The tricky part for testers: the offer must open exactly once. Not zero times, and not on every launch. See also Onboarding, which usually runs right before.
Try it: what happens when you tap?
Pick a link type, whether the app is installed, and where the link was tapped:
https://shop.example/product/42
- At install time, the phone downloaded the verification file from shop.example and confirmed the app may open its links.
- The phone opens the app directly, no browser in between.
Works: Product 42 opens in the app.
Tester’s note: If the verification file is missing, wrong, or not on every domain (www!), the link silently opens the website instead.
Where links come from
The same link can behave differently depending on where it’s tapped. A good test plan covers the real sources:
| Source | Why it’s special |
|---|---|
Marketing tools often wrap links in a click-tracking redirect (click.mailer.example/…), so the phone sees their domain, not yours, and opens the browser | |
| SMS / chat apps | Usually work well, but some messengers open links in their own in-app browser |
| Push notifications | Often use a custom scheme or an ID. See Push Notifications |
| QR codes | Scanned with the camera app; long URLs make dense codes that are hard to scan from a poster |
| Ads and social apps | Instagram, Facebook, TikTok and LinkedIn often open links in their in-app browser, which shows the website instead of opening your app |
| Web pages | A link from your own website to your own domain usually stays in the browser on iOS. Tapping from another site opens the app |
Example requirements
The tracking parameters in criterion 3 are extra pieces added to the end of a link after a ?, such as ?utm_source=newsletter (see query parameterQuery parameterData in a URL after the ?, like ?q=mug&sort=price, often used to keep search and filter state.Open in glossary →). They don’t change where the link goes. They tell the marketing team which email or ad the click came from.
Criteria 1 (both domains), 3 (parameters), 4 (continue after login) and 6 (Back) are the ones developers most often forget, because nobody writes them down. If your story doesn’t mention them, ask.
Check this part
Which link opens the website when the app is NOT installed?
Links to
pinecone.exampleopen the app, but links towww.pinecone.exampleopen the browser. What is the most likely cause?A user taps a link in an Instagram post and sees your website inside Instagram, even though your app is installed. What should you check?