Here's what the XHR Requests look like from iOS:
xhr, {"readyState":0,
"timeout":0,
"DONE":4,
"status":0,
"HEADERS_RECEIVED":2,
"responseType":"",
"LOADING":3,
"UNSENT":0,
"statusText":"0",
"OPENED":1}
Here's what they look like in FF:
xhr {"statusText":"",
"status":0,
"response":"",
"responseType":"",
"responseXML":null,
"responseText":"",
"upload":{"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null},"withCredentials":false,"readyState":0,"onreadystatechange":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null}
So clearly there's a problem making the XHR request. I'm not really sure why though. Here's the code I'm making the call with:
var url = URLStub + "tracker/q.aspx?swfid=" + SWFID + "&q=" + Data.join("~") + "&url=" + SourceUrl + "&" + Math.random() + "z";
console.log('send url', url);
if (XMLHttpRequest) {
var xhr = new XMLHttpRequest();
console.log('xhr', JSON.stringify(xhr));
if("withCredentials" in xhr) {
console.log('withCredentials in xhr');
//trace("with xhr");
xhr.open("get", url, true)
xhr.send();
return;
}
}