Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
7 Views

AJAX does not work in Android

Hello my friends,

AJAX work at emulation and emulation on device with app preview but does not work when compiled as APK.

What should be happenning ? 

Thanks.

 

Tags (2)
0 Kudos
1 Reply
Highlighted
Beginner
7 Views

I had this error too. To fix it,

  • Make sure your Whitelist settings are correct under Build Settings
  • Install the cordova-plugin-whitelist
  • Add the meta tag <meta http-equiv="Content-Security-Policy" content="default-src 'self' * 'unsafe-inline'"> or customize per the plugin docs
0 Kudos