georggrab / background_location_updates

Flutter Plugin providing access to the Device Location, even when the app is not running.
Apache License 2.0
26 stars 15 forks source link

get track current tracking location #1

Open diegoveloper opened 6 years ago

diegoveloper commented 6 years ago

is there any way to get the current location in a Stream?

streamLocationActive <-- get the current coordinates

georggrab commented 6 years ago

Currently not, though this is technically possible, albeit with a little bit of effort. I'm not sure though how sensical this would be - this plugin primarily supports the two "long-term, battery saving location providers", that being SignificantLocationChange on iOS and Fusedlocationprovider on Android. These Providers share the location very infrequently anyways, not sure what you'd like to do with this information in the running App.

For the "running App" use-case, you probably want the high-accuracy, real-time location anyways. There are other plugins for that already. Last time I checked, the geolocation plugin was quite excellent.