interface IInboxNotification {
    body: string;
    date: Date;
    hasLandingMessage: boolean;
    iOSAttachmentURL?: string;
    identifier: string;
    isUnread: boolean;
    payload: unknown;
    source: NotificationSource;
    title?: string;
}

Properties

body: string

Notification alert body

date: Date

Date at which the push notification has been sent to the device

hasLandingMessage: boolean

Flag indicating whether this notification has a landing message attached.

iOSAttachmentURL?: string

URL of the rich notification attachment (image/audio/video) - iOS Only

identifier: string

Unique notification identifier. Do not make assumptions about its format: it can change at any time.

isUnread: boolean

Flag indicating whether this notification is unread or not

payload: unknown

Raw notification user data (also called payload)

The push notification's source, indicating what made Batch send it. It can come from a push campaign via the API or the dashboard, or from the transactional API, for example.

title?: string

Notification title (if present)