openclaw - 💡(How to fix) Fix [Feature]: Pass Android device GPS location to agents [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#71015Fetched 2026-04-25 06:08:38
View on GitHub
Comments
1
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
closed ×1commented ×1mentioned ×1subscribed ×1

Surface Android companion app GPS coordinates to agents via inbound message metadata when the user has opted in via the existing location sharing toggle.

Root Cause

Surface Android companion app GPS coordinates to agents via inbound message metadata when the user has opted in via the existing location sharing toggle.

RAW_BUFFERClick to expand / collapse

Summary

Surface Android companion app GPS coordinates to agents via inbound message metadata when the user has opted in via the existing location sharing toggle.

Problem to solve

The Android app has a location sharing toggle (Off / While Using with Precise Location ON), but GPS data is never delivered to agents. Users who opt in expect location-aware responses (weather, nearby services, timezone-aware scheduling), but agents cannot access coordinates. Currently agents must ask users to manually provide their city or coordinates, creating friction for the most common mobile use cases.

Proposed solution

Extend the inbound message metadata to include GPS coordinates when the user has enabled location sharing. Agents already consume metadata from openclaw.inbound_meta.v2 — adding latitude, longitude, and optional accuracy/timestamp fields would enable location-aware assistance without requiring agents to query a new API endpoint.

Alternatives considered

  1. Plugin-based location API — A skill queries a device location endpoint. Downside: requires a new async fetch per session; metadata is simpler and already piped to every agent session.
  2. Manual user input — Agents ask for city/coords. Downside: defeats the purpose of the opt-in toggle; poor UX on mobile.
  3. Skill-scoped location — Only expose location to specific skills (e.g., weather). Downside: artificially limits utility.

Impact

  • Affected: Android app users who enable location sharing
  • Severity: Medium — location is a top mobile UX expectation; the toggle exists but delivers zero value to agents
  • Frequency: Every mobile session that could benefit from location context
  • Consequence: Agents appear location-blind on mobile; users must manually input location despite having already opted in

Evidence/examples

  • The Android app already has a location sharing toggle in Settings
  • The metadata schema (openclaw.inbound_meta.v2) already transports device context to agents — GPS is a natural extension
  • Comparable platforms (Google Assistant, Siri) automatically use device location when permitted

Additional information

  • Privacy: Must respect the existing opt-in toggle — no silent collection. GPS data should only flow when the user has explicitly enabled "While Using" location sharing.
  • Staleness: Coordinates should include a timestamp so agents can evaluate data freshness.
  • Scope question: Per CONTRIBUTING.md, open to guidance on whether this belongs in core or as a plugin SDK capability. The current design (metadata extension) is the simplest core path; happy to explore alternatives.
<img width="256" alt="Image" src="https://github.com/user-attachments/assets/442e452d-40b3-43f3-9115-8118edee375e" />

extent analysis

TL;DR

Extend the openclaw.inbound_meta.v2 metadata schema to include GPS coordinates (latitude, longitude, accuracy, and timestamp) when the user has enabled location sharing.

Guidance

  • Verify that the Android app's location sharing toggle is correctly configured and that the user has opted-in to share their location.
  • Update the openclaw.inbound_meta.v2 metadata schema to include the proposed GPS fields, ensuring that the data is only sent when the user has explicitly enabled location sharing.
  • Consider adding a timestamp to the GPS data to allow agents to evaluate the freshness of the location information.
  • Evaluate the trade-offs between implementing this feature in the core or as a plugin SDK capability, considering factors such as simplicity, maintainability, and flexibility.

Example

No code snippet is provided as the issue does not contain specific implementation details.

Notes

The proposed solution must respect the existing opt-in toggle and only collect GPS data when the user has explicitly enabled location sharing. The implementation should also consider the staleness of the location data and provide a way for agents to evaluate its freshness.

Recommendation

Apply the proposed workaround by extending the openclaw.inbound_meta.v2 metadata schema to include GPS coordinates, as it is the simplest and most straightforward solution that respects the existing opt-in toggle and provides a good user experience.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING