[BUG] Downloads stop too easily (after 0.6.2?)
Describe the bug First of all, thank you a lot for Droid-ify, I have been using it for quite a while, and it has been a pleasant experience.
But since a few versions (I think it started from version 0.6.2 at least) any long downloads on a slow connection fails when the app is not in the foreground. It happens mostly when there are queued update downloads, even if there is a download notification going on and I have removed the app from the battery optimization list.
To Reproduce Steps to reproduce the behavior:
- Go to Updates
- Start the update for some apps
- Go to home screen, or another app
- Wait for a while (or lock the screen)
- Most of the times the download will stop if the connection is slow (from Divest repo, for instance)
Expected behavior Even if the download is slow or it disconnects, the app should retry it a few times before failing, even when the app is not in the foreground.
Screenshots N/A
Smartphone (please complete the following information):
- Device: MotoG8 (RAV/Sofiar)
- OS: Android 11
- Version: 0.6.3
Additional context Again, it does not happen all the time. It seems to happen a lot with slow connections and big apps, like the Mulch Webview from DivestOS, in my case. Right now I have a slow connection, but the main problem is that it seems that it does not happen if I keep the app open in the foreground.
Thanks again. Please feel free to ask for more info.
Regards
Have you allowed "Ignore Battery Optimization"?
Thank you for your quick reply. I am not sure if I have granted the permission when I first installed the app or in the app settings, but I think the final result would be the same, right? Is there a way to make it request the permission again after it was configured?
Yes, this is perfectly set up
I will try this on my own device and revert back
I have the same issue, sometimes my wifi is only 400kbs or less and it falls to download even a 5mb file. I can't say it it's the app, repository or Android itself. But some days i have multiple files that i just cannot up date because the download fails. Usually with an error something like"unable to complete action" (i forget right now) Or i get a "failed to verify download" quite often. Or no error at all
Happens sporadically on most of my devices Pixel 6 a12 Pixel 8pro a14 Black view a9
@nutpantz @LFd3v still present?
Marking this issue as stale. It will be closed if there is no reply within 48h0m0s.
Testing my script
Still happens with .66 for me.
Any patterns you may have noticed which can help me narrow down the issue?
I have tried 100kbps for 20mb apps and it worked fine on my device, but maybe done me findings
Honestly no. It could be any package on any server at any time for unknown reasons. It happens on Wi-Fi and 5g. Sometimes happens to the same upgrade for over 10 minutes. Happens on all my devices. I wish i could be more helpful.
Seems like I need to add logs in the app and ask users to share them when needed. But I don't like the idea of it, might alarm done users
As someone who likes to help out the open source community i always like to see log options in apps.
I will look into this
Hi, there. I still experience this on the latest version of Droid-ify (v.0.6.6) on Android 11. It is a device with a custom ROM (Havoc-OS), Snapdragon 665 and 4GB of RAM. Some remarks:
- It happens when there are many updates going on, you leave the app (but do not close it) while there is a download;
- It seems that the download breaks when the current app being downloaded is installed, but not always, sometimes I get the notification about the update being unsuccessful (download stopped) for long downloads, like Joplin, Jami or Fennec;
- It seems that it is related somehow to how Android manages background downloads, because it happens even with small downloads while Droid-ify is in the background.
Regards