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.
MoEngage.optOutDataTracking(context, shouldOptOutDataTracking)
Opt Out of Push Notification
To opt-out of push notification 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.
MoEngage.optOutPushNotification(context, shouldOptOutPushNotification)
Opt Out of In-App Notification
To opt-out of in-app notification 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.
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.
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.
MoEngage.enableSdk();
These APIs are available starting 10.6.00
and above.
Updated 29 days ago