Remove FCM token.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user