Notification speak app name - help please

Post your questions and help other users.

Moderator: Martin

Post Reply
dronics
Posts: 7
Joined: 19 Aug 2017 09:57

Notification speak app name - help please

Post by dronics » 22 Oct 2018 14:54

Hi all,
I'm trying to setup a flow that will speak the app name of the notification that is received. I've got a flow to work but I'm getting into issues sometimes where automagic repeats the app name an uncomfortable amount of time. Also, automagic sometimes uses the emergency stop - so I'm clearly doing something wrong or missing something.
I use the following:
Notification on statusbar displayed (select all apps) > Speech Output {app_name}
If I use an app called APKUpdater (which checks apkmirror for newer apks) the flow speaks the app name about 20+ times and usually the emergency stop kicks in. Why is this causing the app name to be spoken so much?
All I could see in the log is the trigger starting and then lots and lots of the Speech Output??

If anyone can help me out it would be much appreciated.
Also, if anyone has done this already and wouldn't mind sharing their flow, that would be great too!

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

Re: Notification speak app name - help please

Post by Desmanto » 23 Oct 2018 06:12

The app create multiple consecutive notifications when checking update. Default execution policy (AEP : viewtopic.php?f=3&t=6985) is parallel, hence it will react to every notification created. You have to protect it by using AEP - skip, add sleep 500 ms (or higher) to skip the duplicate notification.

But this will skip other app notification too if they appear during the check. So you have to use buffered method if you want every app's notif is processed properly. This is similar to sms buffer : viewtopic.php?f=5&t=7019
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.

dronics
Posts: 7
Joined: 19 Aug 2017 09:57

Re: Notification speak app name - help please

Post by dronics » 24 Oct 2018 09:03

Thanks for the information, I will look into this tonight - Thanks you!! :D

Post Reply