how to handle multiple push notifications in andro

2019-05-19 19:46发布

问题:

When one push notifications is arrived, if user is not available to see the notification. Meanwhile he got another notification and got updated with previous notifications. But it should not update with latest one. I need to get all notifications separately to handle them. Is it possible?

Please help over this.

http://chunkiat90.blogspot.in/2013/04/android-multiple-notification-handling.html

Thanks in Advance

回答1:

Just set an unique id to your notifications and you'll always get a new notification without update previous

upd: Juust add an int field like a notId, and increase it every time you send a notification



回答2:

The correct field to set (as of plugin version v2.4.0) is notId (not notifiyId) This field name is hard coded in the plugin. The list of available fields you can use are:

  • message
  • msgcnt
  • title
  • notId