I am facing an issue with AJAX in my Android app (JS / CORDOVA). The code I am using is as follows:
$.post("http://mydomain.com.br/getInfos.php" {
id: id
}, function(json) {
if (json == "success") {
alert("Success!");
} else {
alert("Error: " + json);
}
});
The error response received is:
{“readyState”:0,“responseText”:“”,“status”:0,“statusText”:“error”}
Interestingly, the code works perfectly on Android versions 8 and below...
Any ideas on what could be causing this issue?