Skip to content

Expose userCountryCode and userRegionCode - #190

Open
nicolas-chaix-didomi wants to merge 3 commits into
mainfrom
feat/6852-expose-useCountry-and-userRegion
Open

nicolas-chaix-didomi wants to merge 3 commits into
mainfrom
feat/6852-expose-useCountry-and-userRegion

Conversation

@nicolas-chaix-didomi

@nicolas-chaix-didomi nicolas-chaix-didomi commented Sep 15, 2026

Copy link
Copy Markdown
Contributor
  • Add getUserCountryCode() / getUserRegionCode() to the RN bridge, mirroring iOS/Android/Web, which already expose the user's country/region determined by the SDK after initialization
  • iOS reads Didomi.shared.userCountryCode / userRegionCode; Android reads Didomi.getInstance().userCountryCode / userRegionCode (with DidomiNotReadyException handling)

Expose the user's country/region determined by the SDK after
initialization, matching iOS/Android/Web (CMP-6852).
Bridge the new getters to Didomi.shared.userCountryCode/userRegionCode
on iOS and Didomi.getInstance().userCountryCode/userRegionCode on
Android (CMP-6852).
Verifies both getters delegate to the native module and resolve
null when the SDK reports the code as unknown (CMP-6852).
@nicolas-chaix-didomi nicolas-chaix-didomi changed the title Expose userCountryCode and userRegionCode (CMP-6852) Expose userCountryCode and userRegionCode Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant