Skip to content

MOEN-47655: Added support for firebase installation id - #140

Merged
arshiya-moengage merged 3 commits into
developmentfrom
feature/MOEN-47655_fid_support
Sep 29, 2026
Merged

arshiya-moengage merged 3 commits into
developmentfrom
feature/MOEN-47655_fid_support

Conversation

@abhishek-engg-mobilesdk

@abhishek-engg-mobilesdk abhishek-engg-mobilesdk commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Jira Ticket

https://moengagetrial.atlassian.net/browse/MOEN-47655

Description

Support for firebase installation id

@moe-hodor

moe-hodor Bot commented Sep 15, 2026

Copy link
Copy Markdown

🚪 Hodor is reviewing this PR... 👀

@moe-hodor moe-hodor Bot added cfr:neutral Change Failure Rate: neutral impact branch:feature Planned work — new functionality or enhancement (neutral CFR) labels Sep 15, 2026
Comment thread sdk/core/src/index.ts Resolved

@moe-hodor moe-hodor Bot 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.

Review Summary

Issues (6 after filtering):
🔴 Critical: 1
⚠️ Warning: 2
💡 Suggestion: 3

Hodor filtered 1 low-signal comment(s) to reduce noise.
Verdict: REQUEST_CHANGES

@abhishek-engg-mobilesdk
abhishek-engg-mobilesdk force-pushed the feature/MOEN-47655_fid_support branch 3 times, most recently from d2db67d to 776bf08 Compare September 16, 2026 06:45
@abhishek-engg-mobilesdk
abhishek-engg-mobilesdk force-pushed the feature/MOEN-47655_fid_support branch 2 times, most recently from 467e1c0 to 6d6ac69 Compare September 16, 2026 12:29

@arshiya-moengage arshiya-moengage left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed the FID support end-to-end (TS public API → spec → Android bridge → expo plugin). The shape of the feature is right and the expo config-plugin tests are a good addition. Main blockers are build config that can't ship and an iOS gap.

Blockers: the mavenLocal() + -fid-local force block exists in both sdk/core/android/moengage-dependency-helper.gradle (already flagged by moe-hodor) and sdk/expo/android/build.gradle; the two new Spec methods have no iOS RCT_EXPORT_METHOD stub, breaking the repo's convention that every Android-only spec method gets a no-op on iOS; and MoEExpoFireBaseMessagingService.onNewToken now discards the token entirely, which is a behaviour removal the changelog records as [minor].

Two notes on the existing review:

  • moe-hodor's "silent null return" comment on getFirebaseInstallationId() doesn't hold — the catch block re-throws (index.ts:873).
  • Correction to my earlier note on the event routing: I've since reviewed the plugin-base PR (moengage/android-plugin-base#114). installationIdEventToJson emits {accountMeta:{appId}, data:{platform, pushService, installationId}} — it does not follow the flat shape of tokenEventToJson. Routing the event through the accountMeta branch of executeHandler is therefore correct, and getFirebaseInstallationIdResult(payload, accountMeta) reads the right keys. moe-hodor's concern and my corroboration of it can both be disregarded.

Separately, the plugin-base PR has its own blockers that gate this one: the same -fid-local dependency pinning, and the deletion of PluginFcmTokenListener, which stops EventType.PUSH_TOKEN_GENERATED ever firing — so the pushTokenGenerated event that EventEmitterImpl and index.ts still expose goes dead for FCM apps.

Comment thread sdk/expo/android/build.gradle Resolved
Comment thread sdk/core/src/NativeMoEngage.ts Resolved
Comment thread sdk/expo/CHANGELOG.md Resolved
Comment thread sdk/core/CHANGELOG.md Resolved
Comment thread sdk/core/src/index.ts Resolved
Comment thread sdk/core/src/index.ts Resolved
Comment thread sdk/core/src/index.ts Resolved
@abhishek-engg-mobilesdk
abhishek-engg-mobilesdk force-pushed the feature/MOEN-45983_old_arch_removal branch 3 times, most recently from 001da0c to 50faacb Compare September 18, 2026 07:23

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why is this change part of this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

rebased

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

shouldn't be a part of this PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

rebased

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

shouldn't be a part of this PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

rebased

Base automatically changed from feature/MOEN-45983_old_arch_removal to feature/MOEN-45983_version_update September 22, 2026 06:09
@abhishek-engg-mobilesdk
abhishek-engg-mobilesdk force-pushed the feature/MOEN-45983_version_update branch from e0342ce to 46c341e Compare September 22, 2026 11:42
Base automatically changed from feature/MOEN-45983_version_update to development September 29, 2026 05:45
@arshiya-moengage
arshiya-moengage dismissed their stale review September 29, 2026 05:45

The base branch was changed.

@abhishek-engg-mobilesdk
abhishek-engg-mobilesdk force-pushed the feature/MOEN-47655_fid_support branch from 49b4746 to 04d621c Compare September 29, 2026 06:12
@abhishek-engg-mobilesdk
abhishek-engg-mobilesdk force-pushed the feature/MOEN-47655_fid_support branch from 04d621c to 6e70672 Compare September 29, 2026 06:27
@arshiya-moengage
arshiya-moengage merged commit 882b8a6 into development Sep 29, 2026
6 checks passed
@arshiya-moengage
arshiya-moengage deleted the feature/MOEN-47655_fid_support branch September 29, 2026 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch:feature Planned work — new functionality or enhancement (neutral CFR) cfr:neutral Change Failure Rate: neutral impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants