firebase / firebase-android-sdk

Firebase Android SDK
https://firebase.google.com
Apache License 2.0
2.25k stars 572 forks source link

185090180: Dynamic Links - Mismatch in app clicks and re-opens #2565

Closed chongwyb closed 1 year ago

chongwyb commented 3 years ago

[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

We are using dynamic links to monitor users' Clicks and Re-opens, however we noticed that the behaviour is inconsistent.

Steps to reproduce:

Approach 1 Tap on dynamic link to open the installed app

Approach 2 Paste dynamic link on chrome app to open the installed app

Relevant Code:

As dynamic_link_app_open is an automatically collected event, no additional code was implemented.

google-oss-bot commented 3 years ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

mikehardy commented 3 years ago

Cross-linking with react-native-firebase initiating issue https://github.com/invertase/react-native-firebase/issues/5110

aguatno commented 3 years ago

Hi @chongwyb Dynamic Links are intended to be clicked upon to avoid opening behavior issues. You could try troubleshooting using the DebugView to verify that the dynamiclinks* events are being logged. Additionally, make sure that you're using the latest Firebase SDK version.

If the issue persists, can you share a sample runnable app and complete steps to reproduce the issue? This will help us further investigate the issue on the discrepancy between the app re-open and clicks.

chong-shao commented 3 years ago

Hi I think the last comment tagged the wrong person. Should be @chongwyb

chongwyb commented 3 years ago

Hi @aguatno, the issue still persist where the Re-opens count is not being recorded.

Tested on both BoM 26.1.0 and 26.8.0 (latest). DebugView is able to log the dynamic_links_app_open event consistently. From Firebase console, Clicks not equal to Re-opens.

Here is a minimal repository that I have tested on. Step 1 : Tap on a given dynamic link which directly opens the installed app

aguatno commented 3 years ago

Hi @chongwyb thanks for the MCVE. Question, could you verify if there’s a discrepancy ( app reopens vs clicks ) using the REST API? You can get event counts using this API regardless whether the Dynamic Link is created via the console or programmatically. This will help us determine if the issue is isolated to the Dynamic Links dashboard.

Thanks.

chongwyb commented 3 years ago

Hi @aguatno , I have tested with the REST API and I am getting the same result as the Dynamic Links dashboard.

aguatno commented 3 years ago

Hi @chongwyb Sorry for the wait. Per checking, it seems this is a known issue to the SDK, and currently being worked on by the engineers (Reference Bug#185090180). I'll let you know if there's any update.

argzdev commented 1 year ago

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