-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Not allowed to start service, app is in background #7306
Labels
Comments
I think |
ojw28
added a commit
that referenced
this issue
May 1, 2020
Issue: #7306 PiperOrigin-RevId: 309392633
Thanks! |
Also facing this issue - thanks for fixing. Not to rush you guys or anything, but by any chance is there a planned ETA for this to make it into a release? |
It should be in 2.11.5, which will hopefully go out sometime next week. |
ojw28
added a commit
that referenced
this issue
May 28, 2020
Issue: #7306 PiperOrigin-RevId: 309392633
andrewlewis
pushed a commit
that referenced
this issue
Jun 1, 2020
Issue: #7306 PiperOrigin-RevId: 309392633
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[REQUIRED] Issue description
When disable foreground service, DownloadService restarting will trigger IllegalStateException, since app is in background, invoking startService is not permitted.
[REQUIRED] Reproduction steps
[REQUIRED] Link to test content
None
A full bug report captured from the device
[REQUIRED] Version of ExoPlayer being used
2.11.4
[REQUIRED] Device(s) and version(s) of Android being used
ONEPLUS A6000
Suggests
Can you wrap restartService()'s code in DownloadService.java with catching IllegalStateException to prevent from start-service-in-background crash, like below:
The text was updated successfully, but these errors were encountered: