My small cordova app utilizes beacon plugins to send a get request to a specific page once beacons are discovered. However, I have been facing issues with sending the get request to my server using the code snippet below with jsonp. Despite trying out different options, none of them seem to work.
$.ajax({
type: "GET",
async: false,
dataType: 'jsonp',
jsonp: 'callback',
jsonpCallback: 'callbackFunction',
url: "http://xxx",
crossDomain: true,
success: function(json){
alert("success");
},
error: function(){
alert("fail");
}
});