// when the app is opened from a quit state. messaging() .getInitialNotification() .then(remoteMessage => { console.log( '[FCMService] getInitialNotification Notification caused app to open', ); if (remoteMessage) { const notification = remoteMessage.notification; onOpenNotification(notification); // this.removeDeliveredNotification(notification.notificationId) } });
.getInitialNotification() .then(remoteMessage => { if (remoteMessage) {