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
Post a Comment