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.

error: NativeFirebaseError;

messageId

</>

The id of the message that failed to send

messageId: string;