Module tauri_sys::notification
source · Expand description
Send toast notifications (brief auto-expiring OS window element) to your user. Can also be used with the Notification Web API.
The APIs must be added to tauri.allowlist.notification in tauri.conf.json:
{
"tauri": {
"allowlist": {
"notification": {
"all": true // enable all notification APIs
}
}
}
}
It is recommended to allowlist only the APIs you use for optimal bundle size and security.
Structs§
- The desktop notification definition.
Enums§
- Possible permission values.
Functions§
- Checks if the permission to send notifications is granted.
- Requests the permission to send notifications.