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

Any example with FCM? #39

Open
gibigate opened this issue Apr 1, 2019 · 2 comments
Open

Any example with FCM? #39

gibigate opened this issue Apr 1, 2019 · 2 comments

Comments

@gibigate
Copy link

gibigate commented Apr 1, 2019

No description provided.

@beverloo
Copy link
Owner

beverloo commented Apr 1, 2019

What do you mean by FCM? https://tests.peter.sh/push-message-generator/ can already send messages to FCM, also using the older proprietary mechanism (select that under authentication).

@FluorescentHallucinogen
Copy link
Contributor

@gibigate

See https://web-push-book.gauntface.com/faq/#what-is-the-deal-with-gcm-fcm-web-push-and-chrome.

TL;DR: Firebase Cloud Messaging is not a Web Push API, it's another proprietary API. It uses Firebase Cloud Messaging JavaScript SDK, different tokens, different headers, but the same https://fcm.googleapis.com/fcm/send endpoint, and can send push notifications to native Android and iOS apps, not only to web apps.

See https://github.com/firebase/quickstart-js/tree/master/messaging for the demo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants