SendResponse interface Stay organized with collections Save and categorize content based on your preferences.
Interface representing the status of an individual message that was sent as part of a batch request.
Signature:
exportinterfaceSendResponseProperties
| Property | Type | Description |
|---|---|---|
| error | FirebaseError | An error, if the message was not handed off to FCM successfully. |
| messageId | string | A unique message ID string, if the message was handed off to FCM for delivery. |
| success | boolean | A boolean indicating if the message was successfully handed off to FCM or not. When true, themessageId attribute is guaranteed to be set. When false, theerror attribute is guaranteed to be set. |
SendResponse.error
An error, if the message was not handed off to FCM successfully.
Signature:
error?:FirebaseError;SendResponse.messageId
A unique message ID string, if the message was handed off to FCM for delivery.
Signature:
messageId?:string;SendResponse.success
A boolean indicating if the message was successfully handed off to FCM or not. When true, themessageId attribute is guaranteed to be set. When false, theerror attribute is guaranteed to be set.
Signature:
success:boolean;Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-29 UTC.