title: NSURLSession with background configuration and app killed by user
body: <p><strong>This is the scenario:</strong></p>
  
  <ul>
  <li>NSURLSession with background Configuration</li>
  <li>Download or upload task start with Bad or No Internet Connection.</li>
  <li>User close the App.</li>
  <li>If iOS get Internet Connection will star session task. However,</li>
  <li>With task still waiting for Internet.</li>
  <li>User kills the App</li>
  <li>System cancel all pending tasks</li>
  </ul>
  
  <p><strong>The Question</strong></p>
  
  <p>It is possible to know when the user opens the app again that the tasks were cancelled? </p>
  
  <p>If yes, where?</p>
  
  <hr>
  
  <p><a href="https://stackoverflow.com/a/20357307/1381708">This Answer</a> says yes, it is possible, but I can not get any callback returning me an error.</p>
  
  <p>I'm using Alamofire to handle all my Networking calls. However, I doubt that Alamofire will change the behavior.</p>
  
  <hr>
  
  <p><strong>Edit 1</strong></p>
  
  <pre><code>/// Networking manager with Background Session Configuration
  static var backgroundManager: Alamofire.Manager = {
  
      let configuration = NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier("com.xxx.NetworkingManager.Identifier")
      configuration.HTTPAdditionalHeaders = Manager.defaultHTTPHeaders
  
      let backgroundManager = Alamofire.Manager(configuration: configuration)
  return backgroundManager
  }()
  </code></pre>