I am building a Cordova app that uses jQuery Ajax to upload images to our server. The uploads were working for a while on both Android and iOS, then after a while they suddenly stopped working on iOS. Now, after a few seconds of trying to access a website, the request fails and I get an error message, which isn't much help. The error is like the following:
readyState: 0
status: 0
statusText: "error"
Run Code Online (Sandbox Code Playgroud)
My code is:
$.ajax("http://testapi.com/api", {
data: …Run Code Online (Sandbox Code Playgroud) 我有一个Cordova Angularjs应用程序从我的服务器获取一些JSON.它适用于iOS 8,但当我"升级"到iOS 9时,我现在从我的服务器中得不到任何东西.服务器尚未更改,如果我导航到我的URL,我可以看到JSON响应.
我把它缩小到我的$ http.jsonp()方法.尝试检索JSON时,它给出了404错误.相同的确切代码工作正常,并在iOS 8设备上获取JSON.
其他任何人都有这个和iOS 9的问题,并已经想出更多?这看起来像苹果相关的问题......