Merged in feature/2021-07-30 (pull request #156)

Remove FCM token.

Approved-by: Patrick Fic
This commit is contained in:
Patrick Fic
2021-07-30 22:21:27 +00:00

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);