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

2.6.1 • Public • Published

zego-zpns-react-native

Getting started

$ npm install zego-zpns-react-native --save

Mostly automatic installation

$ react-native link zego-zpns-react-native

Usage

import ZPNs from 'zego-zpns-react-native';

ZPNs.setPushConfig({ enableFCMPush: true });
ZPNs.enableDebug(true);

const zpns = ZPNs.getInstance();

zpns.on('registered', console.log);
zpns.on('notificationArrived', console.log);
zpns.on('notificationClicked', console.log);
zpns.on('throughMessageReceived', console.log);

zpns.applyNotificationPermission();

zpns.registerPush();

Package Sidebar

Install

npm i zego-zpns-react-native

Weekly Downloads

263

Version

2.6.1

License

MIT

Unpacked Size

173 kB

Total Files

49

Last publish

Collaborators

  • zegodev