title: Download files in background without stopping after 10 minutes in iOS7/iOS8
body: <p>We are working on the music app. The app has possibility to download music files even if the user hides the app but <strong>it works only around 10 minutes and stops</strong>. We read many articles about it, and found out that it is kind of impossible to download constantly if you are not a magazines/ newspapers. <strong>BUT we have lots of customers complains about it</strong>.</p>
  
  <p><strong>Is there any new way to do it in iOS7/iOS8 with using NSURLSession or something else?</strong></p>
  
  <p>Some apps use CoreLocation to get update of the current location and start downloading. but it feels like this is a hack and it is not good for us.   </p>
  
  <p><em>Edited after some comments:</em></p>
  
  <p><strong>Our Download cycle:</strong> we have a queue of tasks to download. each time we start the first in queue from the coredata -> get url from the backend to download the track -> use NSURLConnection to download -> encrypt the file, store and save some info to coredata -> start the next one if any.</p>
  
  <p>So, we don´t know the url to download for e.g. NSURLSessionDownloadTask before the actual start because of secure restrictions  </p>