Skip to content

🐛 [firebase_dynamic_links] getInitialLink() always returns null when terminated app launched on iOS #7129

@EddieWilkie91

Description

@EddieWilkie91

Bug report

Describe the bug
When the application is launched from a dynamic link on iOS the getInitialLink() method always returns null. Shortly after, the onLink callback is executed.

Steps to reproduce

Steps to reproduce the behavior:

  1. Set up & configure app following instructions: https://pub.dev/packages/firebase_dynamic_links
  2. Launch iOS app from dynamic link.
  3. Notice that the getInitialLink() returns null but onLink is called shortly after.

Expected behavior

getInitialLink() returns deeplink when app is launched from a terminated state on iOS.

Additional context

Adding a one second delay before calling getInitialLink() fixes the issue.


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
PASTE OUTPUT INSIDE HERE

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand
PASTE OUTPUT INSIDE HERE

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs AttentionThis issue needs maintainer attention.resolution: duplicateThis issue or pull request already existstype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions