Action based on Gmail notification (condition for "Label"

Post your questions and help other users.

Moderator: Martin

Post Reply
dribnus
Posts: 9
Joined: 04 Jun 2018 15:36

Action based on Gmail notification (condition for "Label"

Post by dribnus » 19 Sep 2018 13:41

Since Gmail took away the customized label notification, I'm trying to get Automagic to simulate the action. I'm not sure how to get AM to trigger based on the Label though. I'm using condition "Notification on Statusbar Displayed" Is it related to the Notification ID? I have no idea what that field is for. Or, should I be using a different condition to trigger the notification sound I want to use?

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

Re: Action based on Gmail notification (condition for "Label

Post by Desmanto » 19 Sep 2018 17:42

You can use my variable logger flow to log the notification : viewtopic.php?f=3&t=7285
Later find the value which contain the label you want, use that value as the trigger or expression checking.

Notification can sometimes show different result in different devices and ROMs, you have to test it out by yourself.
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.

dribnus
Posts: 9
Joined: 04 Jun 2018 15:36

Re: Action based on Gmail notification (condition for "Label

Post by dribnus » 19 Sep 2018 17:53

Desmanto wrote:You can use my variable logger flow to log the notification : viewtopic.php?f=3&t=7285
Later find the value which contain the label you want, use that value as the trigger or expression checking.

Notification can sometimes show different result in different devices and ROMs, you have to test it out by yourself.
Thanks Desmanto. That goes pretty deep, but I'm willing to try to figure it out.

Post Reply