Skip to content

Firebase Dynamic Link doesn't clear the Link on Android #24629

@diegoveloper

Description

@diegoveloper

From stackoverflow by Dario : https://stackoverflow.com/questions/53418686/dynamic-link-is-not-cleared-after-retrieving

In the main function the retrieveDynamicLink is called and the link is handled, as well as every time the app is resumed a lifecycle listener calls retrieveDynamicLink again and handles the link.

The plugin calls the android method: getDynamicLink(registrar.activity().getIntent()), and the documentation states that this method should clean the intent to make any other call return null until the app is open/resumed from another link.

But that's not what is happening, not always at least.

If I open the app from a dynamic link, switch to another app, and then go back to the app, the retrieveDynamicLink call returns the link again. If I originally open the app from its icon that does not happen.

Does anyone have any suggestion?

I'm using firebase_dynamic_links: ^0.1.0+1 on Flutter 0.11.7

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