ajax - Phonegap Android Release build cannot access remote server -
using phonegap, can't ajax (or workaround) work in release build.
device being used: galaxy s4
situation: phonegap app , 'phonegap serve':
- working: can post data server using following method: form target of hidden iframe , action pointing server.
- not working: traditional ajax calls not work, either jquery or straight javascript
with signed build:
- neither (form + iframe) or ajax work
===
things i've tried:
set whitelisting via access origin
androidmanifest.xml has internet permission turned on
remote server http, not https
$.support.cors = true
downgraded cordova 5.0 , phonegap 5.0 lower versions
===
anyone have suggestions?
enabling cors complex issue, different clients , different servers have different settings. mine client side ajax cors post call jason data, server side vb.net webservices access origin set in web.config. if you're using same 'kind' of server, can provide source codes reference. tried testing client in known desktop , mobile browsers, android 4.1.2 thru 4.4.1, , iphone 4s thru iphone6+, work expected.
Comments
Post a Comment