Compliant with GDPR, CCPA, COPPA, LGPD, PECR, PDPA, PIPEDA, and more.
AppsFlyer is a certified Google Mobile Measurement Partner (MMP) and App Attribution Partner (AAP). This guide explains how to integrate the UniConsent Consent Management Platform (CMP) with the AppsFlyer SDK for mobile apps to ensure proper consent signal transmission in compliance with privacy regulations.
UniConsent CMP automatically detects the presence of the AppsFlyer SDK and sends user consent signals through its API.
Refer to the AppsFlyer Android SDK Initialization Guide for full setup details.
To optionally enable TCF (Transparency & Consent Framework) data collection, use the following line before starting the SDK:
AppsFlyerLib.enableTCFDataCollection(true);
handle(Event event)
CallbackMake sure to start AppsFlyer within the CMP callback, once user consent is available:
@Override
public void handle(Event event) {
AppsFlyerLib.getInstance().start(this);
}
Sending consent signal to Appsflyer
com.uniconsent.sdk.aap
, you should observe confirmation logs like: Successfully set consent signal to Appsflyer: {AD_USER_DATA=GRANTED, AD_STORAGE=GRANTED, AD_PERSONALIZATION=GRANTED, ANALYTICS_STORAGE=GRANTED}
These logs confirm that UniConsent CMP has successfully passed consent status to the AppsFlyer SDK, enabling privacy-compliant data processing and attribution.
To ensure that user consent is available, make sure to call your MMP/AAP API within the override fun handle(event: Event?)
(Android) or public func onDismiss()
(iOS) callback of the CMP.
Learn more about the UniConsent SDK API in the following guides: