Skip to content

Support interval and maxWaitTime for Android watchers#155

Open
ricardosohn wants to merge 2 commits intocapacitor-community:masterfrom
ricardosohn:master
Open

Support interval and maxWaitTime for Android watchers#155
ricardosohn wants to merge 2 commits intocapacitor-community:masterfrom
ricardosohn:master

Conversation

@ricardosohn
Copy link
Copy Markdown

This pull request enhances the location update configuration by allowing clients to specify custom interval and maxWaitTime values for location requests, providing more flexibility over how frequently location updates are received and batched.

Location update configuration improvements:

  • The addWatcher method in BackgroundGeolocation.java now accepts interval and maxWaitTime parameters from the plugin call, with sensible defaults if not provided.
  • The addWatcher method in BackgroundGeolocationService.java has been updated to use the provided interval and maxWaitTime values when configuring the LocationRequest, and also sets the fastestInterval to match the interval for consistent update timing.

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