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

Add support for FCM notifications #32

Merged
merged 6 commits into from
May 10, 2024
Merged

Add support for FCM notifications #32

merged 6 commits into from
May 10, 2024

Conversation

link2xt
Copy link
Contributor

@link2xt link2xt commented May 7, 2024

Closes #31

@link2xt
Copy link
Contributor Author

link2xt commented May 9, 2024

Currently does not work because I tried to use API key from google-services.json as bearer token. This API key seems to be deprecated and only used in legacy API which is going to be removed in June 2024 according to https://firebase.google.com/docs/cloud-messaging/auth-server

https://firebase.google.com/docs/cloud-messaging/auth-server documents that new authentication happens via OAuth 2.0 and suggests using node.js, Python or Java SDK for this.

We need to use OAuth 2 without SDK, protocol is described here: https://developers.google.com/identity/protocols/oauth2/service-account

Copy link
Member

@r10s r10s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i cannot say much to the code, however, it works, current android master gets FCM notifications - which seem to be "silent" even, so that we can process as usual \o/

@link2xt link2xt merged commit cf4d58f into main May 10, 2024
2 checks passed
@link2xt link2xt deleted the link2xt/fcm branch May 10, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Implement Firebase Cloud Messaging support
2 participants