Skip to content

Conversation

lognaturel
Copy link
Member

closes #1976

Replaces #1977

Pulls out information on mock location providers and external GPS devices into a linkable section.

`selected-at(${geopoint_widget}, 3) < 10`.

The ``3`` in the above constraint references accuracy, the fourth space-separated value in the `geopoint data type <https://getodk.github.io/xforms-spec/#data-types>`_. The `selected-at` function uses 0-based indexing so you can use ``0`` to reference latitude, ``1`` for longitude, and ``2`` for altitude.
If you rely on mock locations, keep in mind that only GPS can be spoofed. The system may still retrieve real location data from WI-FI or cellular networks, which can override the mock location and as a result, deliver a mix of real and fake location data. To avoid this, go to ``Android Settings`` > ``Location`` and turn off ``Improve location accuracy``. This forces the device to use only GPS, ensuring your mock location is applied consistently.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this tip should be placed in Mock location providers and external GPS devices not in Geopoint widget as it's not limited to Geopoint widget and can also work in the same way in geotrace/geoshape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tip to disable improve location accuracy when using allow-mock-accuracy

2 participants