We are building a Tizen web app but this should be relevant to native apps or .NET apps as well.
We download files using:
var downloadRequest = new tizen.DownloadRequest(url, path);|
var downloadId = tizen.download.start(downloadRequest, downloadListener);|
Due to poor internet connectivity at some sites the downloads can fail to complete. If you run the same code on the same download file it does not resume the download but starts at 0. On a poor internet connection the restarts could consume huge amounts of data due to the large size of the files. On a mobile capped connection this can cause large bills and/or blocked connections due to hitting the cap.
There is a .resume function but it’s purpose is to resume user paused downloads. It does not function as a resumable download function.
My question is, how do I resume a failed download from the last position?