r/AndroidQuestions • • 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

6 comments sorted by

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.

3

u/RagerRambo 7d ago

Yes exactly. Conversation tones are already off. It's the banners at the top, while I'm in the app, that makes no sense. I wonder why this even is a thing?!

I'll try MacroDroid. Thanks

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

1

u/RagerRambo 5d ago

It's greyed out: "popup notifications are no longer available in your version of android".

I tried macdroid and added trigger and actions. DND isn't suitable. It stops all calls and messages and mutes volume. Couldn't even play voice message.

I also tried using the "set notifications off" action, with Shizuku installed. Kind of worked but was flakey. Left it for now.

It's such a while thing to customise, but I don't know if it needs to be implemented by Meta or it's an OS implementation (on notifications).

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.