When to use this skill
ALWAYS use this skill when the user mentions:
- System notifications in a Tauri app
- Notification permission requests
- Handling notification click events or actions
Trigger phrases include:
- "notification", "system alert", "push notification", "notify", "toast"
How to use this skill
- Install the notification plugin:
cargo add tauri-plugin-notification - Register the plugin in your Tauri builder:
tauri::Builder::default() .plugin(tauri_plugin_notification::init()) - Configure capabilities in
src-tauri/capabilities/default.json:{ "permissions": ["notification:allow-notify", "notification:allow-request-permission", "notification:allow-is-permission-granted"] } - Send a notification from the frontend:
import { sendNotification, requestPermission, isPermissionGranted } from '@tauri-apps/plugin-notification'; if (!(await isPermissionGranted())) { await requestPermission(); } sendNotification({ title: 'Update Complete', body: 'Your file has been saved.' }); - Handle permission denial gracefully with in-app fallback messaging
- Route notification clicks to specific views or actions in your app
Outputs
- Notification plugin setup with permission flow
- Send notification with title and body
- Click handling and in-app fallback pattern
References
- https://v2.tauri.app/plugin/notification/
Keywords
tauri notification, system alert, push notification, notify, permissions