NotificationConstructorOptions
Properties
Actions to add to the notification. Please read the available actions and limitations in the NotificationAction documentation.
A custom title for the close button of an alert. An empty string will cause the default localized text to be used.
A string identifier used to visually group notifications together in Notification Center / Action Center. On macOS, maps to UNNotificationContent's threadIdentifier property. On Windows, maps to the toast notification's Group property. Use this identifier with Notification.removeGroup() to remove all notifications in a group.
A title for the notification group header. When both groupId and groupTitle are specified, Windows will display a header above the notification that groups related notifications together. Maps to the toast notification's header element.
A unique identifier for the notification. On macOS, maps to UNNotificationRequest's identifier property. On Windows, maps to the toast notification's Tag property. Defaults to a random UUID if not provided or if an empty string is passed. Use this identifier with Notification.remove() to remove specific delivered notifications, or with Notification.getHistory() to identify them.
The placeholder to write in the inline reply input field.
The timeout duration of the notification. Can be 'default' or 'never'.
The urgency level of the notification. Can be 'normal', 'critical', or 'low'.