Repository navigation
fix: resolve missing registration token callbacks at app launch. (#16596) - #16596
Conversation
In #16458, we introduced a regression where `_defaultFCMToken` is set prematurely. As a result, the message delegate is not called at app launch.
Using Gemini Code AssistThe 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
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 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. |
|
/gemini review |
There was a problem hiding this comment.
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.
In #16458, we introduced a regression where
_defaultFCMTokenis set prematurely. As a result, the message delegate is not called at app launch.#16581