Page 1 of 1

Notification on Statusbar Displayed (Id)

Posted: 14 Aug 2015 14:15
by McA
Hi.
I would like to know if there is any way to know if a specific notification with an id specific shows or not in the notification bar.
For example, if a notification created with this example flow still appears when you run another specific flow.



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

Re: Notification on Statusbar Displayed (Id)

Posted: 14 Aug 2015 18:26
by Martin
Hi,

You could use trigger Notification on Statusbar Removed with package set to Automagic and remember when the notification with a particular ID is removed. You could store the ID in a global list when a notification is shown and remove it again when the notification is removed.
The condition Notification on Statusbar Displayed could also work when only one notification with title Notification {i} is shown at a time (I've just added variable replacements in the text filter of this condition in the EAP version 1.29). The next version also adds a new action Init Variable Notifications on Statusbar that fills a list of all shown notifications with a map of all variables for each notification (becomes available in the next EAP build).

Regards,
Martin

Re: Notification on Statusbar Displayed (Id)

Posted: 14 Aug 2015 21:48
by McA
Thank you for your response, my intention was to not use global variables, but if there is no other way, I'll use them. Still thank you for the reply.

Re: Notification on Statusbar Displayed (Id)

Posted: 17 Aug 2015 13:21
by Martin
I've extended condition Notification on Statusbar Displayed to check for a particular id in the next EAP build (Android 4.3+).