Downloads stuck if app is force closed
Open
@tianyif is already working on this.
Since Nov 22, 2023.
needs triage
question
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
I've managed to repro this with the horologist app, for instance, and it also happens with my own app:
If I start a couple downloads, and force stop the app before they finish (either with adb force stop or in the Android task manager), the downloads wont resume when the app is restarted.
I know this is due to the DownloadService not being started, because once I start another download those pending downloads start downloading again. I can start the service manually with:
DownloadService.start(context, SxmDownloadService::class.java)
But is this the right way to achieve what i need? or should i be calling resumeDownloads?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.