How to use the react-native-voip-push-notification.requestPermissions function in react-native-voip-push-notification

To help you get started, we’ve selected a few react-native-voip-push-notification examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github voximplant / react-native-demo / src / manager / PushManager.ios.js View on Github external
constructor() {
        console.log('Push manager ios');
        VoipPushNotification.requestPermissions();
        VoipPushNotification.addEventListener('register', (token) => {
            this.pushToken = token;
        });

        VoipPushNotification.addEventListener('notification', (notification) => {
            console.log('PushManager: ios: push notification is received: ' + notification);

            if (VoipPushNotification.wakeupByPush) {
                VoipPushNotification.wakeupByPush = false;
            }
            LoginManager.getInstance().pushNotificationReceived(notification.getData());
        });
    }

react-native-voip-push-notification

Ios PushKit for VoIP push notification on react-native

ISC
Latest version published 1 year ago

Package Health Score

58 / 100
Full package analysis