title: cordova-plugin-whitelist not working when using Phonegap build
body: <p>I'm having an issue where the whitelist plugin won't work for Android, which causes every AJAX call to return a 404, this breaks my app since I can't connect to my backend server. iOS works fine because it doesn't require this plugin, if I check the plugins list in <a href="http://build.phonegap.com" rel="nofollow noreferrer">http://build.phonegap.com</a> it does appear, what could be happening here?</p>
  
  <p>Here's my config.xml (this project uses XDK by the way, so my config.xml is built by it:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:android="http://schemas.android.com/apk/res/android" android-versionCode="7" ios-CFBundleVersion="7" version="1.0.7" id="com.project.app"  &gt;
  &lt;!-- This file was generated by the Intel XDK Cordova Package Build tool. --&gt;
  &lt;name&gt;PROJECT NAME&lt;/name&gt;
  &lt;description&gt;PROJECT DESCRIPTION&lt;/description&gt;
  &lt;author&gt;COMPANY&lt;/author&gt;
  &lt;content src="index.html"/&gt;
  &lt;preference name="android-build-tool" value="gradle" /&gt;
  &lt;platform name="android" &gt;
      &lt;allow-intent href="tel:*"/&gt;
      &lt;allow-intent href="geo:*"/&gt;
      &lt;allow-intent href="mailto:*"/&gt;
      &lt;allow-intent href="http://app.project.com/"/&gt;
      &lt;allow-intent href="maps:*"/&gt;
      &lt;allow-intent href="http://maps.google.com/"/&gt;
      &lt;access origin="*"/&gt;
      &lt;access origin="http://app.project.com/"/&gt;
      &lt;access origin="tel:*"/&gt;
  &lt;/platform&gt;
  &lt;platform name="ios" &gt;
      &lt;allow-intent href="tel:*"/&gt;
      &lt;allow-intent href="geo:*"/&gt;
      &lt;allow-intent href="mailto:*"/&gt;
      &lt;allow-intent href="http://app.project.com/"/&gt;
      &lt;allow-intent href="https://www.google.com/maps"/&gt;
      &lt;allow-intent href="https://*.google.*"/&gt;
      &lt;access origin="*"/&gt;
      &lt;access origin="http://app.project.com/"/&gt;
      &lt;access origin="tel:*"/&gt;
  &lt;/platform&gt;
  &lt;preference name="phonegap-version" value="cli-6.5.0" /&gt;
  &lt;preference name="xwalkMultipleApk" value="false" /&gt;
  &lt;plugin name="cordova-plugin-device" spec="1.1.6"/&gt;
  &lt;plugin name="ionic-plugin-keyboard" spec="2.2.1"/&gt;
  &lt;plugin name="phonegap-plugin-push" spec="1.4.3"/&gt;
  &lt;plugin name="cordova-plugin-inappbrowser" spec="1.7.1"/&gt;
  &lt;plugin name="cordova-plugin-splashscreen" spec="4.0.3"/&gt;
  &lt;plugin name="cordova-plugin-statusbar" spec="2.2.3"/&gt;
  &lt;plugin name="cordova-plugin-whitelist" spec="https://github.com/apache/cordova-plugin-whitelist"/&gt; &lt;!-- If available via Cordova registry; consider changing to an NPM reference. --&gt;
  &lt;platform name="android" &gt;
      &lt;preference name="android-minSdkVersion" value="16"/&gt;
      &lt;preference name="android-targetSdkVersion" value="23"/&gt;
      &lt;preference name="android-installLocation" value="auto"/&gt;
      &lt;preference name="android-signed" value="true"/&gt;
      &lt;preference name="AndroidLaunchMode" value="singleTop"/&gt;
  &lt;/platform&gt;
  &lt;platform name="ios" &gt;
      &lt;preference name="deployment-target" value="9.0"/&gt;
      &lt;preference name="ios-configuration" value="production"/&gt;
  &lt;/platform&gt;
  &lt;splash platform="android" src="package-assets/splashs/ANDROID/320x426.png" density="ldpi" width="320" height="426" orientation="portrait"/&gt;
  &lt;splash platform="android" src="package-assets/splashs/ANDROID/320x470.png" density="mdpi" width="320" height="470" orientation="portrait"/&gt;
  &lt;splash platform="android" src="package-assets/splashs/ANDROID/480x640.png" density="hdpi" width="480" height="640" orientation="portrait"/&gt;
  &lt;splash platform="android" src="package-assets/splashs/ANDROID/720x960.png" density="xhdpi" width="720" height="960" orientation="portrait"/&gt;
  &lt;splash platform="ios" src="package-assets/splashs/ios/640x960.png" width="640" height="960" orientation="portrait"/&gt;
  &lt;splash platform="ios" src="package-assets/splashs/ios/640x1136.png" width="640" height="1136" orientation="portrait"/&gt;
  &lt;splash platform="ios" src="package-assets/splashs/ios/750x1334.png" width="750" height="1334" orientation="portrait"/&gt;
  &lt;splash platform="ios" src="package-assets/splashs/ios/768x1024.png" width="768" height="1024" orientation="portrait"/&gt;
  &lt;splash platform="ios" src="package-assets/splashs/ios/1242x2208.png" width="1242" height="2208" orientation="portrait"/&gt;
  &lt;splash platform="ios" src="package-assets/splashs/ios/1536x2048.png" width="1536" height="2048" orientation="portrait"/&gt;
  &lt;splash platform="ios" src="package-assets/splashs/ios/2048x2732.png" width="2048" height="2732" orientation="portrait"/&gt;
  &lt;icon platform="android" src="package-assets/iconos/android/project48.png" density="mdpi" width="48" height="48"/&gt;
  &lt;icon platform="android" src="package-assets/iconos/android/project72.png" density="hdpi" width="72" height="72"/&gt;
  &lt;icon platform="android" src="package-assets/iconos/android/project96.png" density="xhdpi" width="96" height="96"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project29.png" width="29" height="29"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project58.png" width="58" height="58"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project87.png" width="87" height="87"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project60.png" width="60" height="60"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project120.png" width="120" height="120"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project180.png" width="180" height="180"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project76.png" width="76" height="76"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project152.png" width="152" height="152"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project80.png" width="40" height="40"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project57.png" width="57" height="57"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project114.png" width="114" height="114"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project72.png" width="72" height="72"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project144.png" width="144" height="144"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project50.png" width="50" height="50"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project100.png" width="100" height="100"/&gt;
  &lt;icon platform="ios" src="package-assets/iconos/ios/project187.png" width="187" height="187"/&gt;
  &lt;config-file platform="android" parent="/manifest/application" mode="merge"&gt;
      &lt;activity android:launchMode="singleTop" /&gt;
  &lt;/config-file&gt;
  &lt;/widget&gt;
  </code></pre>