Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase Cloud Messaging (FCM) Legacy API deprecation #32124

Closed
machadolucas opened this issue Apr 3, 2024 · 1 comment
Closed

Firebase Cloud Messaging (FCM) Legacy API deprecation #32124

machadolucas opened this issue Apr 3, 2024 · 1 comment

Comments

@machadolucas
Copy link

Description:

Rocket.Chat is currently using the node-gcm project to integrate with Firebase Cloud Messaging (FCM) for sending push notifications. According to Google, the FCM Legacy API which is used by node-gcm project is now deprecated and will stop working on June 20, 2024.
After that date, push notifications will stop working on Rocket.Chat if integration with FCM is not updated.

Steps to reproduce:

  1. Getting a reminder from Google about the deprecation and that my white-labeled RocketChat app is using Legacy HTTP protocol and Legacy Server Keys.
  2. Verify that RocketChat server code is using outdated integration with FCM.

Expected behavior:

Code needs to be updated with another FCM integration that supports the new FCM API. There is an issue in the node-gcm project recommending migration to another lib: ToothlessGear/node-gcm#370

Actual behavior:

node-gcm project is installed in package.json#L135 and used in gcm.ts#L3

Server Setup Information:

  • Version of Rocket.Chat Server: all versions
@Gustrb
Copy link
Contributor

Gustrb commented Apr 11, 2024

Hey @machadolucas thanks for raising this issue!

I'm currently working on implementing the new version using the FCM API instead of the old API, whilst keeping everything compatible with the legacy way of sending notifications.

The implementation is mostly done, I will link it here when I open the Pull Request.

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

No branches or pull requests

2 participants