Set MobileAppAccess consent

Prev Next
Your title goes here

Unlike full GDPR opt-out, which disables all data collection and campaign delivery across Insider 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 mobile app channel. You can call this method after the SDK initialization on every step where you ask for your users' consent.

your title goes here
Insider SDK collects this data by default. You do not need to call this function if you are not asking for users' consent. 
ParameterData Type
mobileAppAccess
Boolean
your title goes here
If you set it to false, the user will not share any data or receive any push notification until you set it back to true.

Method Signature

(void)setMobileAppAccess:(BOOL)mobileAppAccess;

Method Examples

The following code snippets show how to use this method in Objective-C and Swift.

[Insider setMobileAppAccess:true];
Insider.setMobileAppAccess(true)
your title goes here
You must set the mobileAppAccess after the SDK initializes. You can place any mobileAppAccess handling after Insider SDK initializes.