AATKitâs Managed Consent is an easy way to facilitate compliant third-party (CMPs) by providing a unified API and wrappers. In order to make use of Managed Consent, AATKit React Native plugin provides CMP implementations.
Google CMP Usage
Android requires appId to be added to the AndroidManifest file, like
Uncomment configureGoogleCMP method call in initAATKit:
AATKitBinding.kt
private fun initAATKit() {
...
//Comment out the bellow line if Google CMP is needed
configureGoogleCMP(configuration)
...
}
AATKitBinding.swift
private func initAATKit() {
...
//Comment out the bellow line if Google CMP is needed
configureGoogleCMP(configuration: configuration)
...
}
Source Point CMP Usage
Uncomment configureSourcePointCMP method call in initAATKit, also make sure you pass all required parameters:
AATKitBinding.kt
private fun initAATKit() {
...
//Comment out the bellow line if Ogury CMP is needed
configureSourcePointCMP(configuration,<your-sccount-id>, <your-property-id>, "your-property-name", "your-pm-id")
...
}
AATKitBinding.swift
private func initAATKit() {
...
//Comment out the bellow line if Ogury CMP is needed
configureSourcePointCMP(configuration: configuration, accountId: "your-sccount-id", propertyId: "your-property-id", propertyName: "your-property-name", pmId: "your-pm-id")
...
}
Not using the CMP wrapper
If for some reason you do not want to use CMP wrappers, AATKit also provides another methods for GDPR compliance. The isConsentRequired configuration parameter allows you to inform AATKit if the user is subject to the GDPR laws:
AATKitBinding.kt
private fun initAATKit() {
...
configuration.isConsentRequired = true
...
}