Go to console

Callable

  • messaging(app?: App): Messaging
  • 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's Messaging service or as firebase.messaging(app) to access the Messaging service associated with a specific app.

    Calling firebase.messaging() in a service worker results in Firebase generating notifications if the push message payload has a notification parameter.