question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

157239028: Firebase Dynamiclink not open my MAIN Activity and not receive newest link data

See original GitHub issue

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 3.5_
  • Firebase Component: Firebase Dynamic link
  • Component version: 19.0.0

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

I’m not a native speaker in English, sorry for my bad grammar 😓

I found that dynamic links might not open my app through the activity with action.MAIN tag when I click the link to my app after first time(which is completely fine). In this situation, neither the intent from onNewIntent with launchMode=singleTask nor normal getIntent with launchMode=standard returns the newest data from firebase but the previous one. However, if I clear the app from history before open it without dynamiclink, I can still get the latest missing data, which might be the same cause by issue #357

For example, if I have two dynamic links: link_a => https://example.page.link/url1 link_b => https://example.page.link/url2

I press link_a in social media -> open my app -> receive data inside link_a -> get back to social media and press link_b or link_a again -> open my app (not restart my MAIN activity) -> still receive data inside link_a until completely close the app -> completely close the app and launch app by icon (I should not get any link data) -> receive link_b data which I should get previous

When dynamic links run into not launch my app from MAIN activity for the first time, it won’t restart MAIN activity even if I use adb command or other ways to send intent until clear from history.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
aguatnocommented, Jan 2, 2020

I filed an issue internally using this bug#147086947. I’ll let you know once I heard feedback from them.

0reactions
aguatnocommented, Jan 2, 2020

@WadeXHong sorry for the delay. I was able to reproduce the issue now, I’ll consult the issue to the team. I’ll get back to you once I got an update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase dynamic link not opening the app - Stack Overflow
I have the following logic to get deep link in MainActivity. GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(this) .
Read more >
Firebase Dynamic Links — Making the User lazy
Assuming that you know how to connect your project to Firebase, go to your project -> Engage -> Dynamic Links. Click on New...
Read more >
Firebase Dynamic Links - Techotopia
Firebase Dynamic links are URL links used both to drive new users to install your app, and as a way to link directly...
Read more >
Firebase 动态链接参数, Firebase动态链接未打开应用程序android ...
157239028 :Firebase Dynamiclink 未打开我的MAIN Activity 和设置Firebase ... open url: URL, 要接收您创建的Firebase 动态链接,您必须在您的应用中包含动态 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found