1 Answers

"sendMulticast" returns Promise for BatchResponse whereas "sendToDevice" returns Promise for MessagingDevicesResponse

From https://firebase.google.com/docs/cloud-messaging/send-message#adminSDK-legacy-send-methods regarding "sendMulticast":

For Firebase Admin SDKs, this operation uses the sendAll() API under the hood, as shown in the examples. The return value is a BatchResponse whose responses list corresponds to the order of the input tokens. This is useful when you want to check which tokens resulted in errors.

Related