[英]I want to hide all notifications of other apps when my Android app is in foreground. Is this possible? How?
[英]Temporarily hide notifications of other apps in Android
我希望管理其他应用程序的可见通知。 看起来我可以使用NotificationListenerService取消通知。 有没有办法只暂时这样做,然后在以后再次显示它们?
到目前为止,我一直在打开免打扰来执行此操作,但这会隐藏所有通知(或用户已将免打扰配置为执行的任何操作)。 我想让他们暂时选择隐藏哪些应用程序通知。
snoozeNotification 会做我想要的吗? 之后您将如何取消暂停通知?
看起来像在短时间内再次调用 snoozeNotification 可以重新发出通知!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.