Service that sends notifications to users in the UI

interface INotificationService {
    send(notification: PlatformNotification): Promise<string | number>;
}

Methods

Methods

  • Send a notification to the user. If a notification with the same ID is already showing, it will be updated with the new notification.

    Parameters

    Returns Promise<string | number>

    Promise that resolves with the ID of the notification