jQuery ajax request returning nothing

jQuery ajax request returning nothing

  1. function getSessionData(callback) {
  2.     $.ajax({
  3.         url: 'URL Value',
  4.         "type": "GET",
  5.         dataType: "json",
  6.         async: true,
  7.         success: function (data) {
  8.             callback(data);
  9.         },
  10.         error: function (xhr, textStatus, error) {
  11.             alert(xhr.statusText);
  12.             alert(textStatus);
  13.             alert(error);
  14.         },
  15.     });
  16. }
  17. I am making an android legacy android application, on the emulator the application works fine and the request goes through to my server, yet on my mobile a login/register which both send post requests work, but the AJAX request to get the data doesn't work on the mobile but does on the emulator. I've working on this issue for two days and have no idea what to do now.