When to use this skill
ALWAYS use this skill when the user mentions:
- Location access or tracking features / 位置访问或轨迹功能
- Permission flow and privacy constraints / 权限流程与隐私约束
- Accuracy and frequency tuning / 精度与频率调优
Trigger phrases include:
- "geolocation", "location", "tracking", "privacy"
- "定位", "位置", "轨迹", "隐私"
How to use this skill
- Define location accuracy and update frequency
- Configure geolocation plugin capabilities
- Handle permission requests and denial cases
- Provide opt-out and privacy-safe defaults
Outputs
- Location access and privacy plan / 位置访问与隐私方案
- Opt-out defaults and denial handling checklist / 退出默认与拒绝处理清单
Scope
- Boundary: Geolocation plugin usage only
- Key points: Permission handling and privacy compliance
References
- https://v2.tauri.app/llms.txt
- https://v2.tauri.app/plugin/geolocation/
- https://v2.tauri.app/zh-cn/plugin/geolocation/
Keywords
tauri geolocation, location, privacy, permissions
Common Gotchas (Gotchas)
- Version compatibility: Note the 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 your 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, watch out for dependency conflicts; 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 workflow
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: Using core functionality
Implement the core functionality 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, deploy and monitor.