Repository navigation
feat(SDK-561): expose visitor usage consent APIs - #927
jferrao-itrbl merged 6 commits into
Conversation
Add setVisitorUsageTracked and getVisitorUsageTracked across the TurboModule bridge. Guard calls until initialize resolves to avoid Android pre-init crashes.
|
Coverage Impact Unable to calculate total coverage change because base branch coverage was not found. Modified Files with Diff Coverage (2)
🛟 Help
|
Describe storage on setVisitorUsageTracked and reads on getVisitorUsageTracked.
…1-visitor-usage-tracked Resolve CHANGELOG conflict and document UUA config parity alongside visitor consent APIs.
…vation Consent APIs only store and return the flag; UUA also requires IterableConfig at init.
rtlsilva
left a comment
There was a problem hiding this comment.
Approved with one optional, non-blocking comment. LGTM
Also enableUnknownUserActivation should already be exposed in the base branch, so I suggest updating the PR description.
…1-visitor-usage-tracked
Export resetSdkInitializationStateForTests from Iterable.ts for tests only so it is not on the public Iterable static API surface.
bbf3840
into
feature/SDK-548-uua-feature-parity

📝 Summary
Add
Iterable.setVisitorUsageTrackedandIterable.getVisitorUsageTrackedfor UUA visitor consent parity (SDK-548).🎟️ Jira Ticket: SDK-561
📖 Description
Wires consent record/read through
Iterable→IterableApi→RNIterableAPIon iOS and Android (pinned SDKs 6.7.5 / 3.10.1). The getter returnsPromise<boolean>like other identity getters. Beforeinitializeresolves, the setter is a no-op and the getter resolvesfalseso Android is not called pre-init (SDK-768).enableUnknownUserActivationremains unexposed onIterableConfig.🧪 How to test?
yarn typecheck && yarn test --coverage && yarn turbo run build:androidawait Iterable.initialize(...), callsetVisitorUsageTracked(true)and confirmgetVisitorUsageTracked()resolves totrue.🧾 Changelog
Unreleased entry in
CHANGELOG.md.📹 Loom recording if applicable
N/A
🐞 Github Issues solved
N/A
📚 Docs PR if applicable
N/A