Trying to Kill Waze and Android Auto. Possible?

WJF54

New member
Hi -

I'm new to MacroDroid and not all that savvy at 'if-then-else' statements. Still, I've been able to create a few macros successfully and modify a few of the templates that folks have so graciously shared, to suit my needs.

I currently have a macro set up to do a variety of things when my phone (a non-rooted, Note 10+ running Android 11) connects to my car's bluetooth, and then reverse those actions when the phone disconnects. It's working nicely except for one thing ...

When the phone disconnects from the car's bluetooth, I would love it if I could somehow automate the process of turning off or killing both Waze and the Android Auto app - which is almost always the foreground app when the phone disconnects. I thought that perhaps if I 'launched the home-screen' as an action near the end of the sequence and then followed that with the 'kill all background apps', that maybe that might do the trick. But when I check both the notification tray and the recently used apps on my phone, both Waze and Android Auto (and actually everything else) is still there.

Any thoughts on how I might solve this or should I resign myself to continuing to manually close these whenever I arrive at my destination?

Thanks so much for taking time to read this!! Looking forward to your replies! :)
 

WJF54

New member
You might get an acceptable result by using the Show Recent Apps action, followed by a short Wait and then UI Interaction to press the 'Close all' button.
That was it!! Almost ...

I did as you suggested and sure enough ... Waze (and all the other background apps) got killed off as I'd hoped. Android-Auto, persistent thing that it is, took one more step. I had to add an additional 'notification action' to click the notification from Android Auto that said 'Driving app is running. Tap to end driving app'. Once I did that and tested the macro, everything worked exactly as I had hoped!

THANK YOU SO MUCH for pointing me in the right direction!! I really appreciate it!!
 
Top