Murali
Murali

Reputation: 1889

dynamicLink giving nil in openUrl

I am enabling the dynamic link for my application. I have added a URL prefix and creating a dynamic link with code.

Clicking on that link, preview is opening if app is not installed. But once the app is installed I am not able to get the link from openUrl method.

Can you one faced this issue before?

Upvotes: 3

Views: 121

Answers (1)

Murali
Murali

Reputation: 1889

I have resolved it.

I am not getting the link back on reinstall because I missed adding FirebaseDynamicLinksCustomDomains array in info.plist file.

And make sure to pass scheme before configure firebase obj. If your scheme is your budbleID then no need to assign this.

FirebaseOptions.defaultOptions()?.deepLinkURLScheme = "your_scheme"
FirebaseApp.configure()

Thank you.

Upvotes: 1

Related Questions