Catching Automagic's own persistent notification

Post your questions and help other users.

Moderator: Martin

Post Reply
Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Catching Automagic's own persistent notification

Post by Wibbly » 14 Mar 2018 17:39

I have a flow to snooze the Automagic notification it used to work when the phone boots but now isn't triggered unless I manually stop and restart the Automagic service. Using Oreo 8.1. Anyone know of a fix?

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Catching Automagic's own persistent notification

Post by Desmanto » 15 Mar 2018 05:14

Did the flow get triggered? Check the log for the time. It seems to be the Trigger Automagic Startup didn't work properly. But when you stop/restart the service, it works. The culprit must be something related to the phone doesn't give signal to Automagic on boot.

What phone do you use? Does it have startup manager? MIUI-ish ROM usually has this feature and will block the app from auto start. You need to find the setting which manage the auto start and enable/whitelist for Automagic. Usually it is at permission setting, mobile manager, mobile security, startup manager or similar wording.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Catching Automagic's own persistent notification

Post by Wibbly » 15 Mar 2018 08:11

It triggers from the "Automagic service is running" notification appearing (when it works) - I don't use Automagic startup as a trigger. And it's "Automagic service is running" notification that's snoozed. It used to work. I have a Pixel 2. It's as if there's a race condition when Automagic starts and it doesn't catch its own notification any more, maybe since the latest monthly Oreo security update?

But once Automagic is running after a boot is complete, the flow does trigger if I then stop the Automatic service and then restart it (from within the Automagic menus). So something different seems to be happening at boot time compared to when the flow was reliably triggered at boot time...

Up until now this flow has been effective at hiding the Automagic service notification in the notification shade completely automatically. Now it requires manual intervention to stop/restart the Automagic service whenever the phone is restarted :-(
Attachments
Screenshot_20180315-081237.png
Screenshot_20180315-081237.png (127.01 KiB) Viewed 11168 times
Screenshot_20180315-080946.png
Screenshot_20180315-080946.png (121.28 KiB) Viewed 11168 times

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Catching Automagic's own persistent notification

Post by Desmanto » 15 Mar 2018 13:28

Oh, why don't try to use Automagic startup as trigger instead? But maybe you have to add sleep 2-5 seconds to make sure the notification appear completely, to be snoozed.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Catching Automagic's own persistent notification

Post by Wibbly » 15 Mar 2018 13:35

Ok - I have now created a work-around that seems to work on first testing :-)

I now also trigger the flow using Automagic Startup trigger, and I have added a Notification on Statusbar Displayed condition that looks for the notification (like the one in the Notification on Statusbar Displayed trigger above).

I still don't understand why the original flow broke though....

Post Reply