If anyone have any example app for implementation firebase cloud messaging in a webapp that would be highly helpful. I can't seem to figure out how to do this.
Asked
Active
Viewed 1,895 times
-3
-
1See https://firebase.google.com/docs/cloud-messaging/chrome/client – Frank van Puffelen Jun 30 '16 at 18:30
-
I have looked through it. It states "The rest of this page describes the FCM support for Chrome apps and extensions only; for website support, see the push messaging codelab" and looking at the codelab example it only uses GCM in browser. Not FCM in server like a production app would require. – jasan Jul 01 '16 at 01:21
-
@jasan I don't think we have a runnable server side sample yet but please have a look at this doc: https://firebase.google.com/docs/cloud-messaging/server – Nicolas Garnier Jul 01 '16 at 09:54
-
Also in the codelab you pointed to, there is a section that explains how to send push notifications using an HTTP request which is basically what the server should do: https://developers.google.com/web/fundamentals/getting-started/push-notifications/step-07 but as the answer below mentions this is Chrome only at this point. – Nicolas Garnier Jul 05 '16 at 07:59
1 Answers
2
Firebase don't provide cloud messaging for web based applications. FCM or push notification can be implemented with specified chrome browser only. But still you can implement the firebase database to make your web application real time. You can prefer this link Firebase database and trigger the event on firebase database Firebase Database Event. Hope this will help you. For complete implementation you can see this Implementation Firebase Database.

Community
- 1
- 1

Pritish Joshi
- 2,025
- 3
- 18
- 33