Is it possible to check if a notification is visible or canceled?

前端 未结 6 1638
别那么骄傲
别那么骄傲 2020-12-08 06:31

I would like to update notification data, but the only way I found is to launch a new one with the same Id.

The problem is that I don\'t want to raise a new one if t

6条回答
  •  有刺的猬
    2020-12-08 06:52

    I think you can use deleteIntent of Notification class.

    I remember in one of my application I use use to fire a Broadcast (custom Broadcast) when a notification is cancelled or the Notification tray was cleared.

提交回复
热议问题