badaix / snapdroid

Snapcast client for Android
GNU General Public License v3.0
124 stars 25 forks source link

question: intent for tasker #34

Closed jimydirektsaft closed 2 years ago

jimydirektsaft commented 3 years ago

Hi! I'd like to toggle pause/play through an intent by using Tasker. If this is possible could you please tell me which intent I can use?

Thank you

stijnvdb88 commented 3 years ago

Hi! if the above PR gets merged in, you should be able to use that to achieve what you're asking for :)

When adding the intent in Tasker (System -> Send Intent), use these settings:

Start:

Stop:

On some phones (my OnePlus3 is one of them) this might still not work unless the snapcast app is already running in the background. That means that something is blocking it from starting by itself (depending on what phone you have it could be some stock app). In my case the solution was to go into the phone's battery settings and disabling optimization for Snapcast ("don't optimize").

Chreece commented 2 years ago

V. 0.24.0.0 Snapdroid Android 12 Samsung Flip3

Neither of the actions work

Tried also disabling battery optimizations and with the app running in background.

StaleLoafOfBread commented 2 years ago

I came across this issue tracker while googling how to control snapdroid via tasker.

@Chreece you need to download a newer version of snapdroid. I'm not sure if this made it into v0.25.0.0 but I did successfully use it with my OnePlus 7pro. I already had disabled battery optimization and it worked when it was already closed. Though the play / stop icon in app did not update.

This was on v0.26.0.0 which I got from the actions artifacts. https://github.com/badaix/snapdroid/suites/5195143335/artifacts/158372819

I'm not sure why the Google play store version is still at v0.24.0.0.