Callable
-
Gets the
Messaging
service for the default app or a given app.firebase.messaging()
can be called with no arguments to access the default app'sMessaging
service or asfirebase.messaging(app)
to access theMessaging
service associated with a specific app.Calling
firebase.messaging()
in a service worker results in Firebase generating notifications if the push message payload has anotification
parameter.The Messaging SDK does not work in a Node.js environment.
Parameters
-
Optional app: App
The app to create a Messaging service for. If not passed, uses the default app.
Returns Messaging
-
Index
Interfaces
Functions
Functions
isSupported
-
Returns boolean
The Messaging SDK does not work in a Node.js environment.