Agent Wranglers

Standard addresses Optional

Open links in your Android app

If you have an Android app, publish /.well-known/assetlinks.json so links open in it.

How to do it

Serve the Digital Asset Links JSON as application/json, without a redirect. Give the app's package name and the SHA-256 fingerprint of its signing certificate. With Play App Signing, use the fingerprint Google Play shows, not your upload key.

Example

curl 'https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=https://example.com&relation=delegate_permission/common.handle_all_urls'
[{
  "relation": ["delegate_permission/common.handle_all_urls"],
  "target": {
    "namespace": "android_app",
    "package_name": "com.example.app",
    "sha256_cert_fingerprints": ["14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5"]
  }
}]

How to check

Google's Digital Asset Links API lists the app for the site. A link to the site opens the app on Android.

For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers website playbook: https://agentwranglers.se/playbook/website/standard-addresses/assetlinks-json.