## AppConsent Unified SDK — Release Notes ### Seamless migration from the AppConsent 5.x SDK Apps upgrading from the legacy 5.x SDK now keep the user's consent: **no re-prompt** on the first launch after the update. Nothing to call, nothing to configure — it runs automatically at `ACNotice` initialization, once, and only on affected devices. Fresh installs are unaffected. The SDK carries the 5.x identity over, republishes the consent in the background to rebuild the unified state, then removes the old keys — but only once the republish is confirmed (never on a partial result: with no network, it retries on the next launch). ### New - **`displayLayer1(viewController:)`** — displays the notice unconditionally (Android counterpart), ideal for a "Privacy settings" entry point that must always open, even with a valid consent already stored. - **`legacyMigrationDidComplete` notification** — posted once the migration is finalized, with a boolean indicating whether a consent was rebuilt. Use it to refresh a consent-gated UI at the right moment. - Calling `presentNotice(viewController:)` right after init is safe: it waits for the migration to settle, then decides on the rebuilt consent. ### Fixed - The app could stop responding after the notice (the transparent container was never dismissed when the CMP didn't answer): three cases are now bounded by watchdogs. - Memory leak of the CMP container and its WebView on every presentation. - First-launch migration reliability (WebView cold start): failures are now detected immediately, with one automatic retry. ### If you're coming from the 5.x SDK If you read AppConsent keys **directly** from `UserDefaults` (instead of the SDK API), the cleanup removes the legacy SDK's internal keys — switch to the SDK API before upgrading. Your own keys and the standard IAB TCF keys are left untouched. **No breaking changes to the public API.**