Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229110

FCM notifications when app is running

$
0
0

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);
  });

Viewing all articles
Browse latest Browse all 229110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>