BranchMetrics / android-branch-deep-linking-attribution

The Branch Android SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
https://docs.branch.io/pages/apps/android/
MIT License
400 stars 156 forks source link

Repeated Branch requests after stopping and starting app #975

Open sgstry opened 2 years ago

sgstry commented 2 years ago

After processing the branch link result when a user clicks a link, stopping and starting the app sends a subsequent branch request for the same exact link. However, the second branch open request doesn't contain the external_intent_uri, external_intent_extra, or link_identifier attributes in the POST request. Yet still, Branch is giving back referring params with +clicked_branch_link = true. This causes the application to process the same link twice even though it was only opened once. Any tips would be welcome, thank you!

This problem occurs on all versions from 5.0.0 - 5.1.1. Haven't tried any earlier versions.

aungkpaing commented 2 years ago

+1, facing the same issue, can confirm with just bare minimal setup that it's trigger on background => foreground

damiafuentes commented 2 years ago

+1. Any ideas?

tommyjackson commented 2 years ago

+1, still seeing this issue on 5.2.2

jf-branch commented 2 years ago

Hi all,

Android App Link can see that deep linking happens again when end-users open the app organically within the Deep Linking Duration Window right after the app is opened by deep linking because of Android App Link double deep linking issue.

Android App Link double deep linking is a known issue and has been for a while now. (We raised a Google support ticket for this a while back: Issue-978675). This bug occurs when Branch Links are Android App Linked from the Chrome Browser, Chrome triggers a client-side click before Android Applinking the user into the App.

tommyjackson commented 2 years ago

@jf-branch thanks for the update - I starred the issue you linked! Is there anything else I can do to help raise visibility on Google's side, like create a newer issue on the Google Issue Tracker?

tommyjackson commented 1 year ago

@jf-branch I commented on the issue you linked and got a response here, and it looks like Google doesn't have anything they can do on their end. Does that render this as an unfixable bug then? Or are there other options to explore?

VvoidVano commented 1 year ago

Hey @jf-branch does that mean it can be fixed temporarily by changing something in Deep Linking Duration Window? If so, any suggestions? Thanks in advance.

nqtsparda commented 1 year ago

Have anyone came up with any workaround ?