Block Notification per app

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
User avatar
chrisonline
Posts: 12
Joined: 22 Jan 2018 18:11
Contact:

Block Notification per app

Post by chrisonline » 21 Jul 2018 09:00

Is it possible to block a notification per app.
So it should not be displayed and make no sound.

Use case is:
In my holidays I want to block the mail notifications from my work.
I use the app outlook for my work mails.
cu chrisonline
-----------------------------
http://www.colapps.net

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Block Notification per app

Post by digitalstone » 21 Jul 2018 11:39

From Android Marshmellow on (i believe) that was already natively possible.
Try if you can slide the notification to the right or left. If so, you'll probably see a settings-wheel.
if you click on it, it will give you the options you'll need.
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
chrisonline
Posts: 12
Joined: 22 Jan 2018 18:11
Contact:

Re: Block Notification per app

Post by chrisonline » 21 Jul 2018 12:10

Yes I know. This is the manual way.
But I want to do this automatically with Automatic of course.

It should block the notification only if I am on holiday for example. Or on the weekend.
cu chrisonline
-----------------------------
http://www.colapps.net

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Block Notification per app

Post by Desmanto » 21 Jul 2018 13:34

What is your phone? Android version?

If you have Oreo 8.1+, it is better. You can use snooze Notification on statusbar, then set it to several days. You can set a time in the future in the glovar, then use script : glovar - triggertime, to calculate the difference of time, use getDurationString() to convert it to duration format and put it into the Snooze Notification on statusbar's Duration. At any time the notification appear, it will immediately suspended and will reappear again after the time you have set come, when you back to work. This is better, as you won't miss the notification, only delay it.

But if you don't have Oreo 8.1+, you can only remove the notification as it appears. The flow will be triggered more frequently as the email arrived (the snooze above only happen once), but it won't have the chance to produce sound/notif, as it is immediately removed by Automagic. It is so fast, that you don't know the notification has gone. The removed notification won't reappear, so you have to manually check your email app for the incoming emails (you should have checked it already when you back to work).

Put this into a flow, disabled by default. When you are going to holiday/weekend, use another flow, trigger time based, either Time or Calendar, and enable it when you want the flow starting to block the notification, and disable when you want the notification to be unblocked. You will need a pair, one to enable, another one to disable. All flow will be battery friendly, as they act on event, not periodic timer.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
chrisonline
Posts: 12
Joined: 22 Jan 2018 18:11
Contact:

Re: Block Notification per app

Post by chrisonline » 21 Jul 2018 18:31

Great, thank you very much.
I have Android 8.1 so I will snooze it.
cu chrisonline
-----------------------------
http://www.colapps.net

rajeshwar45
Posts: 1
Joined: 01 Oct 2018 13:24
Contact:

Re: Block Notification per app

Post by rajeshwar45 » 02 Oct 2018 10:34

Just visit settings and from there you should be able to block the apps notification with ease....
Feel free to visit my tech blog.

Post Reply