Notification on Statusbar Displayed (Id)

Post your questions and help other users.

Moderator: Martin

Post Reply
McA
Posts: 8
Joined: 05 Jun 2014 20:28

Notification on Statusbar Displayed (Id)

Post by McA » 14 Aug 2015 14:15

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

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

Re: Notification on Statusbar Displayed (Id)

Post by Martin » 14 Aug 2015 18:26

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

McA
Posts: 8
Joined: 05 Jun 2014 20:28

Re: Notification on Statusbar Displayed (Id)

Post by McA » 14 Aug 2015 21:48

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.

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

Re: Notification on Statusbar Displayed (Id)

Post by Martin » 17 Aug 2015 13:21

I've extended condition Notification on Statusbar Displayed to check for a particular id in the next EAP build (Android 4.3+).

Post Reply