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,
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.