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.
| Parameter | Data Type |
|---|---|
| gdprConsent | 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)setGDPRConsent:(BOOL)gdprConsent;Method Examples
The following code snippets show how to use this method in Objective-C and Swift.
[Insider setGDPRConsent:true];Insider.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.