Notifications
Available since: 0.55.0
Install, configure and send notifications to the Brezel Notification Center and over Web Push.
The following components are necessary to make notifications work:
- Brotcast
- Web Push (for Browser notifications, optional)
Installing Brotcast
Consult the corresponding repository.
Installing Webpush
This should happen automatically when initializing Brezel.
The only step involves setting up the VAPID keys (VAPID_PRIVATE_KEY
and VAPID_PUBLIC_KEY
). Run
or, if you use the api repository directly:
Sending notifications
Attributes of a Notification
id (string)
: ordered UUIDtitle (string)
: The notification’s titlemessage (string)
: The notification’s bodytype (string)
: One ofinfo
,warning
,error
,progress
, or a custom value.icon (string)
: Image URLimage (string)
: Image URLactions (list<dict>)
: Array of action dictionaries, rendered as action buttons.action (string)
: Action identifiertitle (string)
: Action titleicon (string)
: Action icon URL
data (dict)
: Custom data, as key-value pairsentity (Entity)
: Entity appendixworfklow (Workflow)
: Originator workflow of the notification