Mobile apps

What are Universal Links?

Universal Links are Apple's way of making an ordinary https link open the matching iPhone app when it is installed, and the website when it is not. The same address works in emails, texts, QR codes and ads.

How they work

Your website hosts a small file called apple-app-site-association, which lists the paths the app can handle. The app declares an Associated Domains entitlement for your domain. iOS checks the file and, if it matches, hands the link to the app.

Why they fail

  • The file is missing, redirected or served with the wrong content type.
  • The link is typed or pasted into Safari's address bar, where iOS treats it as a browsing request.
  • The app was never launched after install, so the check has not happened.
  • The user long-pressed and chose to open the website, which iOS may remember.

Compared with other options

Custom URL schemes such as myapp:// work without a website but anyone can claim them, and they fail when the app is absent. Universal Links are the recommended method. The Android equivalent is App Links.

Questions, answered

Yes, you must control a domain and host the association file over https.

Not by default. That needs deferred deep linking through an attribution tool.

By the Stegnor team · Updated