const userId = window.localStorage.getItem("zicuserId");
const dataString = "deviceId="+myDeviceId + "&userId=" + userId + "&deviceToken=" + myDeviceToken;
alert("dataString: " + dataString);
$.ajax({
type: POST,
url: "http://mobilapps.zicoil.pk/fineName.php",
data: dataString,
async: false,
dataType: "text",
success: function(data)
{
window.localStorage.setItem("userDeviceRegister", "true");
alert(data);
},
error: function()
{
alert("error , you are in error function.")
}
});