简体   繁体   English

混合移动应用程序中的XMLHttpRequest异常101

[英]XMLHttpRequest Exception 101 in hybrid mobile application

I have a hybrid mobile application which works on both android and ios devices. 我有一个可在android和ios设备上运行的混合移动应用程序。

The problem with it is that the application works fine when run on Android. 问题在于,该应用程序在Android上运行时可以正常运行。 However, there is a Network Error: XMLHttp Request Exception 101 : saying server is unresponsive while running the application in iOS. 但是,出现网络错误:XMLHttp Request Exception 101 :说在iOS中运行应用程序时服务器无响应。

The application uses Cordova 2.9 该应用程序使用Cordova 2.9

I have been trying out solutions like setting async to true(initially it was false). 我一直在尝试将async设置为true(最初是false)的解决方案。 But it does not solve my issue. 但这不能解决我的问题。

Can you please tell me the reason and the solution to be provided. 您能否告诉我原因以及要提供的解决方案。

Thanks. 谢谢。

Make sure that you are using JSONP data format in IOS. 确保在IOS中使用JSONP数据格式。 This same as Json, but a callback function is needed. 与Json相同,但是需要回调函数。

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

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