When to use this skill
ALWAYS use this skill when the user mentions:
- Tactile feedback on mobile devices
- Haptic patterns or device support
- Fallback on unsupported devices
Trigger phrases include:
- "haptics", "vibration", "feedback", "mobile"
- "vibration", "haptics", "feedback", "mobile"
How to use this skill
- Identify interactions requiring haptic feedback
- Configure haptics plugin capabilities
- Implement feedback patterns with sensible defaults
- Handle unsupported devices with silent fallback
Outputs
- Haptic feedback plan
- Fallback behavior checklist
Scope
- Boundary: Haptics plugin usage only
- Key points: Feedback patterns and fallback strategy
References
- https://v2.tauri.app/llms.txt
- https://v2.tauri.app/plugin/haptics/
- https://v2.tauri.app/zh-cn/plugin/haptics/
Keywords
tauri haptics, vibration, mobile feedback, fallback
Common Pitfalls (Gotchas)
- Version compatibility: Pay attention to the compatibility between framework versions and dependency libraries; different versions may have API differences.
- Configuration file format: Configuration file format errors are the most common problem; it is recommended to use the editor's syntax checking.
- Environment variables: Ensure all necessary environment variables are set correctly, and 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: In large-data scenarios, pay attention to performance optimization, and avoid common problems such as N+1 queries.
Usage flow
Step 1: Environment preparation
Ensure the development environment has the necessary dependencies and tools installed.
Step 2: Configuration initialization
Perform basic configuration according to project requirements.
Step 3: Core feature usage
Implement the core functionality according to the sample code.
Step 4: Testing and verification
Run tests to ensure the functionality works properly.
Step 5: Deployment and launch
After development is complete, proceed with deployment and monitoring.