Android App Links are verified HTTPS deep links that open content directly inside an installed Android app instead of a browser, without showing a disambiguation dialog. In mobile app development, they connect a website domain with an app through a cryptographic ownership proof, so a link such as a product URL lands on the matching product screen.
App Links build on the general idea of deep linking but add domain verification. Android checks that the website explicitly authorizes the app, which prevents other apps from claiming the same URLs. They are the Android counterpart of Universal Links on iOS.
How Android App Links verification works
Android App Links rely on two matching declarations: one in the app and one on the website. The app declares an intent filter for http or https URLs with android:autoVerify="true", and the website publishes a Digital Asset Links file at /.well-known/assetlinks.json that names the app package and its signing certificate fingerprint.
When the app is installed or updated, the system verification agent fetches the assetlinks.json file for each declared host. If the package name and the SHA-256 certificate fingerprint match, Android records the app as the verified handler for that domain. Since Android 12, unverified web links open in the browser by default rather than in a chooser.
The following table lists the components that must align for verification to succeed.
| Component | Location | Purpose |
|---|---|---|
| Intent filter | AndroidManifest.xml | Declares URL scheme, host and path |
| autoVerify attribute | Intent filter element | Requests automatic domain verification |
| assetlinks.json | Website /.well-known/ directory | Authorizes the app for the domain |
| Certificate fingerprint | assetlinks.json entry | Binds the authorization to the signing key |
| Link handling code | Activity or navigation graph | Maps the URL to an in-app screen |
App Links compared with other deep linking methods
Android supports three levels of deep linking, and App Links are the most trusted. Custom scheme links such as myapp://item/42 work only when the app is installed and can be claimed by any app. Plain web links without verification may trigger a chooser or open the browser.
| Method | Ownership check | Behavior without app |
|---|---|---|
| Custom scheme deep link | None | Link fails or shows an error |
| Unverified web link | None | Opens in the browser |
| Android App Links | Digital Asset Links verification | Opens the same URL in the browser |
| Universal Links on iOS | apple-app-site-association file | Opens the same URL in Safari |
Because an App Link is an ordinary HTTPS URL, it degrades gracefully. Users without the app still reach the web page, and the same link works in email, search results, social posts and QR codes. This makes App Links the preferred choice for shared content and marketing campaigns.
Implementing App Links in an Android project
Implementation in Android Studio involves manifest configuration, a hosted verification file and routing logic. Android Studio includes an App Links Assistant that generates intent filters and a draft assetlinks.json, and Jetpack Navigation can map URL patterns to destinations with deep link declarations.
- Add an intent filter with action VIEW, categories DEFAULT and BROWSABLE, the https scheme and each host.
- Set
android:autoVerify="true"on the filter. - Publish assetlinks.json over HTTPS with content type application/json and no redirects.
- Include fingerprints for every signing key in use, including the Play App Signing key.
- Parse the incoming URI in the activity and navigate to the correct screen.
Developers test verification with Android Debug Bridge commands such as adb shell pm get-app-links and can reset state with pm set-app-links. The Play Console also provides a deep link inspection view that shows which domains fail verification.
The table below shows typical configuration choices and their consequences.
| Choice | Effect | Recommendation |
|---|---|---|
| Path patterns too broad | App captures pages it cannot show | Limit to supported paths |
| Multiple subdomains | Each host is verified separately | Host assetlinks.json on every host |
| Wildcard host | Verification uses the root domain | Use only when all subdomains match |
| Separate debug build | Debug key differs from release key | Add the debug fingerprint for testing |
Common failures and their fixes
Most App Links problems are verification failures that silently fall back to the browser. The app still installs and runs, so teams often notice the issue only when users report that links open the website instead of the app.
| Symptom | Cause | Fix |
|---|---|---|
| Links open in browser | Fingerprint mismatch | Add the Play App Signing SHA-256 value |
| Verification state none | assetlinks.json redirects | Serve the file directly with status 200 |
| Works for one host only | Missing file on other hosts | Publish the file on each declared host |
| Wrong screen opens | Weak URI parsing | Centralize routing and test every pattern |
| Fails after domain move | Old host still declared | Update manifest and redeploy the file |
A frequent and costly mistake is uploading the upload key fingerprint instead of the Play App Signing key fingerprint. Another is a content delivery network or firewall that blocks the verifier or rewrites the JSON response. Both cause verification to fail without any build error.
Security, privacy and user control
Domain verification gives App Links a meaningful security property: a malicious app cannot intercept links to a bank or retailer domain unless that domain authorizes it. Custom schemes offer no such protection and should not carry sensitive tokens such as password reset or login codes.
Users remain in control. In the system settings they can disable opening supported links for any app, and developers should therefore never assume that a link will reach the app. Every URL must also work as a complete web destination, which keeps the experience consistent across platforms and supports search indexing of the same content.
In everyday language
Android App Links make a normal web link open straight inside an app. If you tap a link to a shop item and you have the shop app, the item opens in the app. If you do not have the app, the same link opens the website.
To prevent impostors, the website publishes a small file saying which app it trusts. Android checks that file, much like a doorman checking a guest list, before letting the app handle those links.
Seen in the real world
A food delivery service sends a weekly email with links to restaurant menus. Before adopting App Links, its custom scheme links failed for people without the app, and web links opened a chooser that many users dismissed.
The team adds verified intent filters for its main domain and two regional subdomains, publishes assetlinks.json on all three hosts with the Play App Signing fingerprint, and routes each menu URL to the matching restaurant screen. After release, verification checks with adb shell pm get-app-links report all hosts as verified.
Email taps now open the restaurant screen directly for app users and the menu page for everyone else. The team sees fewer abandoned sessions from email campaigns and maintains a single link format for web, email and QR codes.