Skip to content

Cloud Messaging: The firebase-admin-sdk cloud messaging migration from legacy FCM APIs to HTTP v1 #2518

Answered by mikejpeters
ak-notify asked this question in Q&A
Discussion options

You must be logged in to vote

@georgwiltschek is correct, the send() method has always used the v1 API since it was added to this SDK in 6.0.0, so it should be safe to use regardless of what version of the SDK you are on.

The sendToDevice / sendToDeviceGroup / sendAll / sendMulticast methods will stop working, and you have the option to switch to the send() method instead, or use the new APIs provided in SDK >= 11.7.0.

Sources

In the FAQ for FCM features deprecated in June 2023 there is a section on Firebase Admin SDK APIs:

API Name Impact on users Action Required
sendToDevice() The API will stop working after 6/21/2024 because it calls the legacy HTTP send API. Use the send() method.
sendToDeviceGroup() The …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ak-notify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants