Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting 'interval' and 'fastestInterval' for continuous updates #7

Open
squashmode opened this issue Apr 12, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@squashmode
Copy link

Thank you for making this plugin available!

It would be nice if, when subscribing to locationUpdates(), if both interval and fastestInverval could be passed in and used, rather than the hard-coded values of 5000 and 2500 ms, respectively. This is for the android implementation, I'm not sure if the same applies to iOS.

This could look just like the displacementFilter parameter that is currently passed into that method.

@lukaspili
Copy link
Contributor

I'm planning to add it, but I'm still thinking on the best way to expose it.
Current API is platform-agnostic, but interval and fastestInverval don't have any equivalent on iOS.
I'm leaning towards exposing an additional parameter androidSpecifics for the other LocationRequest options. Would that work for you?

@lukaspili lukaspili added the enhancement New feature or request label Apr 12, 2018
@squashmode
Copy link
Author

Yes, that would definitely work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants