Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pause/resume downloads in iPhone (iOS)

I have to download large amount of data (anywhere between 300MB - 1GB).

I am currently using **NSURLConnection**to download the data. But, now i am looking at a scenario where the user might loose the internet connection during the download process. Currently i am restarting the entire download process in this scenario, which i think is a very bad way of downloading and a waste of user bandwidth.

Is there a process in which i can manage the downloads with Pause/Resume functionality while downloading.

like image 839
A for Alpha Avatar asked May 02 '12 12:05

A for Alpha


People also ask

Can you resume paused downloads?

All major browsers, including Firefox, Internet Explorer and Chrome, enable you to resume a download from where it left off in case of a lost connection, so your download will pause, but it won't be lost. Once you've restored your connection and browser, you can resume the download.

How do you pause a download on resume Safari?

Pause a download: Click the Stop button to the right of the filename in the downloads list. To resume, click the Resume button . Find a downloaded item on your Mac: Click the magnifying glass next to the filename in the downloads list.


1 Answers

Here's a tutorial of how to do this on IOS.

Also check documentation. This will require your server to support range headers.

like image 134
shoughton123 Avatar answered Nov 10 '22 02:11

shoughton123