Skip to content

feat(fcm): Enable fid and deprecate token for Send API#765

Open
yvonnep165 wants to merge 6 commits into
devfrom
yp-add-fid-arg
Open

feat(fcm): Enable fid and deprecate token for Send API#765
yvonnep165 wants to merge 6 commits into
devfrom
yp-add-fid-arg

Conversation

@yvonnep165
Copy link
Copy Markdown

This change deprecates Token (in Message) and Tokens (in MulticastMessage) as message targets, transitioning support to Fid (Firebase Installation ID) and Fids as the primary targets instead.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for Firebase Installation IDs (FIDs) across the messaging service, updating the Message and MulticastMessage structs, deprecating the older token fields, and adapting validation and batch processing logic. The review feedback suggests standardizing the deprecation comments to follow Go conventions and enhancing the TestSendEachForMulticastMixed test to perform more robust assertions using an existing helper function.

Comment thread messaging/messaging_batch_test.go Outdated
Comment thread messaging/messaging.go Outdated
Comment thread messaging/messaging_batch.go Outdated
@yvonnep165 yvonnep165 changed the base branch from master to dev May 29, 2026 16:00
@yvonnep165 yvonnep165 self-assigned this May 29, 2026
@yvonnep165 yvonnep165 added release-note release:stage Stage a release candidate labels May 29, 2026
@yvonnep165
Copy link
Copy Markdown
Author

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for Firebase Installation IDs (FIDs) in the FCM messaging client. It adds the Fid field to the Message struct and the Fids field to the MulticastMessage struct, deprecating the older Token and Tokens fields respectively. The validation logic, unit tests, and integration tests have been updated to support and validate FIDs alongside tokens, topics, and conditions. There are no review comments, so I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:stage Stage a release candidate release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants