title: Ionic - HTTP POST request not working on native Android but working on Ionic Devapp
body: <p>I'm trying to make a post request using the ionic native HTTP module in my ionic app. When I run the app using Ionic DevApp, the request works and the app works fine. When I use <code>ionic cordova run android --device</code> to build and run the app natively on my device, the http request is failing.</p>
  
  <p>I've been trying a bunch of options listed in other stack overflow questions. I've installed <code>cordova-plugin-whitelist</code> and modified my config.xml to include all different types of access orgin and allow navigations. I also made sure my Android Manifest has:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
  </code></pre>
  
  <p>I'm at a loss for what else I can try and I figured this is not a CORS issue with the API since the request is working perfectly when I use <code>ionic serve -c</code> to run it through the Ionic DevApp.</p>
  
  <p>Just for reference, my API request looks like:</p>
  
  <pre><code> var headers = {}
   this.http.setDataSerializer('json')
   return this.http.post(API_URL, send_data, {headers: headers})
    .then(data =&gt; {
   ...
   }
  </code></pre>
  
  <p>In my <code>config.xml</code> file I've included:</p>
  
  <pre><code>&lt;access origin="*" /&gt;
  &lt;access origin="*" subdomains="true" /&gt;
  &lt;allow-navigation href="http://*/*" /&gt;
  &lt;allow-navigation href="https://*/*" /&gt;
  &lt;allow-navigation href="localhost:8080" /&gt;
  &lt;allow-navigation href="data:*" /&gt;
  &lt;allow-intent href="http://*/*" /&gt;
  &lt;allow-intent href="localhost:8080" /&gt;
  </code></pre>
  
  <p>Any guidance would be greatly appreciated, this has been a huge time drain and the frustrating thing is the app is fully functional and succesfully making the http post request from the Ionic DevApp. Thanks.</p>