NotificationDefinitioninterface
Describes a web notification. For more details, see the web Notification interface.
Properties (13)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| badge⚓︎ | string | x | x | URL of an image to represent the notification as a badge. |
| body⚓︎ | string | x | x | Notification body text. |
| data⚓︎ | any | x | x | Arbitrary data you have associated with the notification. |
| dir⚓︎ | "auto" | "ltr" | "rtl" | "auto" | x | The direction in which to display the notification. |
| icon⚓︎ | string | x | x | URL of an icon to be displayed in the notification. |
| image⚓︎ | string | x | x | URL of an image to be displayed in the notification. |
| lang⚓︎ | string | x | x | Language code of the notification. |
| renotify⚓︎ | boolean | false | x | If |
| requireInteraction⚓︎ | boolean | false | x | If |
| silent⚓︎ | boolean | false | x | If |
| tag⚓︎ | string | x | x | ID tag of the notification. |
| timestamp⚓︎ | number | x | x | Specifies the time at which the notification is created or is applicable (past, present or future). |
| vibrate⚓︎ | number[] | x | x | Vibration pattern for the vibration hardware of the device to emit with the notification. If specified, |