Resumable download of large files (iOS and Android)

I need to download large files from a web server and have been looking at using network.download() or possibly network.request() for this purpose.

Because much of the user base will be in areas that have poor or intermittent network coverage, I would like to improve robustness of the download process by allowing for resuming download from where it left off if the network drops out.

From the documentation neither network.download or network.request functions seem to support this directly, but is there a way that I can use either of these functions to achieve what I’m looking for? If not, is there another technique I can use?

My app will eventually be for both iOS and Android, but for now I am developing the iOS version first. Therefore, I am ok with having to use a different solution for each platform if there is not an easy solution that covers both platforms.

I would prefer not to have to write a plugin using native code if possible as I don’t currently have an Enterprise subscription for Corona.
 

Most managers will do this by manipulating the “Range” http header, perhaps even “chunking” up the file and downloading 64k “chunks” at a time and then assembling them once the last chunk is downloaded.

Most managers will do this by manipulating the “Range” http header, perhaps even “chunking” up the file and downloading 64k “chunks” at a time and then assembling them once the last chunk is downloaded.