zego-zpns-web
TypeScript icon, indicating that this package has built-in type declarations

2.5.0 • Public • Published

Google FCM push notification implementation


Implementation steps

  1. Copy the data of firebaseConfig to your project.

    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.

Readme

Keywords

Package Sidebar

Install

npm i zego-zpns-web

Weekly Downloads

305

Version

2.5.0

License

ISC

Unpacked Size

99.9 kB

Total Files

5

Last publish

Collaborators

  • zegodev