Cordova plugin fcm not working


#1

Cannot capture the event for the tap on notification on android device when app is in background.

getNotifications() {
    this.fcm.onNotification().subscribe(data => {
        console.log('onNotification.data')
        console.log(data)
    },
    success => {
        console.log('onNotification.success')
        console.log(success)
    });
}

#2

Not sure if this helps or not but with the Push Plugin you have to be careful how you define the payload. See here