Home > @firebase/messaging > getMessaging
getMessaging() function
Retrieves a Firebase Cloud Messaging instance.
Signature:
export declare function getMessagingInWindow(app?: FirebaseApp): FirebaseMessaging;
Parameters
Parameter | Type | Description |
---|---|---|
app | FirebaseApp |
Returns:
The Firebase Cloud Messaging instance associated with the provided firebase app.