android - When I generate .apk api calls return xhr.status = 0 -


My app's key. I have a very strange problem while generating an APK file. When I install my app on Android device (Nexus 4, 5, many HTC's and others), all my API calls return to xhr.status = 0 But if instead of doing that I use my devices as an emulator and run the app instead of manually installing it on the app, everything works fine and all the APIs Returns the call information.

So I have no problem with my calls, and at first sight everything is fine, but the compilation is something that causes this problem and I do not know how to solve it.

Any help please ????

Thanks in advance.

Check in your config.xml file if you have & lt; Access origin = "*" /> in place. It is necessary to make cross domain API calls.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -