Hi,
I've been able to set up a trigger to perform actions when I receive a notification from a specific app, but is there a way to add an extra condition to the notification trigger?
I have this:
Trigger When: Notification Received From App XYZ
I want this:
Trigger When: Notification Received From App XYZ, Only If The Notification Text Contains "ABC" (all other notifications from App XYZ will be ignored)
Thanks!
mdude04
Trigger based on conditional notification
Moderator: Martin
Re: Trigger based on conditional notification
Hi,
The trigger Notification on Statusbar Displayed usually provides the text and the big text of the notification in variables notification_text and notification_text_big so you could use a condition Expression to execute some actions only when the text matches. Something like this should work:
-trigger Notification on Statusbar Displayed
-condition Expression: contains(notification_text, "ABC")
--> true: -action Vibrate
Regards,
Martin
The trigger Notification on Statusbar Displayed usually provides the text and the big text of the notification in variables notification_text and notification_text_big so you could use a condition Expression to execute some actions only when the text matches. Something like this should work:
-trigger Notification on Statusbar Displayed
-condition Expression: contains(notification_text, "ABC")
--> true: -action Vibrate
Regards,
Martin