Skip to content

Commit

Permalink
Replace sendMulticast which is deprecated, with sendEachForMulticast …
Browse files Browse the repository at this point in the history
…when sending messages (#473)

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
  • Loading branch information
digitaldan authored Sep 5, 2024
1 parent 1346bd2 commit 022e3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notificationsender/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
})
Expand Down

0 comments on commit 022e3f0

Please sign in to comment.