Skip to main content

unified_sdk 6.0.0 copy "unified_sdk: ^6.0.0" to clipboard
unified_sdk: ^6.0.0 copied to clipboard

GDPR consent management platform (CMP) by SFBX AppConsent: show the consent notice and read IAB TCF v2 and Google Consent Mode v2 consent on Android and iOS.

6.0.0 #

First release of the Flutter bridge for the AppConsent Unified SDK (Android + iOS), replacing the previous appconsent_clear plugin.

Native SDKs embedded. You declare neither of them yourself — adding this package is enough:

Platform Unified SDK How it ships
Android 6.4.2 io.sfbx.appconsent:unifiedsdk:6.4.2, resolved from the AppConsent Maven repository, which the plugin registers on your project — nothing to add to your Gradle files
iOS 6.2.2 AppConsentUnified.xcframework, vendored in ios/Frameworks — no extra CocoaPods source or private registry to configure on your side

Both iOS slices are bit-identical (SHA-256) to tag 6.2.2 of the public iOS distribution repo. The Mac Catalyst slice that tag ships is stripped on purpose: this plugin targets iPhone/iPad only.

IAB TCF v2.3. Consent is collected and stored under TCF v2.3, the current version of the framework. TCF v2.4 is being studied and integrated. Most of the TCF logic runs on the AppConsent backend, so depending on what the IAB changes in v2.4, the SDK may become compliant automatically, without a plugin update. Status will be highlighted in the AppConsent documentation.

Requirements. Android minSdk 21, iOS 15.0, Xcode 27. The iOS framework is compiled with Xcode 27 (Swift 6.4), and Xcode 27 no longer builds any target below iOS 15.0. If your AppConsent notice uses App Tracking Transparency, NSUserTrackingUsageDescription must be set in Info.plist (see the README).

iOS specifics brought by the 6.2.2 native SDK.

  • displayLayer1() is backed by the native displayLayer1(viewController:): first layer shown unconditionally, GDPR applied whatever the user's area — the exact counterpart of Android.
  • noticeEvents follows the same contract on both platforms: every presentation ends with exactly one closed (the notice was shown) or notDisplayed (it was not needed, or could not be shown — then with an error). The bridge normalizes the iOS callbacks to get there: when a stored consent is up to date, the iOS SDK only reports "finished", which is now delivered as notDisplayed, never as a closed for a notice that never appeared.
  • A second presentation while one is in flight (e.g. a double tap on a privacy settings button) reports notDisplayed with an invalidUiState error under its own source, and the first one still delivers its closed.
  • Apps that previously shipped the legacy AppConsent 5.x SDK (appconsent_clear): the native SDKs migrate the legacy identity and consent once, with no call to make, so users who already answered are not asked again. See "Migrating from appconsent_clear" in the README.
  • The xcframework embeds its dSYMs (Xcode copies them into your archive for symbolication).

What the bridge exposes. initialize / isInitialized, notice presentation (presentNotice, displayLayer1, displayLayer2) with a noticeEvents stream, the full set of consent getters (overall status, per-consentable lists and their status-filtered variants, IAB and extra ids, GCM state), consent actions (forceAcceptAll, forceDenyAll, askToClearConsent, setConsentableConsents, floating purposes) and external ids.

Error handling. Every call either resolves or throws a PlatformException carrying a stable error code — nothing is silently ignored. A failure happening inside an already initialized SDK surfaces as SDK_ERROR, never as NOT_INITIALIZED: the two are kept distinct so that diagnosing an incident does not start by looking for a missing initialize() call. See the README for the full code table and the recommended single-place handling pattern.

Platform differences. A few behaviours come from the native SDKs and cannot be smoothed over by the bridge (isLimitedTrackingEnabled, isInitialized, getLocalExternalIds, askToGetExternalIds, isFloatingNeedUpdate). They are listed in the "Platform differences" section of the README; everything else is verified identical on both platforms by the parity harness.

4
likes
150
points
211
downloads
screenshot

Documentation

Documentation
API reference

Publisher

verified publishersfbx.io

Weekly Downloads

GDPR consent management platform (CMP) by SFBX AppConsent: show the consent notice and read IAB TCF v2 and Google Consent Mode v2 consent on Android and iOS.

Homepage

Topics

#consent #gdpr #cmp #tcf #privacy

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on unified_sdk

Packages that implement unified_sdk