Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Android not receiving push notifications

$
0
0

@amdev wrote:

Recently built a Ionic 2 app using the latest version of Ionic, Cordova, Phonegap, etc. When sending push notifications my iOS devices receives and handles the notification fine, but my Android phone doesn't. I've tested using a virtual device with Google API Android, and a live phone with version 7 running. Code below...

this.push.register().then((t: PushToken) => {
    return this.push.saveToken(t);
  }).then((t: PushToken) => {
    console.log('Token saved:', t.token);
  });
this.push.rx.notification()
  .subscribe((msg) => {
    // alert(msg.title + ': ' + msg.text);
    let alert = this.alertCtrl.create({
      title: msg.title,
      subTitle: msg.text,
      buttons: ['Dismiss']
    });
    alert.present();
  });

Thoughts?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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