简体   繁体   English

Android phonegap跨域连接到WCF服务

[英]Android phonegap connect to WCF service across domains

I have a phonegap 3.4 app written for android 4.4.2. 我有一个为Android 4.4.2编写的phonegap 3.4应用程序。 My code for communication with WCF service works accross domains, as i have checked with my PC, and it also works in the emulator. 我与WCF服务通信的代码跨域工作,就像我在PC上检查过的那样,它也可以在模拟器中工作。 However, when I try to open my app on the phone, the data transfer never finishes- I neither get success nor error in my ajax call. 但是,当我尝试在手机上打开我的应用程序时,数据传输永远不会完成-我的ajax调用既不会成功也不会出错。 Same thing happens if I open the html file in my phone's browser. 如果在手机的浏览器中打开html文件,也会发生同样的事情。

I had avast on my phone, but i turned it off, and I cant see what else might be interfering. 我的手机上显示了详细信息,但我将其关闭了,我看不到其他可能在干扰什么。 So any help would be greatly appreciated. 因此,任何帮助将不胜感激。 (Please keep in mind that my javascript-wcf communication works across domains, so I doubt that changes to my ajax or wcf are nescessary, at least I hope so.) (请记住,我的javascript-wcf通讯可跨域使用,因此我怀疑是否有必要更改我的ajax或wcf,至少我希望如此。)

Apparently, something went terribly wrong in my eclipse. 显然,我的日食出了点问题。 Downloading pure eclipse and then installing adt plugin to it solved the issue. 下载纯eclipse,然后安装adt插件即可解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM