$.ajax({
type : 'POST',
url : "https://fcm.googleapis.com/fcm/send",
headers : {
Authorization : 'key=' + ''
},
contentType : 'application/json',
dataType: 'json',
data: JSON.stringify({"to": "" , "notification": {"title":"Test","body":"Test"}}),
success : function(response) {
console.log(response);
},
error : function(xhr, status, error) {
console.log(xhr.error);
}
});