Closed aidanas closed 1 year ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Internally tracking via b/160610872
Hey @aidanas - to help us investigate this further - does the getDynamicLink still return the fdl once the app is relaunched? Trying to determine which of the following cases you're running into:
Having a similar issue
Same issue here. Using firebase-bom:31.1.1
My case is like this:
Click on FDL -> App opens -> getDynamicLink gets the deeplink (expected result) -> minimize app -> Click on FDL -> App opens -> getDynamicLink gets the deeplink (expected result) -> minimize app -> resume the app from recents -> getDynamicLink gets the deeplink (wrong result) -> minimize app -> resume the app from recents -> getDynamicLink gets the deeplink (wrong result)
So in my case I'm getDynamicLink returns deeplink on resume, but only if I click on FDL second time. Second time app was in background.
Update:
After a bit more investigation, it may be that issue is related to intent data/extras being restored if application was started from recent list. Found some related issue here. I changed my logic to call FirebaseDynamicLinks.getInstance().getDynamicLink(intent)
only if activity was not opened from history by checking if Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY
flag is not set. I'm not sure how reliable this solution is, but it solved my issue from what I have tested.
Having the same issue. In documentation is said that:
You must call getDynamicLink() in every activity that might be launched by the link, even though the link might be available from the intent using getIntent().getData(). Calling getDynamicLink() retrieves the link and clears that data so it is only processed once by your app.
But I receive this link each time, I have link handler in onReasume
method
Hi folks, we'd like to inform you that the Firebase Dynamic Links service will be shutdown on August 25, 2025. In the meantime, only critical or security issues will be fixed in the SDK.
More at https://firebase.google.com/support/dynamic-links-faq
[READ] Step 1: Are you in the right place?
Issues filed here should be about bugs in the code in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
As stated in official documentation HERE
However when testing on a basic HelloWorld test app once users click on an deep link and the app is started (or brought to foreground if meanwhile was running in the background) then repeated calls to
getDynamicLink()
always resolve to an app link.Steps to reproduce:
FirebaseDynamicLinks.getInstance().getDynamicLink(intent).addOnSuccessListener...
and print its results to log..getDynamicLink()
to resolve to app link and subsequent ones should not.What happened? How can we make the problem occur? This could be a description, log/console output, etc.
Relevant Code: