So, this is the first time I’ve implemented Push via ionic.io and phonegap-plugin-push. As you can see from the image, pushes are being received but titled as “index.html”
Would like to change that to something else, but can figure out where it’s defined.
In my app.component.ts constructor:
this.platform.ready().then( () => {
this.push.register().then((t: PushToken) => {
return this.push.saveToken(t);
}).then((t: PushToken) => {
console.log('Token saved:', t.token);
console.log('Start listening to push notifications..');
this.startListeningForNotifications();
});
});
&
startListeningForNotifications() {
this.push.rx.notification()
.subscribe((msg) => {
alert(msg.title + ': ' + msg.text);
});
}
In app.module.ts:
const cloudSettings: CloudSettings = {
'core': {
'app_id': 'my_app_id',
},
'push': {
'sender_id': 'my_sender_id',
'pluginConfig': {
'ios': {
'badge': true,
'clearBadge': true,
'sound': true
},
'android': {
'iconColor': '#343434',
'clearBadge': true,
}
}
}
};
Any pointers?