title: Send local notification when download completes through NSURLSession / NSURLSessionDownloadTask
body: <p>I am using <code>NSURLSessionDownloadTask</code> objects on an <code>NSURLSession</code> to allow users to download documents while the app is in the background / device locked. I also want to inform the user that individual downloads have finished through a local notification.</p>
  
  <p>To that end, I am triggering a local notification in the <code>-URLSession:downloadTask:didFinishDownloadingToURL:</code> download task delegate method, however I am wondering if there might be a better place to add the code triggering a notification, since the way Apple explains it, the download task will be passed to the system, and from that I am deriving that those delegates will not be called anymore on the download task's delegate once (or shortly after) the app is backgrounded.</p>
  
  <p><strong>My question:</strong> What is the best place to add the code for triggering the local notifications? Has anybody had any previous experience in adding this sort of a functionality to their application?</p>