Skip to main content

Properties (28)

Property Type Default Required Description
actions⚓︎ NotificationAction[] x

Array of objects describing the available notification actions.

badge⚓︎ string x x x
body⚓︎ string x x x
clickInterop⚓︎ InteropActionSettings x x

Set to make the notification click invoke an interop method with specific arguments

close⚓︎ () => void x

Closes the notification.

data⚓︎ any x x x
dir⚓︎ "auto" | "ltr" | "rtl" x x x
focusPlatformOnDefaultClick⚓︎ boolean x x

io.Connect Browser* only. If set to true, the platform app will be focused when the user clicks on the notification. Defaults to false.

icon⚓︎ string x x x
id⚓︎ string x x
image⚓︎ string x x x
lang⚓︎ string x x x
onaction⚓︎ (event: ActionEvent) => void x

Notifies when a notification action has been clicked.

onclick⚓︎ () => any x x
onclose⚓︎ (() => void) x

Notifies when the notification is closed.

onerror⚓︎ (event: ErrorEvent) => void x

Notifies when there is a notification error.

onshow⚓︎ () => any x x
renotify⚓︎ boolean x x x
requireInteraction⚓︎ boolean x x x
severity⚓︎ "Low" | "Medium" | "High" | "Critical" | "None" x x

Severity of the alert

showInPanel⚓︎ boolean x x

Indicates whether the notification should appear in notification panels. Defaults to true

showToast⚓︎ boolean x x

Indicates whether a native toast will be shown or not. Defaults to true

silent⚓︎ boolean x x x
state⚓︎ State x x

Notification state. Defaults to "Active"

tag⚓︎ string x x x
timestamp⚓︎ number x x x
title⚓︎ string x

The title of the notification

vibrate⚓︎ number[] x x x