App links implementation means setting up your website and mobile app so that tapping a normal web URL opens your app directly, and links from places like email, messages or search results land on the right screen instead of a browser page. The shortest working setup has three parts: host a verification file on your domain, declare the link paths in your app's manifest or entitlements, and test with real links on a real phone. The exact mechanism differs by platform: Android uses App Links (Digital Asset Links), while iOS uses Universal Links (the Apple App Site Association file). Both are standards, not SDKs, so there is nothing to buy.

What You'll Need

  • Admin access to your website (to upload files and serve them over HTTPS with no redirects).
  • Your Android app's signing certificate SHA-256 fingerprint, and your Apple Developer team ID plus app bundle identifier.
  • The ability to rebuild and redeploy your Android and iOS apps.
  • A real test device for each platform. Emulators can behave differently, and iOS verification is especially unreliable on simulators.
  • A valid TLS certificate on your domain. Both systems fetch verification files over HTTPS only.

Step-by-Step

  1. Decide which URLs should open the app. Write down the exact paths and subdomains you want to claim, for example example.com/products/* and links.example.com/*. Keep the list tight at first. Claiming paths you do not handle well is worse than not claiming them.
  2. Make sure those URLs already work in a browser. App links do not create content; they redirect an existing URL to an app screen. If a page 404s in a browser, fix that first. Also remove any redirect or login wall in front of the URL, since verification files must be reachable without one.
  3. Gather your Android signing fingerprints. You need the SHA-256 fingerprint of the certificate that signs the app users install. If you use Play App Signing, that is the certificate shown in the Play Console's app signing section, not your local debug key. If you ship multiple build variants or a debug build for testing, add each fingerprint.
  4. Create the Android asset links file. Build a /.well-known/assetlinks.json file containing your package name and SHA-256 fingerprints, and publish it at that exact path on each domain. It must return HTTP 200 as JSON with no redirect, and it must not require login. Avoid a heavy content security policy that blocks it.
  5. Declare Android intent filters. In your app manifest, add intent filters with android:autoVerify="true", an https scheme, your host, and the path patterns you listed. Only one app should claim a given host and path. Rebuild and reinstall the app.
  6. Build the Apple file. Create /.well-known/apple-app-site-association (no file extension). It lists your app identifiers in the form TeamID.BundleID and the path patterns you allow. Serve it as application/json, over HTTPS, with no redirects and without a .json suffix.
  7. Enable Associated Domains in the Apple app. In the Xcode project, add an Associated Domains capability and add entries in the form applinks:example.com for each domain and subdomain. Rebuild, then reinstall the app on a test device. Adding the capability alone does not update an already-installed build.
  8. Handle incoming links in code. Android delivers the URL through the activity intent that matched the filter; iOS delivers it through the scene or app delegate's URL/open-URL handling. Map each claimed path to a screen, and make sure the app can open that screen when it is cold-started, not just when it is already running.
  9. Add a sensible fallback. When the app is not installed, the URL should open the web page in a browser, ideally with a link to the app store. Never show a dead end. Keep the web page useful on its own, because search engines and desktop users will land there.
  10. Test with real links. Send yourself the URL by message or email and tap it. Type the bare URL into a notes app and tap it. Both should open the app. Paste the verification URLs into a browser to confirm they load raw JSON. Use the platform verification tools (Android's app link verification check, and Apple's associated domains diagnostics) rather than guessing.
  11. Verify each app install, not each device. Reinstalling or restoring from a backup can change verification status. Test again after a fresh install before you call it done.

Common Mistakes

  • Publishing the Apple file with a .json extension, or with a redirect from HTTP to HTTPS. Both cause silent failures.
  • Using the wrong signing fingerprint, such as a debug key, or forgetting the Play App Signing certificate when the app is distributed through the store.
  • Testing only in a simulator or emulator. The simulator often does not fetch the Apple association file.
  • Claiming a host you do not control or cannot serve, which lets verification fail quietly.
  • Forgetting subdomains. Each subdomain needs its own verification file and its own associated-domain entry.
  • Assuming links work after a code change without reinstalling the app, because the association is cached per install.

Tips

  • Start with one domain and a couple of paths, prove it works, then expand the list.
  • Keep the verification files in version control alongside a note about which signing certificates are current.
  • Serve the files from the same host that hosts the pages, and check them after any CDN or hosting change.
  • Write down the exact path patterns in your app's readme so nobody changes a route without updating the association files.
  • Include a small web-to-app bridge on the fallback page so people who land on the web can still open the app if they want to.

Troubleshooting

The simplest check first: open the verification URL in a browser on the phone. If you see a login page, a redirect, or an HTML error page instead of raw JSON, fix that before touching app code. If the file loads, check the content: Android needs the right package name and a matching SHA-256 fingerprint; Apple needs the team ID and bundle ID to match exactly, and paths that actually match the URLs you tested.

Next, confirm the app was reinstalled after the manifest or entitlement change, since both systems cache the association per installation. Then test a cold-start link: force-quit the app, tap a link, and see whether it opens. If it opens only when the app is running already, the issue is in your link handling, not verification. If a different app claims the same host, that app may win; remove overlapping claims.

If it still fails, wipe the app and reinstall it, which clears cached association data but also signs you out and loses local app data. Only do that on a test device. If nothing works, check whether your host blocks the .well-known path, returns an unexpected content type, or sits behind a protection service that challenges automated requests.

Frequently Asked Questions

Do app links work if the app is not installed?

No. The URL opens in a browser instead. That is why your web page must work on its own and should offer a link to the app store.

Does the same file work for Android and iOS?

No. Android uses assetlinks.json and Apple uses apple-app-site-association. Both live under /.well-known/ on the same domain.

Do I need to reinstall the app after changing paths?

Usually yes. Associations are cached per install, so test after a fresh install and reinstall when you add domains.

Can two apps claim the same link?

Technically possible, but the system may show a chooser or pick one. Avoid overlapping claims to keep behaviour predictable.

Do custom URL schemes replace app links?

No. Custom schemes only work if the app is installed, cannot be claimed by your domain, and are easy for other apps to hijack. Use HTTPS app links for anything shared publicly.

Are verification files checked over plain HTTP?

No. Both platforms fetch them over HTTPS and generally refuse redirects, so publish them directly on the HTTPS host.