You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using both uni_links to handle deeplinks and firebase dynamic links to handle dynamic linking for marketing campaigns.
When I open the app with a Dynamic Link on iOS the behaviour is what I would expect, dynamicLink passed by the onSuccess callback of the onLink stream is the actual dynamic link we've used (like myapp.page.link) and dynamicLink?.link contains the actual deeplink (like https://mysite.com/path), however on android the dynamicLink I receive is already my actual deeplink, and the uni_links handler to handle actual deeplinks is invoked as well, here's some code to give more context:
FirebaseDynamicLinks.instance.onLink(
onSuccess: (PendingDynamicLinkData? dynamicLink) async {
// on iOS dynamic link is the dynamic link like myapp.page.link, on android is the actual deeplink that the dynamic link points at
final Uri? deepLink = dynamicLink?.link;
if (deepLink != null) {
_handleDeeplink(deepLink);
}
},
onError: (OnLinkErrorException e) async {
debugPrint(e.message);
},
);
Why is the behaviour different between the two platforms? Am I missing something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using both uni_links to handle deeplinks and firebase dynamic links to handle dynamic linking for marketing campaigns.
When I open the app with a Dynamic Link on iOS the behaviour is what I would expect,
dynamicLink
passed by theonSuccess
callback of theonLink
stream is the actual dynamic link we've used (likemyapp.page.link
) anddynamicLink?.link
contains the actual deeplink (likehttps://mysite.com/path
), however on android thedynamicLink
I receive is already my actual deeplink, and the uni_links handler to handle actual deeplinks is invoked as well, here's some code to give more context:Why is the behaviour different between the two platforms? Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions