-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am not able to continue playing when the app is swiped away. #1507
Comments
If you add logging, do you see control flow entering the If you don't see control flow entering that |
I added the following logs in the
When I close the application while the media is playing, the control flow never enters the In
Logcat shows this error when I press play:
When I remove the app from recents while playing and then I reopen and press play again, I get these in logcat
I added a screen recording for reference. PlayService_error.mp4 |
Please can you capture an |
dumpstate-2024-07-02-17-08-51.zip I've attached a zip file of the report. Thanks for the help! |
This line from the BR makes it look like your service crashed (but I can't see any stack trace or similar before that to indicate what would have caused the crash):
Looking elsewhere, it also seems like the service is stopped ~2s before that:
And then the same restart is logged:
I noticed the BR is from a Samsung A51. Does the same issue reproduce on a Pixel device or an emulator created from Android Studio? I wonder if your service is being killed by some background battery saving logic added by Samsung: https://www.samsung.com/us/support/troubleshoot/TSG10001536 |
I followed the steps in the link you provided, specifically #2 I had the app installed on the phone long ago and just came back to work on it. The device has a setting that puts unused apps to sleep which caused the service to stop. Thanks for the help! |
Great, glad you got it sorted. |
I am not able to continue playing when the app is swiped away.
My service looks like this:
My MainAcitivty:
Whenever I close the app, playback stops, and the notification disappears. How do I keep the player running in the background?
Originally posted by @colorgold in #389 (comment)
The text was updated successfully, but these errors were encountered: