FCM notifications when app is running

I’m using the Firebase plugin (https://ionicframework.com/docs/native/firebase/) to receive notificacions.

But if the app is running the notifications are not shown, and if the app is closed the notifications are shown corectly.

I wan’t to display the notifications to the user if he’s using it

Solved using:

  this.firebase.onNotificationOpen().subscribe(x => {
    if (!x.tap) {
      let alert = this.alertCtrl.create({
        title: "Notification",
        subTitle: x.body,
        buttons: ['Ok']
      });
      alert.present();
    }
    console.log(x);
  });