Replacing Firebase Dynamic Links: How to Host apple-app-site-association and assetlinks.json

Nick Kirtley

Nick Kirtley

11/25/2026

#universal links#app links#firebase dynamic links#ios#android
Replacing Firebase Dynamic Links: How to Host apple-app-site-association and assetlinks.json

AI Summary: Firebase Dynamic Links shut down on 25 August 2025, so apps that relied on page.link or Firebase-hosted custom domains must host their own deep-link files. This guide explains what apple-app-site-association (iOS Universal Links) and assetlinks.json (Android App Links) do, gives an annotated example of each, lists the hosting rules (HTTPS, no redirects, JSON, no extension for the Apple file), shows how to upload both in a .well-known folder, how to check what Apple's CDN sees, and how to fix common errors such as SWCERR00201.


Your app's links used to open the app through Firebase Dynamic Links. That service is gone, and now links open the browser, or a 404. To get deep links working again you need to host two files yourself: apple-app-site-association for iOS Universal Links and assetlinks.json for Android App Links. This guide shows how to host apple-app-site-association and assetlinks.json on a domain you control, even if you don't have a website.

Why you now host these files yourself

According to Firebase's Dynamic Links deprecation FAQ, Dynamic Links shut down on 25 August 2025. Links on page.link and on custom domains served by Firebase stopped working and return HTTP 404, and page.link domains are no longer available.

Firebase's migration guide points you to the platforms' own systems: Universal Links on iOS and App Links on Android. Both work the same way. Your app declares a domain, and that domain publishes a small JSON file that says "this app is allowed to open my links". The phone fetches the file, and if it matches, tapping a link on that domain opens your app.

So you need a domain and two files on it. You don't need a website beyond that.

What each platform requires

apple-app-site-association (iOS)

From Apple's Supporting associated domains:

  • Path: https://yourdomain/.well-known/apple-app-site-association
  • No file extension. Not .json.
  • HTTPS with a valid certificate, and no redirects. Not even http to https, and not from one host to another.
  • JSON content. Serve it as application/json, which is what Firebase's migration guide sets and what Apple's CDN expects.
  • Keep it small. The commonly cited limit is 128 KB.
  • One file per host. Apple matches the fully qualified domain, so links.example.com and example.com each need their own file and their own entitlement.

Since iOS 14 and macOS 11, devices don't fetch the file from your server. Apple's CDN fetches it (Apple says within 24 hours) and devices read the CDN's copy. Installed apps check for updates about once a week.

assetlinks.json (Android)

From Android's Verify App Links guide:

  • Path: https://yourdomain/.well-known/assetlinks.json
  • JSON content, served over HTTPS.
  • The right fingerprint: if you use Play App Signing (most apps do), use the app signing key SHA-256 from Play Console under Release → Setup → App signing, not your upload key. Play Console also shows a ready-made Digital Asset Links snippet on that page.
  • android:autoVerify="true" on at least one intent filter in your manifest, for the domain you're associating.

Example files

apple-app-site-association

{
  "applinks": {
    "details": [
      {
        "appIDs": ["ABCDE12345.com.example.yourapp"],
        "components": [
          { "/": "/invite/*", "comment": "Invite links open the app" },
          { "/": "/item/*" },
          { "/": "/admin/*", "exclude": true, "comment": "Keep these in the browser" }
        ]
      }
    ]
  }
}
  • ABCDE12345 is your Team ID (Apple Developer account → Membership). com.example.yourapp is your bundle ID.
  • components lists which paths open the app. Order matters: the first match wins, so put exclusions before broader rules if they overlap.
  • In Xcode, add applinks:yourdomain under Signing & Capabilities → Associated Domains.

assetlinks.json

[
  {
    "relation": ["delegate_permission/common.handle_all_urls"],
    "target": {
      "namespace": "android_app",
      "package_name": "com.example.yourapp",
      "sha256_cert_fingerprints": [
        "AB:CD:EF:01:23:45:67:89:AB:CD:EF:01:23:45:67:89:AB:CD:EF:01:23:45:67:89:AB:CD:EF:01:23:45:67:89"
      ]
    }
  }
]

