Opt-out feature¶
Please use the opt-out feature, if you want to disable data collection and in-app messages by the Repro SDK. In case of opt-out, the SDK will behave like described below.
Sessions won't start.
No data will be send to the Repro servers.
In-app messages won't be presented.
Note
Opt-out setting is not bound to a user account but instead bound to the device. If one user owns multiple devices he will have to opt-out on all devices.
If a push notification token has already been transmitted to Repro while opted in, even after a opt-out push notifications can be send to that device via the Repro console. Please guide the user to disable their push notification via the system settings if you wish to completely isolate the user in case of an opt-out.
Please set the user ID, the user profile, tracking events and push notification tokens after the opt-in. These values will be ignored while in opt-out state.
Switching between opt-in and opt-out¶
You may use the optIn
API to set the opt-in/opt-out state. Passing true
as argument will set let the user opt-in. Likewise passing false
will set the state to opt-out.
[Repro optIn:NO];
Repro.optIn(false)
Repro.optIn(endUserOptedIn: false)
Repro.optIn(false);
ReproCpp::optIn(false);
Repro.OptIn (false);
Repro.optIn(false);
Repro.optIn(false);
await Repro.optIn(false);
Note
The state set by
optIn
will be preserved and is effective from now on.A session will start when the state switches from opt-out to opt-in.