You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
2.35.0 – Nov 11, 2026
Features
[Android — Deep link] Added deep link to the second layer: UsercentricsBanner.showSecondLayer(tab, callback) opens the out-of-the-box second layer directly on a given tab, e.g. from an in-app button or link (SecondLayerTab.SERVICES for GDPR/CCPA, SecondLayerTab.PARTNERS for TCF). A tab the layout does not have, or null, opens the default tab. This matches iOS, where showSecondLayer(tab:) has been available since 2.34.0
[Android/iOS — Unity] Added deep link to the second layer for Unity apps: ShowSecondLayer(bannerSettings, tab, callback) with a SecondLayerTab (Services/Partners) opens the second layer directly on a given tab. A tab the layout does not have opens the default tab (Unity SDK repo)
[Android] Added APIs to capture and restore in-flight 1st-layer consent state across Activity recreation (e.g. dark-mode toggles, rotation), so unsaved user selections are no longer lost: new UsercentricsBanner.showFirstLayer overloads take an initialState: UsercentricsFirstLayerState? plus onFirstLayerStateSnapshot/onSecondLayerStateSnapshot callbacks, also with the Consent-or-Pay onLoginClicked/onSubscribeClicked. Restore is opt-in: the app stores the snapshot and passes it back when it reopens the banner (a second layer reached via "More" is restored with showSecondLayer(initialState, ...)). Existing overloads are unchanged
[Android — Crash reporting] Added SDK crash reporting via Sentry: crashes and errors raised inside the Usercentrics SDK are now reported automatically to help find and fix SDK issues. It only covers users outside Europe: reporting starts only when the location resolved at startup is outside Europe (the EU, EEA, UK and every other European country are excluded), and never when the country is unknown or the SDK is offline. No setup is needed and there is no opt-out; it runs on its own Sentry instance, separate from the app's own Sentry. iOS does not report
[Android/iOS — Crash reporting] Removed UsercentricsOptions.crashReportingEnabled, as crash reporting is no longer opt-in (code that sets it no longer compiles, so remove it)
Fixes
[Android — R8] Fixed release builds with R8 minification failing with Missing classes detected (org.jetbrains.annotations) since 2.34.0: the SDK now ships the missing -dontwarn rule in its consumer ProGuard rules, so apps no longer need to add their own
[Android — Unity] Fixed Android release builds failing in checkReleaseDuplicateClasses with Duplicate class io.sentry.* when the project also includes Sentry for Unity, by excluding, in the exported Android project, the io.sentry:sentry crash-reporting dependency that Android SDK 2.34.0 and later declare; Sentry for Unity itself is left untouched (Unity SDK repo)
[Android/iOS — Apps Preview] Fixed the "Preview for Mobile Browsers" option showing an empty page for accounts with a domain allowlist (The domain "" has not been added to the allow list, CMP initialization failed: No core data available), because the preview page was loaded from a file:// URL with no hostname; it now runs under the official Usercentrics preview origin
Chores
[CI] Fixed the nightly iOS smoke test workflow and the UI-test jobs failing to start on CircleCI by moving them to the Xcode 16.4.0 image