Remove FCM token.

This commit is contained in:
Patrick Fic
2021-07-30 15:21:04 -07:00
parent 35782244bf
commit 4d7a7442ce

View File

@@ -94,19 +94,19 @@ exports.receive = (req, res) => {
// Send a message to the device corresponding to the provided // Send a message to the device corresponding to the provided
// registration token. // registration token.
admin // admin
.messaging() // .messaging()
.sendMulticast(message) // .sendMulticast(message)
.then((response) => { // .then((response) => {
// Response is a message ID string. // // Response is a message ID string.
console.log( // console.log(
"[SMS Receive] Successfully sent FCM Broadcast.:" // "[SMS Receive] Successfully sent FCM Broadcast.:"
//JSON.stringify(response) // //JSON.stringify(response)
); // );
}) // })
.catch((error) => { // .catch((error) => {
console.log("Error sending message:", error); // console.log("Error sending message:", error);
}); // });
}) })
.catch((e2) => { .catch((e2) => {
console.log("e2", e2); console.log("e2", e2);