title: Cordova ios app can't load device data
body: <p>I searched a lot about my issue and I tried different solution, but it doesn't work :/</p>
  
  <p>Link what I tried:
  <a href="https://stackoverflow.com/questions/30739473/nsurlsession-nsurlconnection-http-load-failed-on-ios-9">NSURLSession/NSURLConnection HTTP load failed on iOS 9</a></p>
  
  <pre><code>2016-06-24 10:51:56.760 &lt;App Name&gt;[1817:1004680] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>After adding the lines below:</p>
  
  <pre><code>&lt;key&gt;NSAppTransportSecurity&lt;/key&gt;
   &lt;dict&gt;
     &lt;key&gt;NSAllowsArbitraryLoads&lt;/key&gt;
     &lt;true/&gt;
   &lt;/dict&gt;
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
  </code></pre>
  
  <p>But when I follow the introduction of <a href="https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW33" rel="nofollow noreferrer">developer apple</a> everything should be fine:</p>
  
  <p><a href="https://i.stack.imgur.com/4bOoQ.png" rel="nofollow noreferrer">nscurl --ats-diagnostics --verbose</a> result</p>