Compliance 11.x.x

Opt-Out Of Data Tracking

To opt out of data-tracking, use the below API.
Once you have opted out of data tracking you need to explicitly opt-in; until opted-in, no events will be tracked.
Refer to the API documentation for more details.

Java
MoEngage.optOutDataTracking(context, shouldOptOutDataTracking)

Opt-Out of Push Notification

To opt out of push notifications, use the below API.
Once you have opted out of push notification, you need to explicitly opt-in; until opted-in, no push notification will be shown to the user.

Refer to the API documentation for more details.

Java
MoEngage.optOutPushNotification(context, shouldOptOutPushNotification)

Opt-Out of In-App Notification

To opt-out of in-app notifications, use the below API.
Once you have opted out of in-app notification, you need to explicitly opt-in; until opted in, no in-app notification will be shown to the user.

Refer to the API documentation for more details.

Java
MoEngage.optOutInAppNotification(context, shouldOptOutInApp);

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 below API.

Java
MoEngage.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.

These APIs are available starting 10.6.00 and later.

Java
MoEngage.enableSdk(context);
Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?