The desktop and phone apps are coming soon.

Join the waitlist
On this page

Link files

In four chapters: the URI shopper://products/:productId?sort=price is typed, and 5412 is filled in for the path variable. It is sent to a Pixel 8 on USB; the phone opens the Shopper app on product 5412, and Diver answers: Sent to Pixel 8, opened. Sent to this computer instead, which has no app for the link, Diver answers: No app on this device can open that URI. Then the link files for shop.example.com are checked: apple-app-site-association is redirected, which Apple will not follow; assetlinks.json is served and claims the app.

Example: the desktop app, coming soon, drawn with made-up links. It sends to a phone on USB, which opens the link; then to a computer with no app for it; then the link file check. In the browser build today you build the same URI and send it to a device on your account.

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

  1. Fill in the environment: link domain, Android package and fingerprints, Apple team ID and bundle ID.
  2. Copy the two files from the admin console and serve them from the link domain.
  3. Press Check in 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.