I have a problem with AJAX calls


#1

Hi everyone, my problem is the following: In my Ionic application I used AJAX calls to a remote server. All this functions perfectly until you launch the application on the android emulator where the AJAX calls do not work. Does anyone know why?
Thank you.


#2

This is most probably a security problem.

Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Chrome dev tools: https://ionic.zone/debug/remote-debug-your-app#android Look at the console and network tabs for errors.


#3

Thanks for the answer but in the end I solved the problem by installing a cordova plug-in


#4

Which one? Could help future users with similar problems…


#5

cordova-plugin-compat