Skip to content

Deeplink not working when tracking be disabled on Android #731

@qirong-zhang-ext

Description

@qirong-zhang-ext

Describe the bug

due to some reason we need to disable tracking for branch, but after that Android device cannot open deeplink.

before disableTracking we can receive deeplink params each time clicked the deeplink, after deeplink be disabled, we can never received the deeplink params.

Steps to reproduce

  1. init session and disable tracking
  2. terminate the app
  3. click any deeplink
  4. can only open the APP but cannot go to specific page

Expected behavior

Deeplink should work even tracking be disabled

SDK Version

5.2.0

Make and Model

Google pixcel 6a

OS

Android 14

Additional Information/Context

If move APP to background, there are several cases:

  1. the first deeplink can only open the APP and get params like this:
params: {"+clicked_branch_link":false,"+is_first_session":true}

And the second time click the link can get correct params.

  1. If click different deeplink, then sometimes you will get previous params instead of latest one, example:
1. click deeplink1 -> get deeplink1 params
2. click deeplink2 -> still get deeplink1 params

But if terminate the APP, then deeplink not working at all, cannot get any params.

this issue may related to #455 and https://stackoverflow.com/questions/77899601/branch-sdk-deep-linking-does-not-work-when-tracking-is-disabled, there are three cases listed, and two can work, another one cannot. In my case, all cases cannot work

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions