khushpanchal / Ketch

An Android File downloader library based on WorkManager with pause and resume support.
https://medium.com/@khush.panchal123/ketch-android-file-downloader-library-7369f7b93bd1
395 stars 26 forks source link

timeout problems #18

Closed Wizardeirr closed 3 weeks ago

Wizardeirr commented 1 month ago

When my internet is down all download is going to failure and when internet comes thats not resume. You said i had fixed that. can u help me ?

khushpanchal commented 1 month ago

In case of no internet download will be failed, client need to call retry function in that case.

You can have a connectivity listener and can retry download in case of failure.

Wizardeirr commented 1 month ago

it will cause data useless, for example i will download anything. 200 Mb, i did download 195 m/bs and internet shutdown. User will download retry. Think about that for each device we need to keep 195 mbs and when internet is come we should resume to download

khushpanchal commented 1 month ago

Data will not loss. You will call retry(id) function and download will resume from where it failed.

Suppose user download 200 mb video and download fails after 195 mb, due to any reason, when you call retry function it will resume from 195 mb only.