Add a new notification when push notification is received (not replace the previous)

前端 未结 6 1880
予麋鹿
予麋鹿 2021-02-02 16:59

I am using push notifications in my app. I need to display a notification when a push notification delivered. If I send another notification (without clearing the previous notif

6条回答
  •  梦毁少年i
    2021-02-02 17:47

    simple you have to

    change Notification id

      mNotificationManager.notify(1, notification);
    

    instead of 1

    for more refer this Link

提交回复
热议问题