Compliance

Enable/Disable Data Tracking

If you don't want the MoEngage SDK not to track user data to the MoEngage System use the disableDataTracking() API.

KotlinJava
import com.moengage.core.disableDataTracking

disableDataTracking(context)

Once the above API is called, no custom events or user attributes would be tracked. SDK will reject all events until enableDataTracking() is called.
Once you want to track events or user attributes call the below API.

KotlinJava
import com.moengage.core.enableDataTracking

enableDataTracking(context)

Enable/Disable SDK

If you don't want the MoEngage SDK not to track any user information or send any data to the MoEngage System use the disableSdk() API.

Kotlin Java
import com.moengage.core.disableSdk

disableSdk(context)

Once this API is called all the SDK APIs will be non-operational. SDK will be disabled until enableSdk() is called.
Once you have the user's consent use the below API to enable the SDK.

KotlinJava
import com.moengage.core.enableSdk

enableSdk(context)
Was this article helpful?
0 out of 0 found this helpful