hotfix/cp-12539-android-sdk-fix-iab-tcf-tracking-consent-detection-with
Merged
UN
1h ago+108+108+012345678901234567890123456789-34-34-01234567890123456789
Fix IabTcfMode consent detection and queue handling.
Summary by cubic
Fixes IAB TCF v2 consent detection and queue handling so pending events are delivered once consent is granted or TCF is disabled.
- Reads TCF consent data from the default shared preferences where CMPs write
IABTCF_*keys, instead of the SDK's own preferences. - Applies stored consent immediately when a wait mode is set and treats an absent or too-short vendor string as no consent.
- Notifies consent listeners before clearing the queue so queued events aren't dropped.
- Disabling IAB TCF mode now releases queued tracking and subscribe consent listeners and clears the consent requirements.
- The consent observer checks the current
IabTcfModeinstead of a stale captured value, and iterates listeners over a copy to avoid concurrent modification.