更新时间:2022-12-27 12:07:25
android.app.NotificationManager.cancelAll() 不工作吗?
Does android.app.NotificationManager.cancelAll() not work?
如果你需要做一些非常自定义的事情,你可以使用 ParsePush 来启动一个 Intent 而不是创建一个通知.然后,您可以使用 BroadcastReceiver 创建具有非标准行为的通知(即选择性堆叠、在与之交互时关闭所有通知等).
If you need to do something very custom, you can use ParsePush to launch an Intent rather than creating a Notification. You can then use a BroadcastReceiver to create Notifications with non-standard behavior (i.e. selective stacking, dismiss all when one is interacted with, etc).