Android App Links: assetlinks.json Setup and Testing
An Android App Link only works when your site publicly declares that your app owns the domain. Here is the assetlinks.json file, the manifest side that has to match it, what 12 large sites actually serve, and how to find the failure when links open in the browser instead.
A link tapped. Chrome opened. The app is installed, the URL matches what is in your manifest, and nothing on screen tells you what broke.
The assetlinks.json file is almost always the first place to look. It is a JSON file your website serves at https://<your-domain>/.well-known/assetlinks.json. Android fetches it at install time, checks that the signing certificate of the installed app matches a fingerprint in the file, and from then on routes matching links into the app with no "open with" dialog. If any of that fails, the link opens in the browser on Android 12 and later -- or shows a chooser on older versions -- and the app tells you nothing about it.
Below: the file, the manifest side that has to match it, what 12 large production sites actually serve, and how to find the failure when links open in the browser.
The assetlinks.json file, field by field
A complete example for a single app. The package name and both fingerprints are placeholders:
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.example.shop",
"sha256_cert_fingerprints": [
"14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5",
"AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99"
]
}
}]
The whole file is an array of statements. This one grants link-handling permission to one app.
| Field | What it does |
|---|---|
relation |
The permission being granted. delegate_permission/common.handle_all_urls is the one that opens links in your app. |
target.namespace |
android_app for an Android app. |
target.package_name |
Your application ID from build.gradle, not your app's display name. |
target.sha256_cert_fingerprints |
SHA-256 fingerprints of the signing certificates allowed to handle links. Uppercase, colon-separated: Google's troubleshooting guide lists a lowercase fingerprint as a common failure. |
The array accepts more than one fingerprint, which is how you support a debug build and a release build at the same time. Google's documentation gives debug and production builds as the example.
The Play App Signing fingerprint trap
If you use Play App Signing, the fingerprint from keytool is almost certainly the wrong one for release builds. Google re-signs your app before delivering it to users, so the certificate on their devices is not the one in your local keystore. Get the correct fingerprint from Play Console -- Release > Setup > App signing -- where Google shows a ready-made Digital Asset Links snippet. If links work in your debug build and fail in release, or the reverse, check this first.keytool -list -v -keystore my-release-key.keystore
That reads the keystore on your machine. The official docs are direct: the fingerprint it produces "will usually not match the one on users' devices" when Play App Signing is on.
If you use ChottuLink, paste the Play App Signing fingerprint from Play Console into the dashboard's SHA-256 field. The ChottuLink Android setup guide covers that field, but its signingReport method reads your local keystore and shows only the debug and upload keys.
Hosting: one fixed path, no redirects, one file per host
The path is fixed. Android queries one location:
https://<domain>/.well-known/assetlinks.json
Google's publishing requirements list four server requirements:
| Requirement | Detail |
|---|---|
| Content type | Served as application/json. |
| Transport | HTTPS, even if your intent filters declare http. |
| Redirects | None. No 301 or 302. |
| Coverage | If the manifest declares several hosts, each host needs its own copy of the file. |
www.example.com and mobile.example.com in the same intent filter do not share a file. Each hostname is queried separately. On Android 12 and later each host verifies on its own; on Android 11 and lower, one host that fails means none of your App Links verify. A wildcard host such as *.example.com needs the file at the root -- https://example.com/.well-known/assetlinks.json.
One more trap worth knowing: do not ship a manifest with hosts that only resolve on your VPN or behind basic auth. Android fetches the file from wherever the device is, and a host the public internet cannot reach will not verify. The documented workaround is build variants, so dev and release manifests differ.
What we found when we checked 12 real production sites
We fetched /.well-known/assetlinks.json from 12 large production domains on 2026-10-12 to see what a real-world working setup looks like. All 12 returned 200 and application/json with no redirects.
| Host | Status | Content-Type | Statements | Fingerprints |
|---|---|---|---|---|
| google.com | 200 | application/json | 29 | 53 |
| www.youtube.com | 200 | application/json | 6 | 8 |
| www.amazon.com | 200 | application/json | 33 | 33 |
| www.netflix.com | 200 | application/json | 7 | 13 |
| open.spotify.com | 200 | application/json; charset=utf-8 | 7 | 14 |
| www.nytimes.com | 200 | application/json | 11 | 23 |
| www.uber.com | 200 | application/json | 42 | 42 |
| www.airbnb.com | 200 | application/json | 61 | 4 |
| www.duolingo.com | 200 | application/json | 3 | 2 |
| github.com | 200 | application/json | 3 | 4 |
| www.reddit.com | 200 | application/json | 3 | 3 |
| www.linkedin.com | 200 | application/json | 114 | 10 |

