Page 1 of 1

Automagic Notification Condition

Posted: 13 Jan 2014 20:33
by Panda
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

Re: Automagic Notification Condition

Posted: 13 Jan 2014 20:48
by MURTUMA
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.

Re: Automagic Notification Condition

Posted: 14 Jan 2014 08:36
by Panda
yes, but I don't want create only one flow for this and not one flow for each Notification

Re: Automagic Notification Condition

Posted: 14 Jan 2014 08:46
by kintrupf
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.

Re: Automagic Notification Condition

Posted: 14 Jan 2014 11:46
by Panda
yes but it's for 1 id. but it's possible to do more trigger but not every trigger should execute the same action

Re: Automagic Notification Condition

Posted: 14 Jan 2014 12:01
by MURTUMA
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?

Re: Automagic Notification Condition

Posted: 14 Jan 2014 12:54
by Panda
Sry my English is not very good.
I want to create something like this:


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

Re: Automagic Notification Condition

Posted: 14 Jan 2014 13:00
by kintrupf
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.

Re: Automagic Notification Condition

Posted: 14 Jan 2014 13:03
by kintrupf
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.

Re: Automagic Notification Condition

Posted: 14 Jan 2014 20:43
by Panda
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