An https deep link only opens the app when the link's domain serves two files that claim it: apple-app-site-association for iOS and assetlinks.json for Android. Diver writes both from your app's settings, and the desktop and phone apps check that the domain serves them.
In one minute
- Fill in the environment: link domain, Android package and fingerprints, Apple team ID and bundle ID.
- Copy the two files from the admin console and serve them from the link domain.
- Press
Checkin the desktop or phone app. The browser cannot check.
What Diver generates#
From one environment of an app, Diver writes:
| File | Served at | What it claims |
|---|---|---|
assetlinks.json |
/.well-known/assetlinks.json |
the Android package and its SHA-256 certificate fingerprints, with the handle_all_urls relation |
apple-app-site-association |
/.well-known/apple-app-site-association |
the app as TEAMID.bundle.id, with one path pattern per deep link template, each :variable as * |
Diver generates these files but does not host them. In the admin console at admin.usediver.com, an app's Link files shows both, ready to copy, and the hosting requirements: https with a valid certificate from the link domain itself, Content-Type: application/json for both files, no redirects, android:autoVerify="true" on the Android intent filter, and the domain in the iOS app's Associated Domains entitlement. A server can also proxy the files from Diver with an API key (CI keys).
Warnings before anything is served#
While the environment is incomplete, Diver says what is missing:
No link domain set for 'production'. Add one to serve these files and to build https deeplinks.No Android package name set for 'production', so assetlinks.json cannot be generated.'production' has no SHA-256 certificate fingerprints. Android will reject the file until at least one is listed.No Apple Team ID and bundle identifier set for 'production', so apple-app-site-association cannot be generated.'production' has no deeplinks yet, so the file claims every path on the domain.
What the apps check#
For an https link, the desktop and phone apps show https deeplinks only open the app once the link files are served. and a Check button. Pressed, Diver fetches each file from the link domain itself, following redirects, and reports each one:
| Result | Shown as |
|---|---|
| Served and claims the app | Served and claims this app. |
| The domain did not answer | Could not reach the domain. |
| Nothing at that address | Nothing is served here., with the HTTP status |
| Not JSON | Served, but not valid JSON. |
| Redirected | Redirected - Apple will not follow one for this file., with the address it ended at |
| Served, but for another app | Served, but it does not claim this app. |
When a file does not claim the app, Diver says which part is wrong: Not a list of statements, Does not claim and the package name, or Missing fingerprint and the fingerprint, for Android; Not a JSON object, No applinks section, No applinks details, or Does not claim and the team and bundle ID, for Apple.
All well, the banner reads Link files verified on links.acme.com. (with your domain). Otherwise it counts the problems: 2 problems - these links will open the browser instead.
What the check does not look at#
It compares the app ID, the package and the fingerprints. It does not compare the paths in the Apple file, the relation in the Android file, or the Content-Type the server sends. Checking apple-app-site-association and assetlinks.json has the commands that do, from Apple and Google.
Why not in the browser#
Link files can't be checked from a browser - a domain serves them for Apple and Google, not for a web page. Check from Diver on a phone or desktop. The files carry no cross-origin headers, so a browser would report them missing. The desktop and phone apps are coming soon: tell me when they ship.