Skip to content

feat(SDK-557): bridge Android decryption failure handler to JS - #906

Draft
jferrao-itrbl wants to merge 2 commits into
feature/SDK-548-feature-parityfrom
feature/SDK-557-decryption-failure-handler
Draft

jferrao-itrbl wants to merge 2 commits into
feature/SDK-548-feature-parityfrom
feature/SDK-557-decryption-failure-handler

Conversation

@jferrao-itrbl

@jferrao-itrbl jferrao-itrbl commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Expose IterableConfig.decryptionFailureHandler (Android-only) and bridge native IterableDecryptionFailureHandler via handleDecryptionFailureCalled.
  • Wire listener registration/cleanup in Iterable.ts, decryptionFailureHandlerPresent in toDict(), tests, CHANGELOG, and public IterableDecryptionFailure type.

Test plan

  • yarn typecheck
  • yarn test
  • Android compileDebugJavaWithJavac — may fail until SDK-749 implements IterableEmbeddedUpdateHandler sync callbacks (see Jira comments on SDK-557 / SDK-749)

Jira

https://iterable.atlassian.net/browse/SDK-557

Expose IterableConfig.decryptionFailureHandler so RN apps can react when
Android keychain PII decryption fails, matching native IterableConfig parity.
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Lines Statements Branches Functions
Coverage: 72%
72.3% (590/816) 62.04% (237/382) 67.55% (177/262)

@qltysh

qltysh Bot commented Sep 24, 2026

Copy link
Copy Markdown

Qlty


Coverage Impact

Unable to calculate total coverage change because base branch coverage was not found.

Modified Files with Diff Coverage (1)

RatingFile% DiffUncovered Line #s
New file Coverage rating: A
src/core/classes/Iterable.ts100.0%
Total100.0%
🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

Avoid RN debug RedBox when apps set decryptionFailureHandler on iOS.
Assert listenerCount in the omitted-callback test.

This branch has not been deployed

No deployments
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