I have been using the DownloadManager APIs to handle downloads in one app for about 3 years.
Recently I had some users on Android Pie complaining that sometimes downloads get stuck for several minutes before actually starting, thus compromising the UX: some of them had to reinstall the app to make them work correctly, some others had the issue fixed itself over time.
Please note that I haven't set any special settings to the DownloadManager.Request instances (e.g. allowedNetworkTypes
, setRequiresCharging
, ...).
My understanding of the problem is that requests get stuck in the pending or paused status for a long time before getting started. Didn't notice any significant changes introduced in the SDK 28, although it's not important since I'm targeting API level 27.
Has anyone experienced something similar and came up with some workarounds? Thank you
DownloadManager
not only varies by OS version, but can vary by device manufacturer.DownloadManager
has never been a good choice if the download is time-sensitive. – Nerval