Fixing App Links and Universal Links: assetlinks.json and AASA Checks
Why deep links open the browser instead of your app, how assetlinks.json and apple-app-site-association work, and how to test both before release.

A link in an email or a search result that opens straight into your app feels effortless. Behind it are two small JSON files on your website, and when either is slightly wrong the link quietly opens in a browser with no error anywhere. This guide explains what Android and iOS check, the mistakes that break verification most often, and how to use the App Links and Universal Links Validator to find them before your users do.
How verification works
Both platforms want proof that the website and the app belong to the same owner.
On Android, an activity declares an intent filter with autoVerify set to true, the https scheme and your host. When the app is installed, the system downloads https://your-domain/.well-known/assetlinks.json and checks that it names the app's package and the SHA-256 fingerprint of the certificate that signed it. If every host verifies, links open the app directly.
On iOS, the app has an Associated Domains entitlement such as applinks:shop.example.com. The system fetches the apple-app-site-association file for that domain through Apple's content delivery network and looks for the app ID, made of the ten-character Team ID and the bundle ID, along with rules for which paths open the app.
The mistakes that break it
Most broken setups come down to a short list:
- The fingerprint is lower case, contains SHA-1 instead of SHA-256, or belongs to the upload key rather than the Play App Signing key.
- The assetlinks.json file is a single object instead of an array.
- The AASA file uses a wrong Team ID, or mixes the old paths format with the newer components format.
- An exclusion rule comes after a broader rule. iOS stops at the first match, so the exclusion never runs.
- The file redirects, needs a login, is behind bot protection or is served with the wrong content type.
- The www subdomain was never given its own copy.
Checking the files
Paste assetlinks.json into the Android tab. The validator checks the array structure, the handle_all_urls relation, the namespace, the package name and the format of every fingerprint, and gives a plain explanation for each problem. It also writes the matching intent filter for your manifest.
Paste the AASA file into the iOS tab. It checks the app IDs, lists the rules in evaluation order with each one marked include or exclude, flags mixed formats and checks webcredentials for password autofill. It writes the Associated Domains entitlement as well.
Testing real URLs
The tester tab is where most bugs become obvious. Paste the links your marketing emails, receipts and website actually use, along with the paths your Android intent filter handles. For each URL you see app or web on both platforms, and for iOS the exact rule that decided. If an account page opens the app when it should not, you will see which pattern caught it and know to move the exclusion higher.
Hosting and device checks
The hosting tab lists the server requirements and generates commands you can run:
- adb shell pm verify-app-links with the re-verify flag, then pm get-app-links to read the result on Android 12 and later.
- adb shell am start to open a link exactly as a browser would.
- xcrun simctl openurl to test in the iOS Simulator.
- curl commands that show the status code and content type of both files and the copy Apple's CDN is serving.
Apple's CDN caches the file for hours. During development, add the developer mode suffix to the associated domain so the device fetches it directly.
A short release checklist
- Validate both files and fix every error.
- Test the URLs you actually send to users.
- Confirm both files return 200 over https with no redirect on every host.
- Use the Play Console fingerprint for Play-distributed builds.
- Re-verify on a real device after each change to the files.
Limits
The validator works on files you paste or open; it does not fetch your live site, because browsers block those cross-origin requests. It cannot confirm that a fingerprint really belongs to your key or that a Team ID belongs to your account, so compare them with Play Console and the Apple Developer portal.



