【发布时间】:2014-07-03 07:25:25
【问题描述】:
我实现了NotificationListenerService,但无法获取 cancelNotification()。我从 getActiveNotifications() 获得所有通知(成功检索当前通知的数组),并且由于某种原因,当我在每个 StatusBarNotification 上调用 getTag() 时,它总是返回 null。传递 null 作为标记似乎不起作用,因为通知永远不会被删除。有什么想法吗?
【问题讨论】:
-
在 onNotificationPosted 中收到的 StatusBarNotification 上调用 getTag 也只返回 null
-
您找到如何删除通知了吗?我面临着完全相同的问题。
标签: android service notifications statusbar