Verify Android App Links assetlinks.json Google Play Console

To successfully verify android app links assetlinks.json google play console setups, you need to host a precise JSON array at your domain root and declare your domain in your app manifest. If any single character, certificate fingerprint, or path rule is misaligned, Android will silently fail to handle your URLs in-app and fall back to opening a browser tab instead.
When you ship an update to your app store listing, users expect tapping an email receipt or a web link to open your app instantly. Setting up Digital Asset Links proves to Android that you own both the website and the app package name, bypassing the disambiguation dialog that normally asks users which app they want to use.
Creating and Formatting the assetlinks.json File
The core mechanism of App Links relies on a specific file named assetlinks.json placed in a hidden directory at your website root. The path must be exactly https://yourdomain.com/.well-known/assetlinks.json. If your server redirects HTTP to HTTPS or strips the leading dot from the directory name, verification will fail.
Say you ship a habit tracker with the package name com.example.habittracker. Your assetlinks.json file must contain a JSON array with at least one relation object. Here is the exact structure you need to supply:
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.example.habittracker",
"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:01:85:92:A1:B7:C0:32:8A:75"
]
}
}
]
The sha256_cert_fingerprints string must match the signing key you use to build the release artifact you upload to the Google Play Console. If you use Play App Signing, the SHA-256 certificate in your local debug build will not match the upload key or the Google-generated app signing key. You must retrieve the correct production signing certificate fingerprint from your Google Play Console dashboard under Setup > App integrity.
Configuring the AndroidManifest.xml File
Before Google Play can verify your domain, your app must declare its intent to handle URLs from that domain. Open your AndroidManifest.xml file and add an <intent-filter> element to the activity that handles your deep links, typically your main entry point.
You must include the android:autoVerify="true" attribute on the intent filter. This attribute tells the Android operating system to query your server for the assetlinks.json file upon installation. Here is how the configuration looks in practice:
<activity android:name=".MainActivity">
<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="example.com" />
</intent-filter>
</activity>
If you omit android:autoVerify="true", Android will still install the app, but it will never trigger the automated verification check against your web server. Without verification, your app cannot intercept web links without showing a browser disambiguation prompt to the user.
Adding and Verifying Domains in the Google Play Console
Once your signed app bundle is uploaded to an internal, closed, or production release track, and your web server is hosting the assetlinks.json file, you can check your configuration inside the Google Play Console.
- Open the Google Play Console and select your app project.
- In the left sidebar navigation, click on Grow, then select App access.
- Locate the card for App links and click on the configuration or view details button.
- Click on Add domains and type your fully qualified domain name without the protocol, such as
example.com. - Save your changes and inspect the status column for your domain entry to see whether Google has successfully verified the asset links file.
Google Play periodically re-verifies these domains automatically. If your server returns an HTTP 404, 500, or a bad JSON syntax error during this check, the console will flag the domain as unverified, and deep links will stop working for newly installed app instances.
Debugging Broken App Link Routing
When verification fails, tracking down the root cause requires checking both the device system logs and your web server headers. Android caches verification results aggressively, making local testing tricky.
- Check server content-type headers: Your web server must serve the
assetlinks.jsonfile with aContent-Type: application/jsonheader. If it serves it as text/plain, the Android package manager will reject it. - Inspect ADB verification states: Run
adb shell pm get-app-links com.example.habittrackerin your terminal to see the live verification status on a connected test device. - Force a manual verification reset: If you updated your JSON file and want Android to check it immediately without reinstalling the app, run
adb shell pm verify-app-links --re-verify com.example.habittracker. - Test SHA-256 mismatches: Ensure your app wasn't signed with a debug keystore when testing a production build, as debug keys have entirely different fingerprint hashes.
If you are also preparing visual assets or store graphics while sorting out your app configuration, you can use the free tools on LaunchShots to build a clean feature graphic maker layout or generate icons without touching heavyweight design software.
FAQ
Why does Google Play say my domain is unverified even though assetlinks.json is accessible?
This usually happens because the SHA-256 fingerprint in your JSON file does not match the actual signing certificate of the app installed on the device. Remember that if you use Play App Signing, your local debug key differs from the production key managed by Google.
Can I host assetlinks.json on a subdomain like app.example.com?
Yes, you can associate subdomains as long as you add each specific subdomain to your Play Console and host a valid assetlinks.json file at https://app.example.com/.well-known/assetlinks.json.
What HTTP status code must the server return for assetlinks.json?
Your server must return an HTTP 200 OK status code. Any redirect, such as a 301 or 302, or an error code like 404 will cause the Android verification engine to fail instantly.
Do I need an assetlinks.json file for iOS Universal Links?
No, iOS uses a different file named apple-app-site-association (without any file extension) hosted in the same .well-known directory for Universal Links configuration.
Next Steps for Your App Launch
Getting your deep links and domain verification sorted out is a critical milestone before driving traffic to your mobile release. While you finalize your backend setup and store listings, make sure your visual branding is just as polished as your routing logic. You can use the free browser-based screenshot creator on LaunchShots to generate store-ready promotional images entirely on your client machine with zero server uploads.
Make your App Store screenshots free
LaunchShots is a free, in-browser screenshot maker. No signup, no watermark.
Open the app →
Comments (0)