How to use Dynamic Links with the <projectID>.web.app domain?

Asked

Viewed 134 times

1

I have an application hosted using a Hosting Service subdomain, this application also uses Dynamic Links

It is possible to use a path, for example, /share/<link> in the same application domain? (This route has no file in the application)

I tried configuring the angular.json file:

{
    "hosting": {
        "appAssociation": "AUTO",
        "rewrites": [{
            "source": "/e/**",
            "dynamicLinks": true
        }, {
            "source": "**",
            "destination": "/index.html"
        }],

        // [...]
    }
}

However, when trying to add a new URL prefix to the application domain, it requires me to make a configuration that I don’t know how to do:

inserir a descrição da imagem aqui

Is it possible to do this? How?

1 answer

1


It is possible to do this?

Not, Firebase insists you use <my website>.page link. for Dynamic Links.

Now, if you connect an external domain, that rule with dynamicLinks in the firebase.json works perfectly.

It is possible to use a path, for example, /share/<link> in the same field of application?

So the answer is yes for connected domains, and nay for <my website>.web app..

  • @Costamilam It’s not just the <projectId>.web.app that covers the response, but to any additional website coming from web app.. Because you can have multiple sites in the same project.

  • 1

    True, and in the case of page.link, it’s not even the id. Better reverse the edit

Browser other questions tagged

You are not signed in. Login or sign up in order to post.