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" ?
Ignore group summary on trigger "Notification on Statusbar Displayed"
Moderator: Martin
Re: Ignore group summary on trigger "Notification on Statusbar Displayed"
That is very clean edit. 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
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.
For temporary workaround, you can filter the trigger by adding condition expression
Code: Select all
notification_is_group_summary
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), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Ignore group summary on trigger "Notification on Statusbar Displayed"
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.
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
Re: Ignore group summary on trigger "Notification on Statusbar Displayed"
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
This won't have the email subject.
If you use
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.
So if you use
Code: Select all
notification_is_group_summary == true
If you use
Code: Select all
notification_is_group_summary == false
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), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.