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.
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.
The state set by
optInwill be preserved and is effective from now on.
A session will start when the state switches from opt-out to opt-in.
Setting the initial state of opt-in/opt-out¶
The initial opt-in state can be set via
info.plist on iOS or
AndroidManifest.xml on Android. If nothing is defined in these files, the default state will be opt-in.
The default state will be used until the optIn API is called.