fcm.onNotification() not getting called on clicking the notification when the app is in background
问题 I have installed cordova-plugin-fcm and everything works fine except one little thing. When the app is in background/closed and push notification is sent from firebase, notification pops up in the devices. On clicking that notification from the tray my application starts run, but the control is not entering into fcm.onNotification(). My code in app.component.ts looks like this fcm.onNotification().subscribe(data=>{ if(data.wasTapped){ console.log("Received in background"); console.log(data);