Skip to content

fix(SDK-748): forward appAlreadyRunning on Android push open - #912

Merged
jferrao-itrbl merged 6 commits into
feature/SDK-548-feature-parityfrom
feature/SDK-748-forward-app-already-running
Oct 6, 2026
Merged

jferrao-itrbl merged 6 commits into
feature/SDK-548-feature-parityfrom
feature/SDK-748-forward-app-already-running

Conversation

@jferrao-itrbl

@jferrao-itrbl jferrao-itrbl commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

📝 Summary

Forward appAlreadyRunning through the Android bridge into IterableApi.trackPushOpen so push-open attribution matches iOS and JS.

🎟️ Jira Ticket: SDK-748

📖 Description

Iterable.trackPushOpenWithCampaignId already passes appAlreadyRunning from JS, and the TurboModule accepts it on Android, but RNIterableInternal called the four-argument trackPushOpen overload that hardcodes false.

This PR threads the boolean through RNIterableAPIModuleImpl → RNIterableInternal → IterableApi.trackPushOpen(..., appAlreadyRunning, dataFields). No JS, iOS, or TurboModule contract changes.

🧪 How to test?

  • yarn test --coverage (existing tests assert the flag is passed to the native module from JS).
  • On Android, call Iterable.trackPushOpenWithCampaignId(..., appAlreadyRunning: true) and confirm the native SDK receives true (debugger breakpoint on RNIterableInternal.trackPushOpenWithCampaignId or Iterable SDK logging).

🧾 Changelog

Unreleased Fixes entry added for SDK-748 (Android-only behavior fix).

📹 Loom recording if applicable

N/A

🐞 Github Issues solved

N/A

📚 Docs PR if applicable

N/A

The bridge accepted the flag but dropped it before IterableApi.
Call the five-argument trackPushOpen overload so campaigns see the real value.
@jferrao-itrbl
jferrao-itrbl requested a review from a team as a code owner October 1, 2026 19:53
@jferrao-itrbl
jferrao-itrbl marked this pull request as draft October 1, 2026 19:53
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Lines Statements Branches Functions
Coverage: 72%
72.7% (602/828) 62.62% (243/388) 68.04% (181/266)

@qltysh

qltysh Bot commented Oct 1, 2026

Copy link
Copy Markdown

Qlty


Coverage Impact

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

🚦 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.

@qltysh

qltysh Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

All good ✅

Add RNIterableInternal unit tests against the five-argument trackPushOpen
overload, wire testDebugUnitTest in CI, and implement embedded sync handler
stubs required to compile against iterableapi 3.10.1.
Keep compile-only stubs for IterableEmbeddedUpdateHandler without emitting
events outside SDK-748 scope; JS wiring remains SDK-749.
…rward-app-already-running

Keep parity embedded sync handler emissions; SDK-748 push-open forwarding unchanged.
@jferrao-itrbl
jferrao-itrbl marked this pull request as ready for review October 5, 2026 09:12

@rtlsilva rtlsilva left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with minor comments. Address or merge at will.

Comment thread CHANGELOG.md Outdated
Comment thread .github/workflows/ci.yml Outdated
Scope push-open fix to trackPushOpenWithCampaignId and call the package
script from the Android CI job.
@jferrao-itrbl
jferrao-itrbl merged commit 8d2ec19 into feature/SDK-548-feature-parity Oct 6, 2026
10 checks passed
@jferrao-itrbl
jferrao-itrbl deleted the feature/SDK-748-forward-app-already-running branch October 6, 2026 19:22
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.

2 participants