multiAI Summary Pending

tauri-app-geolocation

Access device location using the Tauri v2 geolocation plugin with permission handling and privacy controls. Use when adding location tracking, configuring accuracy/frequency, or implementing privacy-safe opt-out defaults.

223 stars

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/tauri-app-geolocation/SKILL.md --create-dirs "https://raw.githubusercontent.com/partme-ai/full-stack-skills/main/skills/tauri-skills/tauri-app-geolocation/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/tauri-app-geolocation/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How tauri-app-geolocation Compares

Feature / Agenttauri-app-geolocationStandard Approach
Platform SupportmultiLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Access device location using the Tauri v2 geolocation plugin with permission handling and privacy controls. Use when adding location tracking, configuring accuracy/frequency, or implementing privacy-safe opt-out defaults.

Which AI agents support this skill?

This skill is compatible with multi.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

## When to use this skill

**ALWAYS use this skill when the user mentions:**
- Location access or GPS tracking in a Tauri app
- Geolocation permission flow and privacy constraints
- Location accuracy and update frequency tuning

**Trigger phrases include:**
- "geolocation", "location", "GPS", "tracking", "coordinates", "privacy"

## How to use this skill

1. **Install the geolocation plugin**:
   ```bash
   cargo add tauri-plugin-geolocation
   ```
2. **Register the plugin** in your Tauri builder:
   ```rust
   tauri::Builder::default()
       .plugin(tauri_plugin_geolocation::init())
   ```
3. **Configure capabilities** in `src-tauri/capabilities/default.json`:
   ```json
   { "permissions": ["geolocation:allow-get-current-position", "geolocation:allow-watch-position"] }
   ```
4. **Get current position from the frontend**:
   ```typescript
   import { getCurrentPosition, watchPosition } from '@tauri-apps/plugin-geolocation';
   const pos = await getCurrentPosition();
   console.log(`Lat: ${pos.coords.latitude}, Lon: ${pos.coords.longitude}`);
   ```
5. **Handle permission denial** gracefully with user-facing messages and fallback behavior
6. **Provide opt-out defaults** and minimize data collection for privacy compliance

## Outputs

- Geolocation plugin setup with position APIs
- Permission request and denial handling
- Privacy-safe defaults and opt-out pattern

## References

- https://v2.tauri.app/plugin/geolocation/

## Keywords

tauri geolocation, location, GPS, tracking, privacy, permissions