You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We have recently introduced the DownloadManager to download ZIM files in our application but in some devices e.g. Redmi Note 9, and Google Pixel 6 Pro if we pause the download and try to resume it. The download is always stuck in a pending state. This makes the download pause/resume functionality not reliable for all devices. This issue arises because the DownloadManager no longer has a built-in pause/resume feature. While there is still code for pausing downloads in the DownloadManager (see here https://android.googlesource.com/platform/frameworks/base/+/HEAD/core/java/android/app/DownloadManager.java#1833), it doesn't function consistently. There is only this way to resume the download which we had implemented. A user facing this issue on his device #4138.
Also, when there is some network fluctuation in the network DownloadManager immediately pauses the ongoing download, and resumes the download based on their retry mechanism. However, the network fluctuation occurs for a millisecond it still pauses the download see #4138 (comment), but it should at least wait for a few milliseconds before pausing the download since there can be network throttling for some second.
Expected behavior
We should implement our own Downloading mechanism so that we have more control over this downloading functionality.
On a positive note, the Fetch library is now back and has been updated to support Android 15 (https://github.com/tonyofrancis/Fetch/releases,). They have resumed active development, which makes it a viable option for us to consider for our downloading implementation.
Environment
Version of Kiwix Android : 3.12.0
The text was updated successfully, but these errors were encountered:
Describe the bug
We have recently introduced the
DownloadManager
to download ZIM files in our application but in some devices e.g.Redmi Note 9
, andGoogle Pixel 6 Pro
if we pause the download and try to resume it. The download is always stuck in a pending state. This makes the download pause/resume functionality not reliable for all devices. This issue arises because the DownloadManager no longer has a built-in pause/resume feature. While there is still code for pausing downloads in the DownloadManager (see here https://android.googlesource.com/platform/frameworks/base/+/HEAD/core/java/android/app/DownloadManager.java#1833), it doesn't function consistently. There is only this way to resume the download which we had implemented. A user facing this issue on his device #4138.Also, when there is some network fluctuation in the network
DownloadManager
immediately pauses the ongoing download, and resumes the download based on their retry mechanism. However, the network fluctuation occurs for a millisecond it still pauses the download see #4138 (comment), but it should at least wait for a few milliseconds before pausing the download since there can be network throttling for some second.Expected behavior
We should implement our own Downloading mechanism so that we have more control over this downloading functionality.
On a positive note, the Fetch library is now back and has been updated to support Android 15 (https://github.com/tonyofrancis/Fetch/releases,). They have resumed active development, which makes it a viable option for us to consider for our downloading implementation.
Environment
The text was updated successfully, but these errors were encountered: