Skip to content

Conversation

@MohammedMasiuddin
Copy link

@MohammedMasiuddin MohammedMasiuddin commented Dec 22, 2025

Overview

This change updates the watchPosition configuration to correctly respect the user-provided interval option.

Previously, the location update interval was hardcoded to 1000ms, which caused the interval option to be ignored. As a result:

Location updates were triggered primarily when the distanceFilter threshold was crossed.

When distanceFilter was set to 0, updates were delivered every second, even if the user specified a longer interval (e.g., 30 seconds).

With this change, the interval value supplied by the user is now correctly applied to watchPosition. This allows users to control how frequently location updates are received, independent of distance changes (for example, receiving updates every 30 seconds with distanceFilter: 0).

Please find my contact : mdmasiuddin144@gmail.com

Test Plan

Ran the local unit test

@MohammedMasiuddin MohammedMasiuddin marked this pull request as draft December 22, 2025 18:46
@MohammedMasiuddin MohammedMasiuddin marked this pull request as ready for review December 22, 2025 18:55
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.

1 participant