Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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());
});
}
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());
});
}