New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔥 Dynamic Links keeps returning the same url on different links #2631
Comments
I also had this problem when upgrading to version 6-- just for kicks I tried throwing the normal RN Linking setup and using https://facebook.github.io/react-native/docs/linking I stripped all the old configuration from before the upgrade, because there's no longer mention of it in the docs. |
Not meaning to trivialize your issue, but could you please check if you had previously edited an existing deep link into a dynamic link in the Notes app, from where you would have tested your Dynamic link. In some cases the Notes app retains an old hyperlink value for links that get modified. I faced this issue and it took me one full day before figuring out that it was something as simple as this. |
I managed to solve this problem by adding launchMode="singleTask" to the .MainActivity
See: |
I am having the same issue on iOS. any solution? |
I am also having this issue. |
Hi there @FickleLife - while Invertase works on FlutterFire and React Native Firebase the repos are pretty different and worked on separately (even if by the same people). You should definitely post an issue over there |
OP, have you or anyone else been able to find a solution to this issue? The getInitialLink() method keeps on returning the same link even if I click on different dynamic links. The link only changes when I quit the app and click on a new link. Only then, the getInitialLink() method returns a new link. I'm also using DynamicLinks from Firebase. Below is information regarding my environment:
Thanks in advance!! :) |
I think you want to listen to onLink once the app is already running? getInitialLink is only for the first link that caused the app to start |
Well, if the app is in the background, then by definition, shouldn't Imagine the following scenario. If a friend sends you 3 Instagram stories through iMessages and you tap on the first link, you should see the first IG story shared with you. If you leave Instagram, go back to iMessages, and tap on the second link (technically, Instagram is now in the background and iMessages is in the foreground), then you should now see the second IG story--not the first. Unfortunately, if we're using Also, Namely, I'd like to be able to detect what links are bringing users into the app. How would I go about doing so? |
did onLink fire? |
No, unfortunately, the |
i got the soluttion, you guys doing something like this try to import the on add on your console you will get the latest |
Issue
Hi we have a problem with multiple dynamic links opening.
We have multiple dynamic link entry points in our app.
The problem is, that currently (after update to update to dynamicLinks in 6.0.0) it seems like we always get the same link from
getInitialLink()
.Reproduction:
This is how we can reproduce it:
If I close the app before I open the second link and click then, I get the correct link.
Additional info:
We also implemented the
onLink
subscriber, but it is never triggered, as I would have thought.I guess it makes sense that
getInitialLink
stays the same, as it was, when we opened the app the first time, but then I would expect the subscriber to trigger.This is how we init the package: (we call this method in componentDidMount in App.tsx)
Project Files
iOS
Android
Environment
Click To Expand
react-native info
output:Platform that you're experiencing the issue on:
react-native-firebase
version you're using that has this issue:0.5.4
Firebase
module(s) you're using that has the issue:DynamicLinks
Are you using
TypeScript
?Y
The text was updated successfully, but these errors were encountered: