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
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user