Search code examples
unity-game-enginefirebase-dynamic-links

Creating a short dynamic link using unity firebase throwing error


I'm able to create long dynamic link without issues. Debug also not showing any issues. When I try to create short dynamic link using following code it is throwing error `

FirebaseDynamicLinks.ShortDynamicLink link = await FirebaseDynamicLinks.DynamicLinks.GetShortLinkAsync(components.LongDynamicLink,  options);

`

FirebaseException: 400: Your project does not own Dynamic Links domain: https://example.page.link [https://firebase.google.com/docs/dynamic-links/rest#create_a_short_link_from_parameters]

Firebase console contains this url link prefix and domain is verified.

I have tried changing url prefix but didn't help.


Solution

  • Looks like the issue was with the firebase unity SDK(8.0.0) which I was using. When I tried creating short dynamic link with rest call using api_key it worked fine with same parameters which I was using in unity sdk.