tauri-app-notification

Installation
SKILL.md

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

  1. Install the notification plugin:
    cargo add tauri-plugin-notification
    
  2. Register the plugin in your Tauri builder:
    tauri::Builder::default()
        .plugin(tauri_plugin_notification::init())
    
  3. Configure capabilities in src-tauri/capabilities/default.json:
    { "permissions": ["notification:allow-notify", "notification:allow-request-permission", "notification:allow-is-permission-granted"] }
    
  4. 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.' });
    
  5. Handle permission denial gracefully with in-app fallback messaging
  6. 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

Keywords

tauri notification, system alert, push notification, notify, permissions

Related skills

More from partme-ai/full-stack-skills

Installs
6
GitHub Stars
373
First Seen
Mar 25, 2026