Firebase Notification API Code


  $.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);                   
            }
        });

Technology
published
v.0.01




© 2024 - ErnesTech - Privacy
E-Commerce Return Policy