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.

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.