Change the notifications enabled/disabled status for an app

214 views
Skip to first unread message

I Ro

unread,
Apr 22, 2021, 8:53:22 AM4/22/21
to Tasker
I want to automate the following sequence of actions with tasker:
1. Settings-Notification Center-Notification Manager-App selection (for example, Viber) - and action selection (Disable notifications\Show without sound).
2. or you can achieve a similar result with an active notification by moving it slightly to the right. Then you will see the settings wheel, and then the action selection menu (Disable notifications\Show without sound\Show with sound).

Can you tell me how to do this? 

This should work in Android 7.0

João Dias

unread,
Apr 22, 2021, 9:21:35 AM4/22/21
to tas...@googlegroups.com
Use the AutoNotification Categories action and set the notification category importance to none :)

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


I Ro

unread,
Apr 22, 2021, 9:35:53 AM4/22/21
to Tasker
AutoNotification Categories doesn't work for android 7.0
четверг, 22 апреля 2021 г. в 16:21:35 UTC+3, joaomgcd:

João Dias

unread,
Apr 22, 2021, 9:37:22 AM4/22/21
to tas...@googlegroups.com
Oh, right sorry about that! Forgot about that limitation!

I Ro

unread,
Apr 22, 2021, 9:39:15 AM4/22/21
to Tasker
the problem can't be solved?

четверг, 22 апреля 2021 г. в 16:37:22 UTC+3, joaomgcd:

I Ro

unread,
Apr 22, 2021, 9:46:07 AM4/22/21
to Tasker
I want to note that this task is very easily solved by a macrodroid. But I want to solve this problem with tasker.

четверг, 22 апреля 2021 г. в 16:39:15 UTC+3, I Ro:

João Dias

unread,
Apr 22, 2021, 10:41:19 AM4/22/21
to tas...@googlegroups.com
How do you do it with Macrodroid? Does it require root?

I Ro

unread,
Apr 22, 2021, 12:32:54 PM4/22/21
to Tasker
Yes, Root is needed.


четверг, 22 апреля 2021 г. в 17:41:19 UTC+3, joaomgcd:
Screenshot_2021-04-22-18-47-48-403.jpeg
Screenshot_2021-04-22-18-50-23-148.jpeg
Screenshot_2021-04-22-18-50-04-646.jpeg
Screenshot_2021-04-22-18-47-32-087.jpeg
Screenshot_2021-04-22-18-52-00-139.jpeg

João Dias

unread,
Apr 22, 2021, 12:40:26 PM4/22/21
to tas...@googlegroups.com
Ok, you can do it with a shell command.

I Ro

unread,
Apr 22, 2021, 12:44:17 PM4/22/21
to tas...@googlegroups.com
can you suggest these commands?

чт, 22 апр. 2021 г., 19:40 João Dias <joao...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/CAG6Z%2BFeQ4v4TTBcTb9UQqU2BgWna07dUPvx_VbW1qmNGHk0J0g%40mail.gmail.com.

I Ro

unread,
Apr 22, 2021, 12:47:46 PM4/22/21
to Tasker

I didn't notice the link.
thanks.
I will study it.
четверг, 22 апреля 2021 г. в 19:40:26 UTC+3, joaomgcd:

I Ro

unread,
Apr 22, 2021, 12:52:13 PM4/22/21
to Tasker

Oh, no. it's too complicated for me.
:-(
четверг, 22 апреля 2021 г. в 19:40:26 UTC+3, joaomgcd:
Ok, you can do it with a shell command.

João Dias

unread,
Apr 23, 2021, 4:36:55 AM4/23/21
to tas...@googlegroups.com
Here, try this: https://taskernet.com/shares/?user=AS35m8ne7oO4s%2BaDx%2FwlzjdFTfVMWstg1ay5AkpiNdrLoSXEZdFfw1IpXiyJCVLNW0yn&id=Task%3ADisable+Notifications+Youtube
Enable the Use Root option in the Run Shell action to try and make it work. Hope this helps!


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.

I Ro

unread,
Apr 23, 2021, 5:28:08 AM4/23/21
to Tasker
I replaced in your example "com.google.android.youtube " on "org.telegram.messenger". There are no errors. But there is no result. Notifications from the telegram app still arrive.

пятница, 23 апреля 2021 г. в 11:36:55 UTC+3, joaomgcd:

João Dias

unread,
Apr 23, 2021, 5:30:43 AM4/23/21
to tas...@googlegroups.com
Sorry, I don't have an Android 7 device to test it on myself :(

I Ro

unread,
Apr 26, 2021, 2:00:06 AM4/26/21
to Tasker
I solved this problem with your advice. 
    Tsssss (7)

Variables: [ %gggggg:not set ]
A1: Run Shell [ Command:stat -c %u /data/data/org.telegram.messenger Timeout (Seconds):0 Use Root:On Store Output In:%output Store Errors In:%error Store Result In: ]
A2: Run Shell [ Command:service call notification 6 s16 org.telegram.messenger i32 %output i32 0 Timeout (Seconds):0 Use Root:On Store Output In:%output Store Errors In:%error Store Result In: ] 

Thank you very much.

пятница, 23 апреля 2021 г. в 12:30:43 UTC+3, joaomgcd:

João Dias

unread,
Apr 26, 2021, 4:05:01 AM4/26/21
to tas...@googlegroups.com
Great!! :)
Reply all
Reply to author
Forward
0 new messages