I'm trying to find a reliable way to pause/stop Pandora through Tasker and it's driving me batty.
Media Controls -> Pause -> Simulate Media Button works. The issue with it is that it doesn't work in a reliable timeframe. Sometimes it works within a second. Other times, it takes up to 2 minutes. I don't think Tasker is delaying the simulate button , I think Pandora is taking it's sweet time to process it, because if I pause Pandora manually, then it will eventually unpause, as though I sent a Toggle Pause instead of a Pause. If Pandora is already paused and the task triggers, it never unpauses, so that says to me that Pandora is receiving the button, but not immediately processing it.
Using a shell command to issue 'kill com.pandora.android' as root hotboots my phone, so that's out, and while Kill App -> Pandora works to stop the music, it leaves Pandora in a weird, half-running state where it's not actually running, but it still shows up in the notification shade.
Has anyone had any good experience with using the two together?