@firebase/messaging
This is the messaging component for the Firebase JS SDK. It has a peer
dependency on the @firebase/app
package on NPM. This package
is included by default in the firebase
wrapper
package.
Installation
You can install this package by running the following in your project:
$ npm install @firebase/messaging
Usage
You can then use the firebase namespace exposed by this package as illustrated
below:
ES Modules
import firebase from '@firebase/app';
import '@firebase/messaging'
CommonJS Modules
const firebase = require('@firebase/app').default;
require('@firebase/messaging');
Documentation
For comprehensive documentation please see the Firebase Reference
Docs.