更新时间:2023-12-05 10:23:52
一个非常类似的问题已经在这里回答了这样:
A very similar question has already been answered here on SO:
在总之,这是可能的一个新的通知出现时检测,但仅此而已。当通知被解雇,你无法察觉。
In short, it's possible to detect when a new notification appears, but that's about it. You can't detect when notifications have been dismissed.