Methods available as mbpClient.notifications.

See the notifications guide.

interface MbpEmbedClientNotifications {
    scheduleNotification(notification: ScheduledNotificationInput): Promise<undefined | string>;
    cancelNotification(id: string): Promise<void>;
    getAllNotifications(): Promise<ScheduledNotification[]>;
    getNotificationPermissions(): Promise<NotificationPermissions>;
    requestConsent(): Promise<NotificationPermissions>;
    revokeConsent(): Promise<NotificationPermissions>;
}

Methods

  • Parameters

    Returns Promise<undefined | string>

  • Parameters

    • id: string

    Returns Promise<void>