-1

Is it possible to override notifications that are outside the scope of the app. I have read on https://developer.android.com/guide/topics/ui/notifiers/notifications.html on how to create and manage notifications but I'm looking to silence all (even outside the scope) notifications when an app is running. Can it be done?(dun dun duuunnnnnnnn!)

1 Answers1

0

It can be done by using a NotificationListenerService to control notifications if that's what you want, but I think you really want to temporarily silence a phone's notifications and not dismiss them. That will probably not give users a good experience though.

Community
  • 1
  • 1
Nick Felker
  • 11,536
  • 1
  • 21
  • 35
  • You cannot modify notifications of another app in any way. – Xaver Kapeller Jun 22 '16 at 02:14
  • You wouldn't modify them, but you could dismiss them or turn on Do Not Disturb mode so users don't see the notification. https://developer.android.com/reference/android/service/notification/NotificationListenerService.html#cancelAllNotifications() – Nick Felker Jun 22 '16 at 02:15