Flutter
unified_sdk is the official Flutter plugin of the AppConsent Unified SDK. It shows the consent notice and gives you the user's consent (IAB TCF v2, Google Consent Mode v2) on Android and iOS, through one Dart API.
→ unified_sdk on pub.dev: installation, integration guide, full API, migration from appconsent_clear and troubleshooting are in the package README.
Requirements
Android
minSdk 21
iOS
15.0, Xcode 27
AppConsent
your appKey, generated when you create your notice in your dashboard
Install
flutter pub add unified_sdkAndroid needs no extra setup. For iOS, see iOS setup.
iOS setup
The plugin requires iOS 15.0 and Xcode 27.
Deployment target. Set iOS 15.0 in
ios/Podfile:platform :ios, '15.0'and on the Runner target (Xcode: Runner > General > Minimum Deployments).
Other pods (Xcode 27). Xcode 27 builds nothing below iOS 15.0. Raise every pod in the
post_installblock ofios/Podfile:post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' end end endApp Tracking Transparency. If your notice uses ATT, add a usage description to
ios/Runner/Info.plist. iOS terminates any app that requests tracking authorization without it:<key>NSUserTrackingUsageDescription</key> <string>This identifier will be used to deliver personalized ads to you.</string>Run
pod installfrom theiosfolder, or simply build withflutter run.
Quick start
Release notes
See the changelog on pub.dev. Native SDK changes are detailed in the Android and iOS release notes.
Last updated