By default, SDK tracks certain device identifiers like GAID, Android-id, activity names, etc. If required you can choose to opt-out of this tracking by using the TrackingOptOutConfig.
Refer to the API reference of TrackingOptOutConfig for more details on the available opt-outs. Use the configureTrackingOptOut() to pass on the configuration to the SDK.
val trackingOptOut = mutableSetOf<Class<*>>()
trackingOptOut.add(YourActivityName::class.java)
val trackingOptOutConfig = TrackingOptOutConfig(
isCarrierTrackingEnabled = true,
isDeviceAttributeTrackingEnabled = true,
trackingOptOut
)
val moengage = MoEngage.Builder(application, appId)
.configureTrackingOptOut(trackingOptOutConfig)
.build()
MoEngage.initialise(moengage)
Set<Class<?>> trackingOptOut = new HashSet<>();
trackingOptOut.add(YourActivityName.class);
MoEngage moEngage = new Builder(application, ConstantsKt.APP_ID)
.configureFcm(new FcmConfig(true))
.configureTrackingOptOut(new TrackingOptOutConfig(true, true, trackingOptOut))
.build();
MoEngage.initialise(moEngage);