-
Notifications
You must be signed in to change notification settings - Fork 147
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
Consider migrating to FCM HTTP v1 API [old API shutoff: June 2024] #313
Comments
Can you clarify: are you still able to create a legacy API key or have they shut that off completely now? |
Using a legacy API key is still allowed, but not recommended. I think FCM may stop supporting legacy API key at any time. |
The issue here is that AFAICT Sygnal currently uses the legacy HTTP API Line 72 in cac851b
|
The readme says "server key" but since the parameter is called "api_key" it still took us some time to realize that we explicitly have to enable the "Cloud Messaging API (Legacy)" and use that. If this migration isn't something that can easily be done, maybe just be a bit clearer/explicit about that. |
@H-Shay |
Thanks for the heads up! |
I'd recommend having a look at the firebase admin SDK which is also available for python Python example:
PS: I am pretty sure that the deadline will be extended by Google. They won't shut every down in June 2024. One should be prepared, though. |
@wrjlewis FYI this is not possible to configure a FCM (Firebase Cloud Messaging) pusher for a new Firebase project in a Sygnal instance since June 2023. Here is a screenshot of a new Firebase project settings in the Firebase Console: Only FCM HTTP v1 API is allowed for a new project. June 2024 is the deadline for the existing projects. We should migrate asap to unblock new projects |
Quick check-in about the legacy API deadline in June. Heard Element-HQ moved all the stuff over, but can't see Sygnal Pushgateway. Maybe it's still in the pipeline? Any updates or details on this? Just trying to stay in the loop. Thanks for any info! |
Hey 👋
Yep thats correct, Sygnal will be moved over shortly.
I can't give specifics on when exactly. But we're trying to get this scheduled asap and well ahead of the API shut off date. Lack of specifics on that just due to the team's other commitments and being a smaller team. |
This is coming in like ~3 months. |
Support has been added in today's release - https://github.com/matrix-org/sygnal/releases/tag/v0.14.0 |
|
Is your feature request related to a problem? Please describe.
FCM asks to stop using legacy authorization and switch to OAuth 2.0 https://firebase.google.com/docs/cloud-messaging/auth-server. But it looks like sygnal only supports authorization via
Authorization:key=AIzaSyZ-1u...0GBYzPu7Udno5aA
which is the old approach.Describe the solution you'd like
Add a field to the config that will determine what type of authorization I want to use. Legacy or OAuth 2.0.
Additional context
The text was updated successfully, but these errors were encountered: