TachibanaGeneralLaboratories / download-navi

Free and Open Source software download manager
GNU General Public License v3.0
812 stars 86 forks source link

[Android 12] Unable to run pending downloads #207

Closed TeaqariaWTF closed 2 years ago

TeaqariaWTF commented 2 years ago

Screenshot_20220105-150747 other files do not resume the download after one download is complete .

proninyaroslav commented 2 years ago

Have you tried a reset of settings?

TeaqariaWTF commented 2 years ago

Have you tried a reset of settings?

yes i tried that it didn't work

proninyaroslav commented 2 years ago

Did you restart the app or device at this moment? To check, I set the maximum number of active downloads to 1. And it works:

Screenshot_1641626424 Screenshot_1641626430

TeaqariaWTF commented 2 years ago

Did you restart the app or device at this moment? To check, I set the maximum number of active downloads to 1. And it works:

Screenshot_1641626424 Screenshot_1641626430

I cleared app data, uninstalled and re-downloaded the app but nothing worked

proninyaroslav commented 2 years ago

Can you take a video with the steps to reproduce the problem?

TeaqariaWTF commented 2 years ago

Sorry for the delay, here's the video link :https://gofile.io/d/6MUYJ1

proninyaroslav commented 2 years ago

No, I meant a video with step by step adding downloads and the moment when they get stuck.

TeaqariaWTF commented 2 years ago

Screenshot_20220118-153753

hence my canceled downloads

TeaqariaWTF commented 2 years ago

I hope it will be enough

https://gofile.io/d/ejOpIM

proninyaroslav commented 2 years ago

Are you using Android 12?

TeaqariaWTF commented 2 years ago

Are you using Android 12?

yes i am using android 12

proninyaroslav commented 2 years ago

Ok, I was able to reproduce this bug in Android 12. As it turns out, Navi can't run/extend itself in the background, this logic was necessary to keep the app running in the background. These are the new restrictions of Android 12 https://developer.android.com/guide/components/foreground-services#background-start-restrictions. We need to figure out how to get around these restrictions or refactor the run logic https://developer.android.com/guide/components/foreground-services#background-start-restriction-exemptions.

TeaqariaWTF commented 2 years ago

Ok, I was able to reproduce this bug in Android 12. As it turns out, Navi can't run/extend itself in the background, this logic was necessary to keep the app running in the background. These are the new restrictions of Android 12 https://developer.android.com/guide/components/foreground-services#background-start-restrictions. We need to figure out how to get around these restrictions or refactor the run logic https://developer.android.com/guide/components/foreground-services#background-start-restriction-exemptions.

I don't know anything about this, I hope there is a way

proninyaroslav commented 2 years ago

Thank you for reporting. This is a serious problem that affects the app work.

TeaqariaWTF commented 2 years ago

Thank you for reporting. This is a serious problem that affects the app work.

Will there be an update soon?

proninyaroslav commented 2 years ago

Currently I'm working on another feature, and I think it will take 1-2 weeks.

TeaqariaWTF commented 2 years ago

Currently I'm working on another feature, and I think it will take 1-2 weeks.

Thank you for your quick response. I will wait for the next update

proninyaroslav commented 2 years ago

I didn't have time to fix it in the current release, please wait.

proninyaroslav commented 2 years ago

@TeaqariaWTF As a temporary workaround, you can disable battery optimization for Navi https://driversnote.helpscoutdocs.com/article/137-android-battery-saving-settings

TeaqariaWTF commented 2 years ago

@TeaqariaWTF As a temporary workaround, you can disable battery optimization for Navi https://driversnote.helpscoutdocs.com/article/137-android-battery-saving-settings

yes, that's how I solved the error, sorry I forgot to inform you

proninyaroslav commented 2 years ago

@TeaqariaWTF If somehow or other I can't get around this problem, then maybe this will be the only solution.

TeaqariaWTF commented 2 years ago

@TeaqariaWTF If somehow or other I can't get around this problem, then maybe this will be the only solution.

When you open the application, it may give a small warning

TeaqariaWTF commented 2 years ago

Screenshot_20220205-230431_ADM there may be a warning screen similar to this

proninyaroslav commented 2 years ago

I decide to show a dialog for the user to disable battery optimization.

TeaqariaWTF commented 2 years ago

Kullanıcının pil optimizasyonunu devre dışı bırakması için bir iletişim kutusu göstermeye karar verdim.

yes it's the right decision, it can be added in the next update