MoEngage Docs

GDPR Compliance

For GDPR compliance APIs to work smoothly ensure that you are using SDK version 9.1.00 or above and you are not using legacy integration.

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.

  /**
   * Optionally opt-out of data tracking. When data tracking is opted no event or user
   * attribute is tracked on MoEngage Platform.
   *
   * @param context Application context.
   * @param shouldOptOutDataTracking true if you don't want to track user data, else false.
   * @since 9.1.00
   */
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.

  /**
   * Optionally opt-out of push campaigns. No push campaigns will be shown once this is
   * opted out.
   *
   * @param context Application context.
   * @param shouldOptOutPushNotification true if you don't want users to receive push
   * notification, else false.
   * @since 9.1.00
   */
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.

/**
   * Optionally opt-out of in-app campaigns. No in-app campaigns will be shown once this is
   * opted out.
   *
   * @param context Application context.
   * @param shouldOptOutInApp true if you don't want users to receive in-app
   * notification, else false.
   * @since 9.1.00
   */
MoEngage.optOutInAppNotification(context, shouldOptOutInApp);

GDPR Compliance


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.