@keshavking111 wrote:
Please help for" **
ionic4 forground notifiction not show"**
, also try to show in console notification not show. Only register id show in console. But background messege receive.
const options: PushOptions = {
android: {
senderID: ‘xxxxx’,
// foreground: true,
forceShow: true,
},
ios: {
alert: ‘true’,
badge: true,
sound: ‘false’,
//foreground: true,},
}
const pushObject: PushObject = this.push.init(options);
pushObject.on(‘notification’).subscribe((notification: any) =>
console.log(‘Received a notification’, notification));
pushObject.on(‘registration’).subscribe((registration: any) => console.log(‘Device registered’, registration));
pushObject.on(‘error’).subscribe(error => console.error(‘Error with Push plugin’, error));Thanks
Posts: 1
Participants: 1