title: Implementing long running tasks in background IOS
body: <p>I have been working on an app in which user can record video using <code>AVFoundation</code> and send to the server, video has maximum size up to 15M, depending on the internet speed &amp; type it can take from 1 to 5 minutes approximately to transfer video to the server. I am transferring the recorded video to the server in the background thread so that user can continue other stuff on the app while video is being uploaded to the server. </p>
  
  <p>While reading the Apple Docs for <a href="http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html" rel="noreferrer">implementing long running tasks in backround</a>, I see that only few kinds of apps are allowed to execute in the background.<br>
  e.g.</p>
  
  <blockquote>
    <p>audio—The app plays audible content to the user while in the background. (This content includes streaming audio or video content using AirPlay.) </p>
  </blockquote>
  
  <p>Does it qualify my app also for running the tasks in the background? or I need to transfer the video on the main thread?</p>