When to use this skill
ALWAYS use this skill when the user mentions:
- System notifications / 系统通知
- Notification permissions or callbacks / 通知权限或回调
- Deep-linking from notifications / 通知触发深链
Trigger phrases include:
- "notification", "system alerts", "permission", "callback"
- "notifications", "system reminders", "permissions", "callbacks"
How to use this skill
- Define notification types and user flows
- Configure notification plugin capabilities
- Handle permission requests and click callbacks
- Map notification clicks to app routes safely
Outputs
- Notification flow plan / 通知流程方案
- Permission and click handling checklist / 权限与点击处理清单
Scope
- Boundary: Notification plugin usage only
- Key points: Permissions and click handling
References
- https://v2.tauri.app/llms.txt
- https://v2.tauri.app/plugin/notification/
- https://v2.tauri.app/zh-cn/plugin/notification/
Keywords
tauri notification, system alerts, permissions, callbacks
Common Gotchas (Gotchas)
- Version compatibility: Pay attention to compatibility between framework versions and dependency libraries; APIs may differ across versions
- Configuration file format: Configuration file format errors are the most common issue; it is recommended to use the editor's syntax checking
- Environment variables: Ensure all necessary environment variables are set correctly; do not hard-code sensitive information
- Dependency conflicts: When multiple versions coexist, pay attention to dependency conflicts and use a lock file to pin versions
- Performance pitfalls: Pay attention to performance optimization in large-data scenarios, and avoid common issues such as N+1 queries
Usage workflow
Step 1: Environment preparation
Ensure the necessary dependencies and tools are installed in the development environment.
Step 2: Configuration initialization
Perform basic configuration according to project requirements.
Step 3: Using core features
Implement the core features according to the sample code.
Step 4: Test verification
Run tests to ensure the functionality works properly.
Step 5: Deployment and release
After development is complete, proceed with deployment and monitoring.