Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Mario_Cesar_B_
Beginner
51 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
Nick_S_1
Beginner
51 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
Reply