Skip to content

FirebaseDynamicLinks retrieveDynamicLink() only retrieves the links in Firebase, not the link that opened the app #27439

@Daniel-WM-Roy

Description

@Daniel-WM-Roy

I've followed Diego's Flutter : Firebase Dynamic Link tutorial but the method FirebaseDynamicLinks.instance.retrieveDynamicLink() doesn't return the link that opened the app. To quote Diego's article:

FirebaseDynamicLinks.instance.retrieveDynamicLink() is the call that is responsible for obtaining the deep link in the case our application was opened from the dynamic link.

But it doesn't. Instead it just pulls the dynamic links that exist in the Firebase dynamic links console. I have one link there that I initially created for testing purposes. This method always returns that link, even when opening the app using a link I created using DynamicLinkParameters.

Is there another way to get the link that opened the app? The current documentation from Firebase doesn't mention how to do it in Flutter.

I'm using Flutter version 1.1.8 and firebase_dynamic_links 0.1.0+1 (as 0.2.0 seems to be broken at the moment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: firebaseFirebase pluginsp: firebase_dynamic_linksFirebase DynamicLinks pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions