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
// registration token.
admin
.messaging()
.sendMulticast(message)
.then((response) => {
// Response is a message ID string.
console.log(
"[SMS Receive] Successfully sent FCM Broadcast.:"
//JSON.stringify(response)
);
})
.catch((error) => {
console.log("Error sending message:", error);
});
// admin
// .messaging()
// .sendMulticast(message)
// .then((response) => {
// // Response is a message ID string.
// console.log(
// "[SMS Receive] Successfully sent FCM Broadcast.:"
// //JSON.stringify(response)
// );
// })
// .catch((error) => {
// console.log("Error sending message:", error);
// });
})
.catch((e2) => {
console.log("e2", e2);