COPPA Compliance
If you need your app to be COPPA compliant, call the setCoppaCompliantEnabled method on your AdTraceConfig object. This method performs the following actions:
- Disables third-party sharing before the user launches their first session.
- Prevents the SDK from reading device and advertising IDs (e.g. idfa).
- Objective-C
- Swift
- Javascript
[adtraceConfig setCoppaCompliantEnabled:YES];
adtraceConfig?.coppaCompliantEnabled = true
adtraceConfig.setCoppaCompliantEnabled(true);
You can disable this method by calling it with a false parameter.
- Objective-C
- Swift
- Javascript
[adtraceConfig setCoppaCompliantEnabled:NO];
adtraceConfig?.coppaCompliantEnabled = false
adtraceConfig.setCoppaCompliantEnabled(false);