Three things stand out.
File size varies enormously -- and that is fine. These 12 hosts publish 319 statements and 209 fingerprints between them, from 3 statements (GitHub, Reddit, Duolingo) to 114 (LinkedIn). A file covering one app needs only one statement. The large counts come from multi-app platforms or cross-domain credential sharing, not from any requirement to be verbose.
Two namespaces appear in the files. 154 statements use android_app, which routes links to an app. 165 use web, which targets a website. Of the web statements, 106 include handle_all_urls and 59 grant only get_login_creds -- so a file that looks confusingly large is not necessarily all link handling. get_login_creds appears 139 times in the sample, use_as_origin 5 times, alongside 259 uses of handle_all_urls.
None of these 12 sites serves Android 15's dynamic rules. Android 15 added dynamic_app_link_components inside a statement's relation_extensions field. Across all 319 statements in this sample that field is absent. That is not a reason to avoid the feature -- it just means none of these sites used it on that day.
The Android manifest: what has to match
The file and the app have to agree. A minimal verifying filter for one host looks like this. Google's intent-filter guide says it must include <data> elements for both http and https:
<activity android:name=".MainActivity" android:exported="true">
<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="http" />
<data android:scheme="https" />
<data android:host="www.example.com" />
</intent-filter>
</activity>
If your app targets Android 12 (API level 31) or higher, android:exported is required on any activity with an intent filter -- the app will not install without it.
android:autoVerify="true" tells Android to check the statement at install time. Without it, verification does not run. The categories are not optional either: BROWSABLE makes the filter reachable from a browser, and DEFAULT allows your activity to receive implicit intents.
Watch out: multiple <data> elements merge, they do not stack
Two <data> elements inside one intent filter produce four URL patterns, not two. The attributes are cross-multiplied, not treated as alternatives. This is one of the easier ways to accidentally open URLs in your app that you never meant to handle.From the deep-linking guide:
<intent-filter>
<data android:scheme="https" android:host="www.example.com" />
<data android:scheme="app" android:host="open.my.app" />
</intent-filter>
That looks like it handles https://www.example.com and app://open.my.app. It also handles app://www.example.com and https://open.my.app. If you want two independent URL shapes, use two separate intent filters. And in an autoVerify filter, adding a custom scheme stops verification from running.
The same page notes that pathPrefix requires a leading slash: pathPrefix="/gizmos", not pathPrefix="gizmos".

