@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