voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (15 loc) • 695 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/messaging](./messaging.md) > [getMessaging](./messaging.getmessaging.md)
## getMessaging() function
Retrieves a Firebase Cloud Messaging instance.
<b>Signature:</b>
```typescript
export declare function getMessagingInWindow(app?: FirebaseApp): FirebaseMessaging;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| app | [FirebaseApp](./app.firebaseapp.md) | |
<b>Returns:</b>
[FirebaseMessaging](./messaging.firebasemessaging.md)
The Firebase Cloud Messaging instance associated with the provided firebase app.