• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Triggering when Receiving Sound From an App? (Auto-switch to Maps during Turn-by-Turn Directions)

As the title says. I can't find a trigger for an app sending a short audio focus change.

Example:
I am running google maps navigation and listening to music, the music player is open, navigation running in background. When I reach a waypoint, Google Maps will speak the directions, but the music player stays open. I want to write a task to automatically switch over to google maps when that happens. Problem is, I can't find a trigger for this action.

I found the "notification" trigger, problem with that is, google maps doesn't send a new notification during each turn-by-turn instruction, so that's not working either.

Any help/insight would be appreciated, thanks in advance
 
According to the help, "if the notification is a duplicate of one still in the status bar, it will still trigger the event."

Since the notification is updated for every waypoint, there's a chance that the event will be triggered for every waypoint as well.

I can't test it myself at the minute but you should give it a chance (unless you've done it already).

An alternative is to switch your music player. I could be wrong but I think the Google Play Music app is paused (or the volume is lowered) when you get audio directions.


Sorry for the series of assumptions... :)
 
According to the help, "if the notification is a duplicate of one still in the status bar, it will still trigger the event."

Since the notification is updated for every waypoint, there's a chance that the event will be triggered for every waypoint as well.

I can't test it myself at the minute but you should give it a chance (unless you've done it already).

Thanks for the suggestion, it did not work though. I tried it with other apps (sent myself a text message and it triggered just fine), but it seems like google maps notification is a bit different.

An alternative is to switch your music player. I could be wrong but I think the Google Play Music app is paused (or the volume is lowered) when you get audio directions.

Right, Pandora and Google Play Music will already do that. I'm not trying to accomplish lowering the volume. I want tasker to switch to Google Maps (the display) so I can visually see the actual next waypoint (not just hear it) if I originally had the music player open.

Hope that makes sense!
 
I tested something driving back from work.
I set up Tasker so the Maps notifications wound launch Maps, sending it to the foreground.

But the updated notification would not trigger the event.

Now I don't think you're going to be able to do what you want... :(
 
I tested something driving back from work.
I set up Tasker so the Maps notifications wound launch Maps, sending it to the foreground.

But the updated notification would not trigger the event.

Now I don't think you're going to be able to do what you want... :(

Yup I tried it as well, did not work. I believe I have to figure out how to use the "intent received" trigger, but I've tried and failed. It's a pretty advanced trigger and I'm not sure how to use it correctly
 
Back
Top Bottom