Opt-Out Of Data Tracking
To opt-out of data tracking by the SDK use the optOutDataTracking( ) method as shown below. Once you have opted out of data tracking you need to explicitly opt-in to start tracking any event OR attributes for the user.Enable/Disable SDK
If you don’t want the MoEngage SDK to track any user information or send any data to the MoEngage System use the DisableSdk() method as shown below:Once you have the user’s consent use the below API to enable the SDK.
Native SDK Initialisation
Based on the compliance policy you can optionally choose to initialize the SDK in a disabled state. To do so you can pass in a boolean value stating the SDK state as disabled while initializing the SDK.ANDROID:
iOS:
In the case of iOS, SDK is initialized in theMoEUnityAppController class. Here update the initialization method to include the disabled SDK parameter as shown below: