UniConsent CMP is a package for handling GDPR IAB TCF 2.2 consent management in Android apps. You can find a demo app integrated with UniConsent CMP in the "uniconsent_demo" directory.
Add UniConsent_x.x.x.aar into your project. Example:
To use the UniConsent CMP in your app, follow these steps:
Initialize the CMP with an App ID from your account manager:
Display the CMP UI:
Automatically check if consent is expired when the vendorList updates:
Get the tcString if required:
Read the consent status:
Reset consent status if required:
Setup default consent status KV:
Control analytics based on the consent flags:
Find more info at Set up consent mode for apps