Callable
- 
						
Gets the
Messagingservice for the default app or a given app.firebase.messaging()can be called with no arguments to access the default app'sMessagingservice or asfirebase.messaging(app)to access theMessagingservice associated with a specific app.Calling
firebase.messaging()in a service worker results in Firebase generating notifications if the push message payload has anotificationparameter.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.