title: Ajax call on phonegap not sending request
body: <p>I am pulling my hair out on this one.</p>
  
  <p>I have a jquery ajax call to my server that works on my browser, it works on my device when I have it connected to my local proxy for http sniffing, but just hangs when it's off my proxy on the wifi or on the cell network.</p>
  
  <p>I've set up the phonegap config.xml to allow my domain.  The request is a get on the server as well as the ajax call. You'll notice it's jsonP.  </p>
  
  <p>The call is straight forward jquery, I'll post the code anyway.  The <em>api</em> object is a custom object I made to hold the application's functionality.</p>
  
  <pre><code>var dfd = $.ajax({
      url: myurl, // I've confirmed the url, but prefer to keep it private
      data: {
          ApplicationID: api.applicationID,
          DeviceID: api.device.uuid(),
          OSVersion: api.device.version(),
          DeviceVersion: api.device.platform(),
          Lat: lat,
          Lng: lng,
          Bearing: bearing
      },
      dataType: "jsonp",
      timeout: 30000
  })
  .fail(function (event, jqXHR, ajaxSettings, thrownError) {
      console.error(jqXHR);
  });
  </code></pre>
  
  <p>I've tried this answer, the closest I could find to my problem, but it doesn't seem to work.
  <a href="https://stackoverflow.com/questions/8924482/phonegap-jquery-ajax-request-does-not-work">Phonegap jQuery ajax request does not work</a></p>
  
  <p>Is there something I'm missing?  What am I doing wrong?</p>
  
  <p><strong>EDIT:</strong>
  I forgot to mention, the timeout I have set on the ajax call does nothing, it just seems to ignore it.</p>