gorush
gorush copied to clipboard
Migrate from legacy FCM HTTP API to HTTP v1 API
This project's dependency github.com/appleboy/go-fcm
uses legacy FCM HTTP API.
Are there any plans to migrate it to the v1 API as recommended by Firebase documentation? Or maybe
integrate Firebase Admin SDK instead of using raw HTTP API.
Also, how can I pass TitleLocArgs
and BodyLocArgs
values as array of strings? In the dependency mentioned above
these values are defined as plain strings whereas FCM documentation specifies them as array of strings .
When I make a request with TitleLocArgs
I get an error Error Message: unknown error type
. However when I make same request connecting directly to FCM server everything works fine.
+1
+1 also for me
Hello! Today Google announced that FCM Legacy HTTP API will be removed on June 20, 2024. I think now this ticket should get a bit more attention 🙂 https://firebase.google.com/docs/cloud-messaging/http-server-ref
@IlyaGulya I will take it.
@IlyaGulya I will take it.
Hello @appleboy. Do you have any idea of a time schedule for the release of a new version using FCM HTTP v1 API instead of the legacy one please ? Thanks a lot in advance !
Hey there, I found your promising notification service yesterday. I would really love to use this, but this issue is keeping me from using it. Any chance to get an estimation, when Firebase Cloud Messaging API (V1) is implemented?
Thanks
Bump
@IlyaGulya I will take it.
@appleboy any estimation on by when this will get implemented?
Hey, sorry about that. I'm planning to kick off the API transition this month, and hopefully, by next month, there'll be a version ready for everyone to test out.
Dear @appleboy,
Thank you for your amazing effort.
I have checked out potential authorization methods on FCM HTTP v1 API Documentation and wondered if it is possible to maintain the multi-tenancy on the new approach.
Regarding the previous API, the "api_key" input helps to send notifications to multiple applications. Selecting different "JSON" files, including project-id values, to authorize could be a valuable capability for somehow maintaining multi-tenancy.
@obuzyig
Thank you for reaching out and for your kind words regarding our efforts.
I'm delighted to inform you that we are fully committed to supporting multi-tenancy on the FCM HTTP v1 API platform. Your feedback regarding the potential authorization methods and the importance of maintaining multi-tenancy is greatly appreciated.
https://github.com/appleboy/gorush/issues/550#issuecomment-1997538191
@obuzyig I am aware of only one feasible method for authorization i.e, using service-account.json files. Are you aware of any other methods as such?
@obuzyig I am aware of only one feasible method for authorization i.e, using service-account.json files. Are you aware of any other methods as such?
@sankethkini I think FCM provides the Application Default Credentials option for applications that work on a Google-related platform or infrastructure. I do not have any other generic solutions for covering other applications.
Hey, sorry about that. I'm planning to kick off the API transition this month, and hopefully, by next month, there'll be a version ready for everyone to test out.
Hey @appleboy - just wondering if it's possible to get an update on progress with this. Do you think the upgrade will be ready to be used in production before the legacy HTTP API is switched off in June?
Thanks in advance 👍