in pubspec.yaml:
firebase_dynamic_links: ^0.5.0+11
The code:
FirebaseDynamicLinks.instance.onLink(
onSuccess: (PendingDynamicLinkData dynamicLink) async {
final Uri deepLink = dynamicLink?.link;
if (deepLink != null) {
onLinkReceived(deepLink);
}
},
onError: onError);
}
- The app is launched and in background.
- User clicks the link.
Actual result: onSuccess is being called twice for the link.
Expected result: onSuccess is being called and being called once per link.
What could be wrong?