Location can currently be toggled on/off via settings location on|off. There is no way to set specific coordinates. iOS has xcrun simctl location <device> set <lat> <lon> and Android has adb emu geo fix <lon> <lat>. Map-based, delivery, or location-aware apps need this for deterministic tests.
Proposal: Add a command (e.g. location set <lat> <lon> or extend settings with a location set mode) that:
- Accepts latitude and longitude (and optionally altitude if supported).
- On iOS: uses
simctl location set.
- On Android: uses
adb emu geo fix (emulator) and document behavior or alternatives for physical devices if any.
Acceptance criteria:
Location can currently be toggled on/off via
settings location on|off. There is no way to set specific coordinates. iOS hasxcrun simctl location <device> set <lat> <lon>and Android hasadb emu geo fix <lon> <lat>. Map-based, delivery, or location-aware apps need this for deterministic tests.Proposal: Add a command (e.g.
location set <lat> <lon>or extendsettingswith alocation setmode) that:simctl location set.adb emu geo fix(emulator) and document behavior or alternatives for physical devices if any.Acceptance criteria: