# Notification

**Kind**: interface | **Module**: [Notifications](https://docs.interop.io/browser/reference/javascript/notifications/index.md)

**Source**: https://docs.interop.io/browser/reference/javascript/notifications/notification/index.html

## Properties

- **`actions`** (`NotificationAction[]`, optional)
  List of action attached to the notification. Those will appear as buttons in the notification UI
- **`badge`** (`string`, optional)
- **`body`** (`string`, optional)
- **`clickInterop`** (`InteropActionSettings`, optional)
  Set to make the notification click invoke an interop method with specific arguments
- **`data`** (`any`, optional)
- **`dir`** (`"auto" | "ltr" | "rtl"`, optional)
- **`focusPlatformOnDefaultClick`** (`boolean`, optional)
  *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`, optional)
- **`id`** (`string`, required)
- **`image`** (`string`, optional)
- **`lang`** (`string`, optional)
- **`onclick`** (`() => any`, required)
- **`onshow`** (`() => any`, required)
- **`renotify`** (`boolean`, optional)
- **`requireInteraction`** (`boolean`, optional)
- **`severity`** (`"Low" | "Medium" | "High" | "Critical" | "None"`, optional)
  Severity of the alert
- **`showInPanel`** (`boolean`, optional)
  Indicates whether the notification should appear in notification panels. Defaults to `true`
- **`showToast`** (`boolean`, optional)
  Indicates whether a native toast will be shown or not. Defaults to `true`
- **`silent`** (`boolean`, optional)
- **`state`** (`State`, optional)
  Notification state. Defaults to `"Active"`
- **`tag`** (`string`, optional)
- **`timestamp`** (`number`, optional)
- **`title`** (`string`, required)
  The title of the notification
- **`vibrate`** (`number[]`, optional)

## Related types

- [InteropActionSettings](https://docs.interop.io/browser/reference/javascript/notifications/interopactionsettings/index.md)
- [NotificationAction](https://docs.interop.io/browser/reference/javascript/notifications/notificationaction/index.md)
- [State](https://docs.interop.io/browser/reference/javascript/notifications/state/index.md)
