Repository navigation
feat(SDK-561): expose visitor usage consent APIs - #927
Draft
jferrao-itrbl wants to merge 2 commits into
Draft
jferrao-itrbl wants to merge 2 commits into
jferrao-itrbl wants to merge 2 commits into
Conversation
Add setVisitorUsageTracked and getVisitorUsageTracked across the TurboModule bridge. Guard calls until initialize resolves to avoid Android pre-init crashes.
|
Coverage Impact ⬆️ Merging this pull request will increase total coverage on Modified Files with Diff Coverage (2)
🛟 Help
|
Describe storage on setVisitorUsageTracked and reads on getVisitorUsageTracked.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

📝 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