Issue
We have a cordova app that is working fine on ios, and the debug build for Android works fine. The problem is when we build a release version. The app will start up, but none of the ajax calls work.
We've tried a lot of things. We have updated cordova, we have changed the config.xml to have:
<allow-navigation href="*"/>
The only thing that has worked so far is changing the release apk's AndroidManifest.xml to debuggable. We did this so we could debug the problem, but it actually made it so that the ajax calls were being made. I tried uploading that APK, but Google play won't accept an apk that is debuggable.
sigh.....
One other thing that could be helpful information is we recently had to change the Domain of our server. We edited all the files to point to the appropriate server. So they are pointing to the correct host, but I figured it could possibly be a problem with certificates or CORS even.
We could really use some help if anybody has any ideas.
Solution
Me and my co worker had a very similar issue to this, we tried everything that was said in these answers and nothing worked. We finally found our issue was an ssl certificate issue with cordova. It is an awful issue because it never exactly tells you its an issue.
here is a link of the article that helped us the most:
http://ivancevich.me/articles/ignoring-invalid-ssl-certificates-on-cordova-android-ios/
really hope this helps!
Answered By - Skylit