And the intent filter in AndroidManifest.xml:

<intent-filter android:autoVerify="true">
  <action android:name="android.intent.action.VIEW" />
  <category android:name="android.intent.category.DEFAULT" />
  <category android:name="android.intent.category.BROWSABLE" />
  <data android:scheme="https" android:host="links.example.com" />
</intent-filter>

Step-by-step: hosting both files

1. Make the folder

The files must sit in a folder named .well-known. Folders starting with a dot are hidden on Mac and Linux, so the terminal is the easiest way:

mkdir -p links/.well-known
# save your two files into links/.well-known/
cd links && zip -r ../links.zip . && cd ..

Add an index.html to links/ if you want the domain to show something when opened in a browser.

2. Upload to 99helpers

  1. Drop links.zip into 99helpers and choose an address, for example yourapp-links.99helpers.site.
  2. 99helpers keeps the folder structure, serves both files over HTTPS without redirects, and serves apple-app-site-association as application/json even though it has no extension.
  3. Open https://yourapp-links.99helpers.site/.well-known/assetlinks.json and https://yourapp-links.99helpers.site/.well-known/apple-app-site-association in a browser. You should see your JSON.

A 99helpers subdomain works technically, because both platforms match the exact host. For branded links like links.yourapp.com, connect your own domain on a paid plan. The same domain can then also serve your app-ads.txt file and your policy pages.

3. Point the apps at the domain

  • iOS: applinks:yourapp-links.99helpers.site (or your own domain) in Associated Domains. Ship a build with it.
  • Android: the same host in your intent filter's android:host, with autoVerify="true".

4. Verify

What Apple sees. Open Apple's CDN copy in a browser:

https://app-site-association.cdn-apple.com/a/v1/yourapp-links.99helpers.site

If it shows your JSON, devices will get it. If it shows an error or old content, the CDN hasn't fetched your latest version yet. That can take a while after a change, so don't keep editing the file while you wait. During development, add ?mode=developer to the entitlement (applinks:yourdomain?mode=developer) and enable associated domains development on the device, which makes it fetch from your server directly.

What Android sees. Install the app, wait about 20 seconds, then on Android 12 and later:

adb shell pm verify-app-links --re-verify com.example.yourapp
adb shell pm get-app-links com.example.yourapp

Your domain should show as verified.

Troubleshooting

SWCERR00201 Insecure (non-https) redirects forbidden

Apple's CDN hit a redirect to an http:// address, often from example.com to www.example.com over plain HTTP. Serve the file directly over HTTPS on the exact host in your entitlement, with no redirect. On 99helpers the file is served directly, so this usually means the entitlement names a different host than the one hosting the file.

Apple's CDN shows "not found" or an old version

The CDN may not have fetched the file yet, or cached an earlier error. Check the file loads on your domain, then wait. Use developer mode for testing in the meantime.

The AASA file downloads instead of showing in the browser

It's being served as a generic binary file. Serve it as application/json. On 99helpers this is automatic for a file named apple-app-site-association.

Android shows "none" or "legacy_failure"

Usually the fingerprint is wrong: use the app signing key from Play Console, not your local debug or upload key. Also check package_name, and that autoVerify="true" is on the intent filter for this host.

Links open the browser instead of the app

On iOS, Universal Links don't fire when you type the URL into Safari or tap a link to the same domain from within that domain. Test from Notes or Messages. On Android, check verification as above.

FAQ

Do I need a full website for Universal Links?

No. You need a domain that serves the two files over HTTPS. A one-page home is a nice extra for people who open a link without the app installed.

Can I keep using my page.link links?

No. Firebase says they return 404 since the shutdown. Move to links on a domain you control and update anything that shares links.

Can one domain serve both iOS and Android?

Yes. Both files live side by side in the same .well-known folder.

Does apple-app-site-association need a .json extension?

No. Apple requires the file name without an extension.

Related guides

The same domain and root-file setup also handles ads verification: see how to set up app-ads.txt without a website. For the iOS listing itself, see App Store Connect support URL and privacy policy URL.