title: NSURLSession/NSURLConnection HTTP load failed on device 9.0
body: <p>I'm developing an app using cordova/ionic, but since the iOS 9 update i'm unable to deploy to a device. My app works on an emulator but i keep getting the same error when i deploy to a device whatever i try. I am aware that there are a ton of posts concerning this problem, but none have been able to solve my problem.</p>
  
  <p>Is there anybody who experiences the same problem using the same platform (ionic/cordova).</p>
  
  <p>This is how my .plist looks like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
  &lt;plist version="1.0"&gt;
    &lt;dict&gt;
      &lt;key&gt;CFBundleDevelopmentRegion&lt;/key&gt;
      &lt;string&gt;English&lt;/string&gt;
      &lt;key&gt;CFBundleDisplayName&lt;/key&gt;
      &lt;string&gt;${PRODUCT_NAME}&lt;/string&gt;
      &lt;key&gt;CFBundleExecutable&lt;/key&gt;
      &lt;string&gt;${EXECUTABLE_NAME}&lt;/string&gt;
      &lt;key&gt;CFBundleIcons&lt;/key&gt;
      &lt;dict/&gt;
      &lt;key&gt;CFBundleIcons~ipad&lt;/key&gt;
      &lt;dict/&gt;
      &lt;key&gt;CFBundleIdentifier&lt;/key&gt;
      &lt;string&gt;io.cordova.myappff160c&lt;/string&gt;
      &lt;key&gt;CFBundleInfoDictionaryVersion&lt;/key&gt;
      &lt;string&gt;6.0&lt;/string&gt;
      &lt;key&gt;CFBundleName&lt;/key&gt;
      &lt;string&gt;${PRODUCT_NAME}&lt;/string&gt;
      &lt;key&gt;CFBundlePackageType&lt;/key&gt;
      &lt;string&gt;APPL&lt;/string&gt;
      &lt;key&gt;CFBundleShortVersionString&lt;/key&gt;
      &lt;string&gt;1.0.6&lt;/string&gt;
      &lt;key&gt;CFBundleSignature&lt;/key&gt;
      &lt;string&gt;????&lt;/string&gt;
      &lt;key&gt;CFBundleVersion&lt;/key&gt;
      &lt;string&gt;1.0.6&lt;/string&gt;
      &lt;key&gt;LSRequiresIPhoneOS&lt;/key&gt;
      &lt;true/&gt;
      &lt;key&gt;NSMainNibFile&lt;/key&gt;
      &lt;string/&gt;
      &lt;key&gt;NSMainNibFile~ipad&lt;/key&gt;
      &lt;string/&gt;
      &lt;key&gt;UISupportedInterfaceOrientations&lt;/key&gt;
      &lt;array&gt;
        &lt;string&gt;UIInterfaceOrientationPortrait&lt;/string&gt;
        &lt;string&gt;UIInterfaceOrientationPortraitUpsideDown&lt;/string&gt;
      &lt;/array&gt;
      &lt;key&gt;UISupportedInterfaceOrientations~ipad&lt;/key&gt;
      &lt;array&gt;
        &lt;string&gt;UIInterfaceOrientationPortrait&lt;/string&gt;
        &lt;string&gt;UIInterfaceOrientationPortraitUpsideDown&lt;/string&gt;
      &lt;/array&gt;
      &lt;key&gt;UIRequiresFullScreen&lt;/key&gt;
      &lt;true/&gt;
      &lt;key&gt;NSAppTransportSecurity&lt;/key&gt;
      &lt;dict&gt;
        &lt;key&gt;NSAllowsArbitraryLoads&lt;/key&gt;
        &lt;true/&gt;
        &lt;key&gt;NSExceptionDomains&lt;/key&gt;
        &lt;dict&gt;
          &lt;key&gt;m.facebook.com&lt;/key&gt;
          &lt;dict/&gt;
          &lt;key&gt;graph.facebook.com&lt;/key&gt;
          &lt;dict/&gt;
          &lt;key&gt;api.facebook.com&lt;/key&gt;
          &lt;dict/&gt;
          &lt;key&gt;fbcdn.net&lt;/key&gt;
          &lt;dict&gt;
            &lt;key&gt;NSIncludesSubdomains&lt;/key&gt;
            &lt;true/&gt;
          &lt;/dict&gt;
          &lt;key&gt;akamaihd.net&lt;/key&gt;
          &lt;dict&gt;
            &lt;key&gt;NSIncludesSubdomains&lt;/key&gt;
            &lt;true/&gt;
          &lt;/dict&gt;
        &lt;/dict&gt;
      &lt;/dict&gt;
      &lt;key&gt;UIInterfaceOrientation&lt;/key&gt;
      &lt;array&gt;
        &lt;string&gt;UIInterfaceOrientationPortrait&lt;/string&gt;
      &lt;/array&gt;
      &lt;key&gt;FacebookAppID&lt;/key&gt;
      &lt;string&gt;xxxxxxxxxxxxxx&lt;/string&gt;
      &lt;key&gt;FacebookDisplayName&lt;/key&gt;
      &lt;string&gt;Birdy.life&lt;/string&gt;
      &lt;key&gt;CFBundleURLTypes&lt;/key&gt;
      &lt;array&gt;
        &lt;dict&gt;
          &lt;key&gt;CFBundleURLSchemes&lt;/key&gt;
          &lt;array&gt;
            &lt;string&gt;fb1074874362552202&lt;/string&gt;
          &lt;/array&gt;
        &lt;/dict&gt;
      &lt;/array&gt;
      &lt;key&gt;NSLocationWhenInUseUsageDescription&lt;/key&gt;
      &lt;string/&gt;
      &lt;key&gt;UIBackgroundModes&lt;/key&gt;
      &lt;array&gt;
        &lt;string&gt;remote-notification&lt;/string&gt;
      &lt;/array&gt;
    &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>
  
  <p>And this is the output that i am getting when deploying to a device:</p>
  
  <pre><code>2016-05-30 17:31:53.465 Birdy[1102:584334] Apache Cordova native platform version 4.1.1 is starting.
  
  2016-05-30 17:31:53.468 Birdy[1102:584334] Multi-tasking -&gt; Device: YES, App: YES
  
  2016-05-30 17:31:53.576 Birdy[1102:584334] Using UIWebView
  
  2016-05-30 17:31:53.581 Birdy[1102:584334] [CDVTimer][handleopenurl] 0.264049ms
  
  2016-05-30 17:31:53.588 Birdy[1102:584334] Unlimited access to network resources
  
  2016-05-30 17:31:53.590 Birdy[1102:584334] [CDVTimer][intentandnavigationfilter] 7.857978ms
  
  2016-05-30 17:31:53.591 Birdy[1102:584334] [CDVTimer][gesturehandler] 0.279963ms
  
  2016-05-30 17:31:53.592 Birdy[1102:584334] Starting Facebook Connect plugin
  
  2016-05-30 17:31:53.593 Birdy[1102:584334] [CDVTimer][facebookconnectplugin] 1.308978ms
  
  2016-05-30 17:31:53.626 Birdy[1102:584334] [CDVTimer][splashscreen] 32.754004ms
  
  2016-05-30 17:31:53.663 Birdy[1102:584334] [CDVTimer][localstorage] 35.548985ms
  
  2016-05-30 17:31:53.664 Birdy[1102:584334] [CDVTimer][TotalPluginStartup] 84.178030ms
  
  2016-05-30 17:31:53.973 Birdy[1102:584334] Resetting plugins due to page load.
  
  2016-05-30 17:31:55.337 Birdy[1102:584398] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
  
  2016-05-30 17:31:55.340 Birdy[1102:584398] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
  
  2016-05-30 17:31:55.448 Birdy[1102:584398] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
  
  2016-05-30 17:31:55.711 Birdy[1102:584334] Finished load of: file:///var/containers/Bundle/Application/F5E4D8B5-7A45-4DA7-B7CE-CFC12DB7A5FF/Birdy.app/www/index.html#/public/home
  
  2016-05-30 17:31:56.066 Birdy[1102:584392] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
  
  2016-05-30 17:31:56.126 Birdy[1102:584392] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
  
  2016-05-30 17:31:58.309 Birdy[1102:584398] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
  </code></pre>
  
  <p>The only thing i see is the splashscreen, and that's about it. Am i missing something or looking past it?</p>