Hello
I would like to set a trigger to handle either WhatsApp voice/video calls.
I would like to set a text filter like Incoming voice call OR Incoming video call.
How do I express this? I would like to avoid defining two flows.
Doable?
Bob
How to set a trigger with a OR condition in filter
Moderator: Martin
Re: How to set a trigger with a OR condition in filter
I just realize if I google "automagic multiple triggers", my post is the first answer : viewtopic.php?t=6857#:~:text=You%20can% ... %20trigger.
At the trigger elements, tap the 5 line icon on the top, choose new. After adding multiple trigger, you can then split the trigger using multiple parallel expression, example as seen at my Automagic Backup flow : viewtopic.php?f=3&t=7858
You don't have to check {trigger}, you can also check the {notification_text}. Example condition :
Let say you want voice call to auto answer, so this continue to Perform Action on Notification on Statusbar : Click button - Answer.
While if you want to auto reject video call
This continue to Click button - Decline.
Of course, in your usage, you want both to auto answer, so no need to split here.
At the trigger elements, tap the 5 line icon on the top, choose new. After adding multiple trigger, you can then split the trigger using multiple parallel expression, example as seen at my Automagic Backup flow : viewtopic.php?f=3&t=7858
You don't have to check {trigger}, you can also check the {notification_text}. Example condition :
Code: Select all
contains(notification_text, "Incoming voice call")
While if you want to auto reject video call
Code: Select all
contains(notification_text, "Incoming video call")
Of course, in your usage, you want both to auto answer, so no need to split here.
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: How to set a trigger with a OR condition in filter
I selected two triggers and filtered each on desired incoming notification