Page 1 of 1

Trigger based on conditional notification

Posted: 17 Jul 2014 20:12
by mdude04
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

Re: Trigger based on conditional notification

Posted: 18 Jul 2014 08:50
by Martin
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