From 022e3f07ab47245fd1fa063dda99764989b6db0b Mon Sep 17 00:00:00 2001 From: Dan Cunningham Date: Thu, 5 Sep 2024 13:22:22 -0700 Subject: [PATCH] Replace sendMulticast which is deprecated, with sendEachForMulticast when sending messages (#473) Signed-off-by: Dan Cunningham --- notificationsender/firebase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notificationsender/firebase.js b/notificationsender/firebase.js index a7663ef..aa70f94 100644 --- a/notificationsender/firebase.js +++ b/notificationsender/firebase.js @@ -11,7 +11,7 @@ if (system.isGcmConfigured()) { } function sendMessage(message) { - firebase.messaging().sendMulticast(message) + firebase.messaging().sendEachForMulticast(message) .then((response) => { logger.info("FCM Response: " + JSON.stringify(response)); })