forked from Blendman974/faceclaw
21 lines
1.1 KiB
Markdown
21 lines
1.1 KiB
Markdown
# Dismiss all notifications
|
|
|
|
The Notifications app menu offers Dismiss all notifications, disabled when the
|
|
list is empty. This explicit action dismisses notifications on the phone too;
|
|
popup filtering and source/default preferences remain independent.
|
|
|
|
Android uses NotificationListenerService.cancelAllNotifications, so dismissal
|
|
is not limited to the 50 items displayed by the list and Android controls which
|
|
notifications are removable. The normal removal callbacks update the list and
|
|
popups. Missing listener access returns false without changing preferences.
|
|
iOS uses the existing ANCS dismissal operation on a snapshot of all known keys;
|
|
notifications without a negative action may remain.
|
|
|
|
Software tests cover menu action/disabled state, more than 50 notifications,
|
|
native bridge dispatch, disconnected access and ANCS bulk dismissal.
|
|
On a device, verify the permission-granted/revoked cases, protected or ongoing
|
|
notifications, notification groups, and consistency with the phone's tray.
|
|
Hardware validation remains pending.
|
|
|
|
Reference: https://developer.android.com/reference/android/service/notification/NotificationListenerService#cancelAllNotifications()
|