Spotube music stops in the background
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
the music stops in the background after the end of one or two songs even when i disable background restrictions for the app
Expected Behavior
I expected to be able to continue listening to music without it stopping
Steps to reproduce
- I opened the app
- I started some music
- I started playing a game
- After 1 or 2 song the music stopped playing on the background.
Operating System
Android
Spotube version
3.5.0
Installation source
F-Droid (Android)
Additional information
No response
Self grab
- [ ] I'm ready to work on this issue!
Potential duplicates:
- [#1348] The Music Stops (70%)
This most likely occurred because of samsungs killing of apps running in the foreground, assuming you have a android phone from the manufacturer samsung. Possible fixes to this could be to check out "Dont Kill My App!".
But it still could be a client sided issue, and if thats the case I wont be able to help any further.
Like the other person mentioned, it can be a problem of the ROM not the app. Sometimes ROM may be killing processes having battery life in mind. It may also be because you started playing a game. If a game is heavy in hardware requirements ROM may kill the processes running in the background to satisfy the needs of the processes on the first plan, thinking that it's optimalizing the experience, rather than restricting it.
Something worth trying is checking in the settings whether you can disable "battery optimalization" of that specific app. If the problem persists, then it may be at fault of ROM or Spotube as well. If you already tried that, then it would be helpful if you'd mention that in the issue report.
I believe I have had the same issue. I don't think its as much a ROM thing though because it seems to happen unpredictably. Sometimes it plays for longer in the background, and sometimes it stops after just one or two songs.
I am having a similar issue I am on a Moto G 5G, it plays through just fine through one song and then gets to the next song skips to the very end and then stop playing,
Same issue on pixel 5 graphene OS with background usage allowed for the app, and graphene exploit hardening disabled.
I had the same issue. Although I haven't tried what is suggested above about battery optimization but i would say that it shouldn't happen at all. If anything, we can just compare it with the Spotify app which never shows this behaviour. I also got one more issue after playing this which was not able to hear the song after the resume at all. Attaching a video for details.
https://github.com/KRTirtho/spotube/assets/43692609/5336b72d-baa4-4291-a17c-f2605d03147d
I'm not 100% sure I've got the same problem, but it looks a bit similar. I'm on v3.5.0 on Android. I can play music without any issue while I'm using my phone, even if spotube is in the background. But when the phone gets into the lock screen, the sound that was playing keep playing, but as soon as it is over, I don't have music anymore. I see from the lock screen that songs are jumping from on to the other, but to add to the weirdness, jumping from the last seconds of each song. But no sound at all.
same Problem with AXP.OS (DivestOS) on Pixel 4a (LOS 20)
I have a similar problem on Android 14 (latest CalyxOS on my Pixel 5) with Spotube 3.7.0, except that the music stops after 5 to 10 seconds (it's a bit random). Same, only when Spotube is on backgroud (like, when I use another app or go to the homescreen). If I keep the app foreground and just lock the screen, it works fine.
It seems fixed for me in 3.7.1. This morning it wasn't working, I upgraded this afternoon and now, I don't have this issue anymore.
It seems fixed for me in 3.7.1.
Not fixed in v3.7.1! 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.