AutoDND is an Android app that switches Do Not Disturb on and off based on which app is open in the foreground. It is meant for people who want notifications silenced automatically while they use certain apps, such as games or video calls, without touching the system settings each time.
Setup asks for notification policy access and then accessibility service access, which the app uses to see which app is currently in use. The developer notes that this detection is not perfect because Android sometimes sends odd events to accessibility services. The code is published under the AGPL-3.0-only license and contains no network code.
Alternatives to AutoDND
Products that do a similar job in System & Customization.
SwiftBar
Menu bar customisation tool for macOS that runs scripts as menu items
xbar
Runs scripts and shows their output in the macOS menu bar
HomeTiles
Large-tile Android home screen with built-in phone and messages
CrossMacro
Mouse and keyboard macro recorder, editor and scheduler
DoNotNotify
Android app that blocks unwanted notifications by app or text match
Mac-CLI
Command line commands for managing and automating a Mac
cleanyourtv
Removes preinstalled apps from Android TV devices over Wi-Fi
Orca
Open-source screen reader for the GNOME desktop