Branch.io (Android SDK): 'only initialize Branch in the Launcher activity' and GDPR

前端 未结 2 720
后悔当初
后悔当初 2021-01-25 21:51

According to the doc: https://docs.branch.io/pages/apps/android/ :

\"Only initialize Branch in the Launcher activity The app will open through the Launcher activity,

2条回答
  •  耶瑟儿~
    2021-01-25 22:12

    Jackie from Branch here.

    As a rule of thumb, initializing the Branch SDK in the Launcher Activity is critical for attribution and is a mandatory step. Without this, the Branch SDK will not be able to report installs, opens or any other down the funnel events and hence you will not get any attribution data on the Branch dashboard.

    That being said, in your case, I'd recommend setting Branch.trackingDisabled = YES at the beginning and then initializing Branch after. When a user opts in for tracking, Branch.trackingDisabled = NO will be called, and the Branch SDK will operate as normal. Installs will be missing for this approach unless the user opts in within the first app open.

    If you have additional questions, please email directly at integrations@branch.io.

提交回复
热议问题