Read the incoming URL from intent.data at every entry point your activity has. Google's Studio guide shows the pattern: one handler called from both onCreate and onNewIntent, so a link tapped while the app is already running is not missed.
How verification works -- and what Android 15 changed
At install, Android inspects every intent filter that declares ACTION_VIEW, the BROWSABLE and DEFAULT categories, and an http or https scheme. For each distinct hostname it finds, it requests https://<hostname>/.well-known/assetlinks.json, checks for a statement matching your package name, and compares the certificate used to sign the installed app against the fingerprints in the file. A match means your app becomes the verified handler for that host.
Two behaviors follow.
When two apps claim the same host and path, only the most recently installed one receives web intents. Lite and full versions of the same app will compete for the domain, and the loser silently stops getting links.
On Android 12 and later, web links that are not verified App Links generally open in a web browser by default. The deep-linking guide also says unverified web links "will almost always trigger the disambiguation dialog." Either way, the common outcome of a broken App Link on a modern device is the browser, not a chooser.
Dynamic App Links (Android 15+)
Care about this section if you want to change link routing without shipping a new app build -- for example, A/B testing which paths open in the app, or excluding a section of your site after launch. If you are not doing that, the manifest alone is simpler and every device supports it.
On Android 15 (API level 35) and later, devices with Google services re-fetch assetlinks.json periodically instead of only reading it once at install. The file stops being a static declaration and becomes live configuration.
That enables dynamic_app_link_components, defined inside relation_extensions:
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.example.app",
"sha256_cert_fingerprints": ["..."]
},
"relation_extensions": {
"delegate_permission/common.handle_all_urls": {
"dynamic_app_link_components": [
{"/": "/products/*"},
{"/": "/shoes", "?": {"in_app": "true"}},
{"#": "app"},
{"/": "*", "exclude": true}
]
}
}
}]
The matcher keys in each rule object are:
| Key | Matches |
|---|---|
/ |
The URL path |
# |
The URL fragment |
? |
A dictionary of query parameter names and value patterns |
exclude |
Marks that rule as blocking the app rather than opening it |
Wildcards are * for zero or more characters, ? for exactly one, and ?* for one or more. The ? dictionary does not need to match every query parameter, but every entry in it has to be found.
Four rules govern these, all documented at the source:
- Order matters, first match wins. An early
{"/": "*", "exclude": true}rule excludes everything and makes every later rule unreachable. - If nothing matches, the link does not open your app. Dynamic rules are not additive with a default-allow. A rule list of
{"/": "/path1"}and{"/": "/path2"}excludes everything else. - Dynamic rules cannot expand the manifest's scope. They apply only within the hosts and URL rules the manifest already declares. The recommended pattern is a broad manifest entry -- scheme and domain -- with refinement moved into the file.
- Declare
dynamic_app_link_componentsonce per site, relation and app. If it appears more than once, Android does not guarantee which set it uses.
Two more things worth knowing: malformed or empty fields cause Android to discard the entire dynamic ruleset and fall back to the manifest, so one bad field silently reverts your configuration. And devices on Android 14 and earlier ignore the extension fields altogether, making behavior differ by OS version in a way that can look like a bug.
As of Google's App Links tools page (updated 2026-10-06), Android Studio's App Links Assistant does not generate dynamic rules.
Debugging: start with the symptom, not the docs

Google keeps its own troubleshooting page; this table orders the same checks by symptom.
| Symptom | Check | What good looks like | Layer |
|---|---|---|---|
| 404 or a login page at the path | curl -I https://<host>/.well-known/assetlinks.json |
200, no Location header |
Server |
Serves HTML or text/plain |
Same, reading Content-Type |
application/json |
Server |
| Redirects | Watch for a 301 or 302 | No redirect at all | Server |
| Correct file, link still opens Chrome | Play App Signing certificate | Fingerprint matches Play Console | Signing |
| Release build fails, debug works | Compare the two fingerprints | Both listed in the file | Signing |
| File and signing correct | adb shell pm get-app-links <package> |
Each host listed as verified |
Verification |
| Verifies on one host, not another | curl -I https://example.com./.well-known/assetlinks.json (trailing dot) |
Same file as without the dot | Server |
| Verified but the wrong screen opens | App-side intent handling; check that only one activity declares the filter | Path parsed from intent.data |
App code |
| Verified, but links open in the browser for one user | Your app's Open by default settings screen (path varies by device) | "Open supported links" is on | Device settings |
The ADB commands, step by step
Test whether Android routes the link to your app (forces delivery to your package -- use this to confirm your activity responds to the URL):
adb shell am start -W -a android.intent.action.VIEW \
-d "https://www.example.com/products/123" com.example.shop
Test whether verification would route the link (no package name, mimics a real tap -- wait at least 20 seconds after installing before running this):
adb shell am start -W -a android.intent.action.VIEW \
-c android.intent.category.BROWSABLE \
-d "https://www.example.com/products/123"
Reset stored link-handling state (Android 12 and later only):
adb shell pm set-app-links --package com.example.shop 0 all
Force a fresh verification, then read the result:
adb shell pm verify-app-links --re-verify com.example.shop
# wait a few minutes
adb shell pm get-app-links com.example.shop
If your app targets Android 11 or lower, enable the updated verification behavior first:
adb shell am compat enable 175408749 com.example.shop
Note: the pm get-app-links and pm verify-app-links subcommands do not exist on Android 11 and lower.
Ask Google's servers what they see for your domain (the answer is cached; return_relation_extensions=true includes dynamic rules):
curl -sS "https://digitalassetlinks.googleapis.com/v1/statements:list?\
source.web.site=https://github.com&\
relation=delegate_permission/common.handle_all_urls"
Without a device, ChottuLink's Deep Link Tester is a free browser tool that checks Android App Links, iOS Universal Links and web fallbacks without a signup.
Per Google's App Links tools page, Play Console also has a deep links dashboard under Grow > Deep links that reports configuration errors and can push link fixes live without a new app release. On Android 17 and later, am start accepts a --debug-link flag that shows how the system resolved a URL and which rules matched.
Start here when links open in the browser
Three places to look, in order from most mechanical to most app-specific:
- The fingerprint does not match the installed app. Play App Signing re-signs your app, so a locally generated fingerprint is the wrong one for release builds. Get it from Play Console.
- The manifest does not verify, or verifies more than you meant. Check for a missing
autoVerify, a missingBROWSABLEcategory, apathPrefixwithout its leading slash, or two<data>elements that merged into a scope you did not intend. - The file is not where or how Android looks. Wrong path, wrong content type, a redirect in front of it, or no copy on one of the hosts in your manifest.
FAQ
Do Android App Links work on every Android version?
App Links work from Android 6.0 (API level 23) and later, on devices with Google services. Verification is automatic from that version. On Android 12 and later, Google's docs say unverified web links generally open in the browser by default, so a broken setup usually means Chrome, not a chooser.
What is the difference between a deep link and an App Link?
| Deep link | Android App Link | |
|---|---|---|
| Scheme | Any, including custom (myapp://) |
http or https |
| Domain proof | None | assetlinks.json plus certificate match |
| What happens on tap | Android resolves the intent; with more than one match the user may see a chooser, and on Android 12+ unverified web links generally open in the browser | Opens your app directly once verified |
| Can be intercepted | Yes, another app can register the same scheme | Verification is designed to prevent it |
An App Link is a deep link that has been verified.
Can two apps claim the same domain?
Yes, as long as they handle different paths. Several apps can each verify against one domain. If two apps resolve the exact same host and path -- as a lite and full version might -- only the most recently installed one receives web intents for it.
Do I have to re-verify after changing the file?
On Android 15 and later, devices with Google services re-verify in the background, and Google says a change can take up to seven days to reach every device. On Android 14 and lower, a change is typically picked up only when the app is installed or updated. To test a change on one device, reset the state with pm set-app-links and run pm verify-app-links --re-verify <package>, or reinstall. Google warns that server-side caching can still serve the old file for a few hours.
Does this work with Flutter or React Native?
The assetlinks.json file and the verification rules are identical, because Android performs the verification, not the framework. What differs is how the framework declares the intent filter -- in both Flutter and React Native that is still the native AndroidManifest.xml -- and how it passes the URL to your code. Flutter also has a Deep Link Validator, listed on Google's App Links tools page.