Set GDPR consent

Prev Next

Suggested reading: Insider and General Data Protection Regulation (GDPR)

This method allows you to get your users' consent to collect data. 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
gdprConsentBoolean
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

public void setGDPRConsent(boolean gdprConsent)
fun setGDPRConsent(boolean gdprConsent)

Method Example

Insider.Instance.setGDPRConsent(true);
your title goes here
You must set the GDPR after the SDK initializes. You can place any GDPR handling after Insider SDK initializes.