-
Notifications
You must be signed in to change notification settings - Fork 371
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
Deprecated legacy messaging methods are still available #2602
Comments
These are now throwing |
Yes @Johnnyrook777 for me as well. sentToTopic is an important one for our business and now not working anymore. I am using v 12.3.1. |
If I look here the example seems to indicate that the new send method will also handle topics? https://firebase.google.com/docs/cloud-messaging/migrate-v1#update-the-payload-of-send-requests I am going to update and test and refer back here if it was successful or not |
Yes using .send() instead of sendToTopic() works. sendToCondition will probably also work as it can take the message type is: export type Message = TokenMessage | TopicMessage | ConditionMessage; |
Yes, .send() works fine as a replacement, but the issue is that those deprecated methods that no longer work are still present in the latest version (now 12.3.1) and some aren't even marked as deprecated. It seems developers here simply doesn't care even though notifications are essential to many apps. |
Thanks @DevDianDankie, I also had success using a Seems like an oversight to not have the old functions migrated or depicated, and we certainly got caught off guard :( |
I think this is solved by #2683 |
Hey folks, Please use the |
I'm using quite old version, but my app is working! and getting this error: while using this method:
|
You have to change from:
To using the Admin SDK as so:
and from the notification object change the "to" key to "token"
|
aw |
Describe your environment
Describe the problem
According to FAQ for FCM features deprecated in June 2023, the API endpoint
https://fcm.googleapis.com/fcm/send
is shutting down and:It has been replaced by HTTP v1 endpoint:
https://fcm.googleapis.com/v1/projects/myproject-b5ae1/messages:send
However, in this latest v12.1.1 version of firebase-admin-node, there are 4 methods still using this legacy endpoint:
Only methods sendToDevice and sendToDeviceGroup are marked as deprecated, but methods sendToTopic and sendToCondition are not - despite all of them using the same endpoint. But won't all four of them stop working soon? So shouldn't they have been already removed in the latest version? It is a breaking change.
The text was updated successfully, but these errors were encountered: