Trigger based on conditional notification

Post your questions and help other users.

Moderator: Martin

Post Reply
mdude04
Posts: 1
Joined: 17 Jul 2014 20:09

Trigger based on conditional notification

Post by mdude04 » 17 Jul 2014 20:12

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Trigger based on conditional notification

Post by Martin » 18 Jul 2014 08:50

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

Post Reply