Unlike full GDPR opt-out, which disables all data collection and campaign delivery across Insider One products, this setting applies only to the mobile app channel, allowing you to control data processing and campaign behavior specifically for mobile apps without affecting other channels.
This method allows you to get your users' consent to collect data on the mobile app channel. You can call this method after the SDK initialization at every step where you request your users' consent.
Insider SDK collects this data by default. You do not need to call this function if you are not asking for users' consent.
| Parameter | Data Type |
|---|---|
| mobileAppAccess | Boolean |
If you set it to false, the user will not share any data or receive any push notifications until you set it back to true.
Method Signature
public void setMobileAppAccess(boolean mobileAppAccess)fun setMobileAppAccess(boolean gdprConsent)Method Example
Insider.Instance.setMobileAppAccess(true);You must set the mobileAppAccess after the SDK initializes. You can place any mobileAppAccess handling after Insider SDK initializes.