GDPR Opt-in & Opt-out

Opt for Tracking

To opt-out of tracking, call the optTracking() method by passing false value. Once you have opted out of tracking you need to explicitly opt-in, until opted in no communication will happen with the panel. To opt-in for tracking, call the optTracking() method by passing true value.

boolean booleanOpt = false/true
  Smartech.getInstance(new WeakReference<>(context)).optTracking(booleanOpt);
var booleanOpt = false/true
  Smartech.getInstance(WeakReference(context)).optTracking(booleanOpt)
var booleanOpt = false/true
SmartechSDK.optTracking(booleanOpt)

To check the current consent status for tracking, call the following method:

boolean booleanOpt = Smartech.getInstance(new WeakReference<>(context)).hasOptedTracking();
var booleanOpt = Smartech.getInstance(WeakReference(context)).hasOptedTracking()
SmartechSDK.hasOptedTracking(function(status) {
})

Opt For Push Notifications

CEE SDK has optPushNotification() method to opt-in or opt-out for Push Notifications sent from the panel.
Passing false in the parameter will opt-out for Push Notifications. For opt-in pass true in the parameter.

boolean booleanOpt = false/true
  SmartPush.getInstance(new WeakReference<>(context)).optPushNotification(booleanOpt);
var booleanOpt = false/true
SmartPush.getInstance(WeakReference(context)).optPushNotification(booleanOpt)
var booleanOpt = false/true
SmartechSDK.optPushNotification(booleanOpt)

To check the current consent status for push notification, call the following method:

boolean booleanOpt =
SmartPush.getInstance(new WeakReference<>(context)).hasOptedPushNotification();
var booleanOpt = SmartPush.getInstance(WeakReference(context)).hasOptedPushNotification()
SmartechSDK.hasOptedPushNotification(function(status) {
})

Opt For In-App Messages

To opt-in or opt-out In-App messages sent from the panel, SDK provides optInAppMessage() method. Passing false in the parameter will opt-out for In-App messages. To opt-in again pass true in the parameter.

boolean booleanOpt = false/true
Smartech.getInstance(new WeakReference<>(context)).optInAppMessage(booleanOpt);
var booleanOpt = false/true
Smartech.getInstance(WeakReference(context)).optInAppMessage(booleanOpt)
var booleanOpt = false/true
SmartechSDK.optInAppMessage(booleanOpt)

To check the current consent status for In-App Message, call the following method:

boolean booleanOpt =
Smartech.getInstance(new WeakReference<>(context)).hasOptedInAppMessage();
var booleanOpt =
Smartech.getInstance(WeakReference(context)).hasOptedInAppMessage()
SmartechSDK.hasOptedInAppMessage(function(status) {
})