0

The new version of Firebase supports push notifications.
We can send notifications via the Firebase GUI console.

But does Firebase provide an JavaScript SDK so that I can send notification directly via my web application to my mobile application users?
Because for the moment I am using Firebase as a backend and Parse server for notifications. I would like to use only Firebase.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
papay0
  • 1,311
  • 1
  • 12
  • 25

2 Answers2

2

As per their documentation, Firebase notification only supports Android and iOS. Hope they would allow this in the future.

shibapoo
  • 1,909
  • 3
  • 16
  • 22
0

It is not possible to do this with the Web Javascript SDK,

You could send the notification via a HTTP request.

However, your server key will be needed to authenticate for FCM. It might not be a good idea to include your server key in client code.

From Firebase documentation:

Important: Do not include the server key anywhere in your client code. Also, make sure to use only server keys to authorize your app server. Android, iOS, and browser keys are rejected by FCM.

adamya
  • 1