Skip to content

Update the sample app to use the new FCM registration API. - #1868

Open
leojaygoogle wants to merge 2 commits into
firebase:mainfrom
leojaygoogle:notification_service_extension
Open

Update the sample app to use the new FCM registration API.#1868
leojaygoogle wants to merge 2 commits into
firebase:mainfrom
leojaygoogle:notification_service_extension

Conversation

@leojaygoogle

Copy link
Copy Markdown
Contributor

No description provided.

@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 updates the Firebase iOS SDK dependency to version 12.18.0 and integrates the new FCM registration and installation ID APIs. This includes adding registration callbacks to the AppDelegate, enabling FirebaseMessagingInstallationIdEnabled in Info.plist, and conditionally registering FCM in ViewController. Feedback was provided regarding a potential retain cycle in ViewController.swift where self is captured strongly inside an escaping closure, with a suggestion to use [weak self] instead.

Comment thread messaging/MessagingExample/ViewController.swift Outdated
@leojaygoogle

Copy link
Copy Markdown
Contributor Author

@Doris-Ge @ncooke3 Can you please review this PR? Thanks!

@Doris-Ge Doris-Ge 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.

Can we replace all the "token" references (in either code or comment) with "registration" or "Firebase Installation Id (FID)"?

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