KRTirtho / spotube

🎧 Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
https://spotube.krtirtho.dev/
Other
30.34k stars 1.25k forks source link

Android App stopps playing shortly after switching focus to home screen / other app #1560

Open Speedylux opened 5 months ago

Speedylux commented 5 months ago

Is there an existing issue for this?

Current Behavior

Spotube app v.3.7.0 stopps playing when not in focus after about 10 seconds when leaving app and switching to home screen while playlist is playing on android.

Expected Behavior

Android app continues playing while app is running in the background as it used to work in v3.6.0

Steps to reproduce

  1. open the app in v.3.7.0
  2. start playing a song
  3. leave app by pressing home button or opening other application (i.e. browser)
  4. wait 10-15 seconds => active song will stop playing

Operating System

Android 14

Spotube version

v3.7.0

Installation source

GitHub Releases (Binary)

Additional information

Locking phone / turning off screen while spotube is running in front will continue playing.

Self grab

gaetan-hexadog commented 4 months ago

It seems to be fixed with update 3.7.1

Thanks.

Sommergoldhaehnchen commented 4 months ago

Not fixed in v3.7.1 for Android.

Streaming music e.g. with Bluetooth headphones. After one or two songs when the song ends, the next song never starts. Only when I skip the song with the media control button, the next song starts.

ajama-1984 commented 4 months ago

Not fixed in v3.7.1 for Android.

Streaming music e.g. with Bluetooth headphones. After one or two songs when the song ends, the next song never starts. Only when I skip the song with the media control button, the next song starts.

Same issue for me on my Pixel 8 Pro

Sommergoldhaehnchen commented 4 months ago

Not fixed in v3.7.1 for Android.

Streaming music e.g. with Bluetooth headphones. After one or two songs when the song ends, the next song never starts. Only when I skip the song with the media control button, the next song starts.

The hack with manually skipping only works temporarily. After a certain time (maybe 10 minutes) Spotube is completely dropped. You then have to clear cache and wipe Spotube from active processes to make it work again. Currently it's a horror to listen music.

KRTirtho commented 2 months ago

Try with 3.8.0. Now the app is kept alive with the musicc service. So it doesn't go out priority by the OS