When to use this skill
ALWAYS use this skill when the user mentions:
- Barcode or QR code scanning
- Camera permissions or scan callbacks
- Platforms with camera capabilities
Trigger phrases include:
- "barcode", "QR code", "scanner", "camera permissions"
- "扫码", "二维码", "条码", "相机权限"
How to use this skill
- Identify supported platforms and camera permissions
- Configure barcode scanner plugin capabilities
- Implement scan trigger, result handling, and error flows
- Validate fallback when camera is unavailable
Outputs
- Scan flow and permission plan
- Fallback and error-handling checklist
Scope
- Boundary: Barcode scanner plugin usage only
- Key points: Permission handling and result callbacks
References
- https://v2.tauri.app/llms.txt
- https://v2.tauri.app/plugin/barcode-scanner/
- https://v2.tauri.app/zh-cn/plugin/barcode-scanner/
Keywords
tauri barcode scanner, qr code, camera, permissions
Common Pitfalls (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 hardcode sensitive information
- Dependency Conflicts: Watch out for dependency conflicts when multiple versions coexist; use a lock file to pin versions
- Performance Pitfalls: Pay attention to performance optimization in large data volume scenarios; avoid common issues 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 features according to the example code.
Step 4: Testing and Verification
Run tests to ensure the functionality works properly.
Step 5: Deployment and Release
Deploy and monitor after completing development.