Request dont work on real device after phonegap build but its works fine if i use phonegap desktop app with that device and also works fine in desktop browser.
Ajax request(try vanila too, not working):
$("#post-request-btn").on("click", function() {
log.write('post-request-btn clicked');
$.ajax({
dataType: 'json',
type: 'POST',
contentType: "application/x-www-form-urlencoded; charset=utf-8",
data: 'email=testuser&password=111',
crossDomain: true,
success: function (res) {
log.write('!!!success!!!');
log.write(res);
},
error: function (mod, res) {
log.write('errorrrrrr');
log.write(res);
log.write(mod);
}
});
});