r/AndroidQuestions • u/RagerRambo • 7d ago
Disable notifications when the app is already open
Does anyone know if it's possible to disable notifications for an app, when the app is already open?
To make it concrete, I'm trying to stop WhatsApp notifications when I'm already in the app, responding to messages! So annoying.
Any idea how to achieve this, either a setting in notifications, an ADB tweak, or even a third party app?
I'm using a HyperOS v3 phone.
8
Upvotes
4
u/Busy-Service-4123 7d ago
The in-app pings come from WhatsApp itself, not HyperOS. In WhatsApp go to Settings, then Notifications, and turn off Conversation tones. That stops the sound for messages arriving while the app is open, and normal notifications still work when it is closed.
If you also get banners at the top while you are in the app, MacroDroid can do it without root. Trigger: Application Launched/Closed, pick WhatsApp. Action: Do Not Disturb on when it opens, and a second macro turns it off when it closes. Give MacroDroid DND access when it asks.
1
u/RedSquirrel2505 5d ago
had the same thing — check whatsapp's own notification settings for a pop-up notification toggle (settings > notifications). turning that off killed the banners at the top for me without turning off notifications while the app is closed.
if your version doesn't have it, the fallback is settings > apps > whatsapp > notifications > message notifications and lower the importance/channel, but that stops heads-up banners everywhere, not just in-app. so the macrodroid dnd trick is still cleaner if u only want them gone while you're in the app
0
u/DictoKey_Dev 7d ago
There's no built-in per-app 'only when closed' toggle. On HyperOS check Settings > Notifications & Control center > App notifications > WhatsApp for the banner and sound toggles, and look in WhatsApp's own notification settings for what you can turn off.