Skip to content

fix: resolve missing registration token callbacks at app launch. (#16596) - #16596

Merged
ncooke3 merged 2 commits into
mainfrom
delegate-regression
Sep 3, 2026
Merged

ncooke3 merged 2 commits into
mainfrom
delegate-regression

Conversation

@leojaygoogle

@leojaygoogle leojaygoogle commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

In #16458, we introduced a regression where _defaultFCMToken is set prematurely. As a result, the message delegate is not called at app launch.

#16581

In #16458, we introduced a regression where `_defaultFCMToken` is set prematurely. As a result, the message delegate is not called at app launch.
@gemini-code-assist

Copy link
Copy Markdown
Contributor
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

@leojaygoogle

Copy link
Copy Markdown
Contributor Author

/gemini review

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

Copy link
Copy Markdown
Contributor

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 fixes an issue where messaging:didReceiveRegistrationToken: was not called at app launch when a token was cached. This is resolved by returning the cached token directly in tokenAndRequestIfNotExist instead of setting _defaultFCMToken prematurely, which allows updateDefaultFCMToken to correctly detect the token change and notify the delegate. The changes also include new unit tests to verify this behavior for both V4 and FID cached tokens. I have no feedback to provide.

@leojaygoogle leojaygoogle changed the title fix: resolve missing registration token callbacks at app launch. Sep 2, 2026
@leojaygoogle
leojaygoogle marked this pull request as ready for review September 2, 2026 23:20
Comment thread FirebaseMessaging/CHANGELOG.md Resolved

@ncooke3 ncooke3 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Going to merge this for 12.19 code freeze

@ncooke3
ncooke3 merged commit f6937ff into main Sep 3, 2026
55 checks passed
@ncooke3
ncooke3 deleted the delegate-regression branch September 3, 2026 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants