Ilja
Ilja

Reputation: 46479

Unable to set up Dynamic Links for Firebase Authentication

I've followed documentation in order to set dynamic links https://firebase.google.com/docs/dynamic-links/custom-domains

  1. My domain was already added to my hosting
  2. So I went ahead to dynamic links and created custom prefix i.e. https://example.com/link
  3. After that I added custom hosting configuration and deployed it
  "hosting": {
    "public": "hosting",
    "appAssociation": "AUTO",
    "rewrites": [
      {
        "source": "/link/**",
        "dynamicLinks": true
      } 
    ]
  }
  1. Once deployed I added following key to my iOS projects .plist file
<key>FirebaseDynamicLinksCustomDomains</key>
<array>
  <string>https://example.com/link</string>
</array>

Now I've cleaned my build, ran the app and sent myself a dynamic link. Url still uses firebases page.link structure. I'm not sure if there is something I'm doing wrong or am I misunderstanding what these custom domains mean?

Note: I am testing this through email link (passwordless) authentication, perhaps custom domain is just not applied there?

Upvotes: 2

Views: 2935

Answers (1)

bojeil
bojeil

Reputation: 30798

Firebase Auth only supports custom Firebase Dynamic Links without custom paths.

So if your custom domain is https://example.com/link, it won't work. However, configuring https://example.com as the custom domain will work.

Upvotes: 4

Related Questions