Open maheshj01 opened 3 years ago
I've updated the README to highlight that both getInitialLink
and getInitialUri
should be handled only once during app's life. You can call it as many times as you wish to get the link that started the app (or store the value in a global place), but you should only handle it once.
For future link invocations of the app you should use the linkStream
or uriLinkStream
. They will produce a link when the OS wants to either foreground your backgrounded app or if your app is already in the foreground - to receive data from another app (mostly on a tablet when two apps are on-screen, side by side).
@avioli the problem is getInitialLink
returns the same link even after app's life ends. So the same link previously handled keep appear over and over again without even being invoked. I think you should see this gif here
This issue still exist on v0.4.0. how to solve it?
Get initialLink() returns the same link when the app is brought from background to foreground without clicking the link
To Reproduce Steps to reproduce the behavior:
Expected behavior I think the expected behavior is it should have returned null when brought to foreground from background; let me know If I am wrong or you have a different opinion