Jump to top

SendErrorEvent

interface

An event that is received when a message fails to send.

Example

firebase.messaging().onSendError(event => {
  console.log(event.messageId);
  console.log(event.error);
});

Properties

error

</>

A native firebase error that indicates the failure reason.

messageId

</>

The id of the message that failed to send

messageId: string;