Firebase dynamic link URL Prefix on custom domain cannot be added

Viewed 212

I have my custom domain connected and running (bottom 1):

enter image description here

When I go to my site:

https://mysubdomain.mysite.app/.well-known/assetlinks.json

I see the assetlinks.json being created:

[{"relation":["delegate_permission/common.handle_all_urls"],"target":{"namespace":"android_app","package_name":"test.mycompany","sha256_cert_fingerprints":["XX:XX:XX:XX:4B:8A:A6:53:E1:4A:82:F6:B1:48:E0:22:XX:XX:XX:XX:XX:XX:XX:v:FD:93:XX:XX:XX:34:XX:84"]}}]

I removed the mysubdomain.mysite.app from the Dynamic Link Tab (because the links were not working) and tried to re-add it (after removing, the above json was still shown). But after re-adding this error was shown:

enter image description here

Am I supposed to use Filezilla and manually add a file called assetlinks.json? And what is the exact content of this json file? The error message talks about firebase.json, not assetlinks.json.

1 Answers

I added a file called firebase.json with the following content:

  "hosting": {
    "public": "build/web",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "appAssociation": "AUTO",
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      },
      {
        "source": "/<HERE_IS_MY_LINK>/**",
        "dynamicLinks": true
      }
    ]
  }
}

It's been like a year ago that I implemented this, not sure if there is anything else missing you need to do.

Related