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

Push notification not display forground in ionic4

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70764

Trending Articles



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