# Google FCM push notification implementation

- - -
## Implementation steps

1. Copy the data of `firebaseConfig` to your project.

    ```javascript
    var appID = 0; // Your Application ID of ZEGO ZIM
    ZIM.create({ appID: appID });
    var zim = ZIM.getInstance();

    var config = {
        // From firebaseConfig
        apiKey: '',
        authDomain: '',
        projectId: '',
        storageBucket: '',
        messagingSenderId: '',
        appId: '',
        measurementId: '',

        // From Web Push certificates
        vapidKey: '',
    }
    ZPNs.getInstance().register(config, zim);
    ```
     
2. Download the latest version of ZPNs SDK and copy the `firebase-messaging-sw.js` file to the project root directory.

3. After the above configuration is completed, please contact ZEGOCLOUD Technical Support for offline push related configuration.
