Android App Links

Also known as: App Links

On this page 7

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.

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.

ComponentLocationPurpose
Intent filterAndroidManifest.xmlDeclares URL scheme, host and path
autoVerify attributeIntent filter elementRequests automatic domain verification
assetlinks.jsonWebsite /.well-known/ directoryAuthorizes the app for the domain
Certificate fingerprintassetlinks.json entryBinds the authorization to the signing key
Link handling codeActivity or navigation graphMaps the URL to an in-app screen
Components required for Android App Links

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.

MethodOwnership checkBehavior without app
Custom scheme deep linkNoneLink fails or shows an error
Unverified web linkNoneOpens in the browser
Android App LinksDigital Asset Links verificationOpens the same URL in the browser
Universal Links on iOSapple-app-site-association fileOpens the same URL in Safari
Deep linking options on Android

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.

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.

  1. Add an intent filter with action VIEW, categories DEFAULT and BROWSABLE, the https scheme and each host.
  2. Set android:autoVerify="true" on the filter.
  3. Publish assetlinks.json over HTTPS with content type application/json and no redirects.
  4. Include fingerprints for every signing key in use, including the Play App Signing key.
  5. 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.

ChoiceEffectRecommendation
Path patterns too broadApp captures pages it cannot showLimit to supported paths
Multiple subdomainsEach host is verified separatelyHost assetlinks.json on every host
Wildcard hostVerification uses the root domainUse only when all subdomains match
Separate debug buildDebug key differs from release keyAdd the debug fingerprint for testing
Configuration choices and their effect

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.

SymptomCauseFix
Links open in browserFingerprint mismatchAdd the Play App Signing SHA-256 value
Verification state noneassetlinks.json redirectsServe the file directly with status 200
Works for one host onlyMissing file on other hostsPublish the file on each declared host
Wrong screen opensWeak URI parsingCentralize routing and test every pattern
Fails after domain moveOld host still declaredUpdate manifest and redeploy the file
Troubleshooting Android App Links

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.