Android apk no access to internet

Can someone tell me why my application can’t handle an http request?

i added the whitelist plugin correctly and added this in my config:

  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
  
  <!-- START whitelist plugin (need this for android 4.0) -->
  <plugin name="cordova-plugin-whitelist" spec="1" />
  <access origin="*" />
  <allow-navigation href="*" />
  <allow-intent href="http://*/*" />
  <allow-intent href="https://*/*" />
  <allow-intent href="tel:*" />
  <allow-intent href="sms:*" />
  <allow-intent href="mailto:*" />
  <allow-intent href="geo:*" />
  <platform name="android">
    <allow-intent href="market:*" />
  </platform>
  <platform name="ios">
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
  </platform>
  <!-- END whitelist plugin -->

I can’t find how to fix this

Did you add a content security policy tag to your index.html ? For instance:

  <meta http-equiv="Content-Security-Policy"
        content="default-src 'self' * data: gap: https://ssl.gstatic.com https://maps.googleapis.com/  'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">

if you are using ios 9 there are other security mechanisms. So per default only https connections are allowed.

Thanks, but that didn’t work either…

You see anything if you look at adb logcat ? Normally there would be an error/message …

i’m using GapDeBug and there is an 404 error… when i’m running the application in chrome or in phonegap it works fine, but with de APK on the android device it self it won’t work