How remove "persistant notification"

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

How remove "persistant notification"

Post by xpdev » 17 Sep 2014 07:29

Hi guys.

Automagic can create "persistent notifications" then non-cancellable except from Automagic flow.

If i stop manually Automagic service when there is a persistent notification , I can not delete notification.

There is a way to see stopping Automagic service from flow?

or else in Automagic Settings insert the possibility to kill all notifications that has builded Automagic before stopping Automagic service

thanks
Xiaomi MI 6

Rom Miui 10 EU STABLE

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

Re: How remove "persistant notification"

Post by Martin » 17 Sep 2014 16:51

Hi,

You could use a trigger Notification on Statusbar to create a persistent notification. The notification should be removed automatically when the service is stopped or the flow is disabled.
You could also use action Remove Notification on Statusbar: All (Automagic) to remove the notifications of Automagic.

Regards,
Martin

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: How remove "persistant notification"

Post by xpdev » 17 Sep 2014 16:54

OK, that's sound good Martin.

Many thanks.
Xiaomi MI 6

Rom Miui 10 EU STABLE

raman2466
Posts: 20
Joined: 05 Dec 2013 18:05

Re: How remove "persistant notification"

Post by raman2466 » 17 Sep 2014 16:57

Using a flow to remove persistent notifications is cumbersome!, use gravity box, xposed module for rooted devices!

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: How remove "persistant notification"

Post by xpdev » 18 Sep 2014 07:11

Hi Martin

i'm doing some tests.... sincerely i don't understand.....
Martin wrote: You could use a trigger Notification on Statusbar to create a persistent notification.
Why a Trigger and not the "Action" Notification on Statusbar ??

Martin wrote: The notification should be removed automatically when the service is stopped or the flow is disabled.
Notifications that i have build with the "Action" Notification on Statusbar are still alive when stop the service or manually disable the flow
Martin wrote: You could also use action Remove Notification on Statusbar: All (Automagic) to remove the notifications of Automagic.
Yes i know this, it should be very usefully if there is a trigger fired before service stop.

My goal is to clean all the automagic notifications still alive if I turn off manually (wich is the only way, right ?) the service

Regards
Daniele
Xiaomi MI 6

Rom Miui 10 EU STABLE

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: How remove "persistant notification"

Post by xpdev » 18 Sep 2014 07:39

Hi Martin

here you may download a screen capture video for "Notification" trouble on my Samsung i9505.... (Custom ROM Carbon KK 4.4.4)

look at how notification is still alive when stop Automagic Service.

Where i'm wrong ?

Regards
Daniele

https://www.dropbox.com/s/se758dmky09cn ... 0.mp4?dl=0
Xiaomi MI 6

Rom Miui 10 EU STABLE

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

Re: How remove "persistant notification"

Post by Martin » 24 Sep 2014 11:07

Hi,

I see what you mean. I could add a feature that removes all Automagic notifications when the service is stopped, but I have to think about possible side effects first.
I don't like the idea to execute a flow when the service is stopped since stopping should not start even more stuff.

Regards,
Martin

Post Reply