Automagic Notification Condition

Post your questions and help other users.

Moderator: Martin

Post Reply
Panda
Posts: 21
Joined: 14 Nov 2013 11:50

Automagic Notification Condition

Post by Panda » 13 Jan 2014 20:33

Hey, I would like if there will be a condition for automatic notifications.

Example:
Notification 1 and Notification 2 is shown the Statusbar.
trigger: Notification selected
condition: Notification 2?
action: remove all Notifications

I hope my example is easy to understand :D

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Automagic Notification Condition

Post by MURTUMA » 13 Jan 2014 20:48

For that simple thing you don't need any conditions as the logic has it in itself already.

Trigger: select notification
Action: remove notification of your choice
Simply, if the notification that you want to remove isn't there, nothing happens. If it is there, it gets removed. There's no need to check that.

Panda
Posts: 21
Joined: 14 Nov 2013 11:50

Re: Automagic Notification Condition

Post by Panda » 14 Jan 2014 08:36

yes, but I don't want create only one flow for this and not one flow for each Notification

User avatar
kintrupf
Posts: 257
Joined: 10 Sep 2013 08:59

Re: Automagic Notification Condition

Post by kintrupf » 14 Jan 2014 08:46

Panda wrote:yes, but I don't want create only one flow for this and not one flow for each Notification
That is already possible, you should read the complete description of the trigger ;)
The trigger supplies the variable "notification_id" to the flow which allows you in a subsequent condition to determine which of your notifications was selected.

Panda
Posts: 21
Joined: 14 Nov 2013 11:50

Re: Automagic Notification Condition

Post by Panda » 14 Jan 2014 11:46

yes but it's for 1 id. but it's possible to do more trigger but not every trigger should execute the same action

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Automagic Notification Condition

Post by MURTUMA » 14 Jan 2014 12:01

Sorry,I have little trouble to catch the point of what you're trying to archive. Please state it clearly maybe in step by step basis of possible?

Panda
Posts: 21
Joined: 14 Nov 2013 11:50

Re: Automagic Notification Condition

Post by Panda » 14 Jan 2014 12:54

Sry my English is not very good.
I want to create something like this:


http://automagic4android.com/flow.php?i ... 3f9e297466

User avatar
kintrupf
Posts: 257
Joined: 10 Sep 2013 08:59

Re: Automagic Notification Condition

Post by kintrupf » 14 Jan 2014 13:00

Panda wrote:yes but it's for 1 id. but it's possible to do more trigger but not every trigger should execute the same action
You can use a "chain" of conditions to distinguish between several notification IDs.
Just add another condition to the "false" condition to check for another notification ID and use the "true" conditions to execute the action for that ID.

User avatar
kintrupf
Posts: 257
Joined: 10 Sep 2013 08:59

Re: Automagic Notification Condition

Post by kintrupf » 14 Jan 2014 13:03

Panda wrote:Sry my English is not very good.
I want to create something like this:

http://automagic4android.com/flow.php?i ... 3f9e297466
Should work. Just use the expressions "notification_id == 1", "notification_id == 2" or "notification_id == 3" inside the conditions.

Panda
Posts: 21
Joined: 14 Nov 2013 11:50

Re: Automagic Notification Condition

Post by Panda » 14 Jan 2014 20:43

Ahhhhhhhh I'm so stupid -.- next time I should read the manual :/
sry guys and thank you very much for your help :) didn't saw that the notification selected trigger gives the notification_id as a variable :/

sry guys mistake

Post Reply