Ignore group summary on trigger "Notification on Statusbar Displayed"

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Post Reply
natong
Posts: 75
Joined: 29 Aug 2015 05:24

Ignore group summary on trigger "Notification on Statusbar Displayed"

Post by natong » 25 Apr 2019 08:58

I am on Android 9, Redmi Note 7. There is group summary in notification.
When got one email, it will trigger twice.
1. notification_is_group_summary=true
2. notification_is_group_summary=false

Could you please add option for "Ignore group summary" ?
Screenshot_2019-04-25-15-11-15-605.png
Screenshot_2019-04-25-15-11-15-605.png (255.15 KiB) Viewed 765 times

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

Re: Ignore group summary on trigger "Notification on Statusbar Displayed"

Post by Desmanto » 25 Apr 2019 10:45

That is very clean edit. :D If you don't color it, I might think that option is there.

For temporary workaround, you can filter the trigger by adding condition expression

Code: Select all

notification_is_group_summary
It can be "notification_is_group_summary == true", but expression already expect boolean, so no need for the " == true".
True, continue to your main flow; false, do nothing. This will filter out the second trigger, so your main flow only executed once.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190829, Pie 9.0, Rooted.

natong
Posts: 75
Joined: 29 Aug 2015 05:24

Re: Ignore group summary on trigger "Notification on Statusbar Displayed"

Post by natong » 26 Apr 2019 07:13

Yes, Photoshop with Arial font :D

I did as your temporary workaround. But there is another issue with the Gmail app. When email 2 arrived, it repeat trigger all again.
My flow is speech the incoming email's subject.

Code: Select all

When email 1 arrived:
Trigger 1 : notification_is_group_summary=true
Trigger 2 : notification_is_group_summary=false  email 1

Code: Select all

When email 2 arrived:
Trigger 1 : notification_is_group_summary=true
Trigger 2 : notification_is_group_summary=false  email 1
Trigger 3 : notification_is_group_summary=false  email 2

Code: Select all

When email 3 arrived:
Trigger 1 : notification_is_group_summary=true
Trigger 2 : notification_is_group_summary=false  email 1
Trigger 3 : notification_is_group_summary=false  email 2
Trigger 4 : notification_is_group_summary=false  email 3

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

Re: Ignore group summary on trigger "Notification on Statusbar Displayed"

Post by Desmanto » 26 Apr 2019 17:21

It seems your problem is the email subject is contained in the "Trigger 2 : notification_is_group_summary=false email 1"
So if you use

Code: Select all

notification_is_group_summary == true
This won't have the email subject.

If you use

Code: Select all

notification_is_group_summary == false
When email 2 arrive, it will still speak out email 1 subject first.

This seems to be the problem after Automagic support notification channel. Previous groupped notification will appear once again if there is another similar notification appear. But I still don't quite understand it yet.

This can be solved by using some kind of buffering, to save the first email subject to the glovar list. When second email arrive, current glovar already contain first email subject, so it would ignore it. Only the second is spoken out. Second email subject is added again to the glovar. 3rd email and so on, it will keep ignoring previous email subject. Then when the notification is cleared, the glovar is cleared too.

But this is quite complex. Let's see if Martin can add the feature.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190829, Pie 9.0, Rooted.

Post Reply