5. Setting up Tracking of App Launch Sources
Before you begin, make sure you’ve completed these steps:
The SDK automatically tracks app launches and sends this data to Mindbox. This helps understand the channels used by customers and create a communication strategy that is relevant.
Most apps do not require any additional settings — however, the singleTask
and singleTop
apps require one additional step.
If:
AndroidManifest.xml
containsandroid:launchMode="singleTask"
orandroid:launchMode="singleTop"
;- the Activity tab displays
Intent.FLAG_ACTIVITY_SINGLE_TOP
or[Intent.FLAG_ACTIVITY_NEW_TASK]
,
override the onNewIntent(intent: Intent?)
method for this Activity with the following code:
override fun onNewIntent(intent: Intent?) {
super.onNewIntent(intent)
...
Mindbox.onNewIntent(intent)
...
}
Updated about 1 year ago