Comments (6)
ππWe will probably release this tomorrow to pub (I will also fix #71 tomorrow and include it in the release).
from flutter-geolocator.
@escamoteur to my knowledge this is not supported on iOS. To keep a consistent (or as much as possible) interface we haven't included this into the API.
If I am wrong please let me know and we will reconsider this.
from flutter-geolocator.
IMHO it would be more important to offer it because on Android there is a sophisticated update system available and it saves a lot of energy. So why not offer it with the remark that it has no effect on ios?
from flutter-geolocator.
@escamoteur I think we can do that indeed.
Just note that setting a time interval on Android has no effect when you also set a displacement value. In other words the setSmallestDisplacement(int)
takes precedence over the setInterval(long)
and setFastestInterval(long)
options on the fused location provider (the same goes for the time
and distance
parameters of the requestLocationUpdates
method of the LocationManager
).
What I am trying to say is you can already control power consumption using by tuning the distance and this will work on both platforms.
from flutter-geolocator.
How can setting the distance save battery? it will have to update position to check the distance or not?
from flutter-geolocator.
Awesome πππ
from flutter-geolocator.
Related Issues (20)
- [Bug]: Windows suddenly not giving right location HOT 1
- [Bug]: App crashes when calling getCurrentPosition() HOT 12
- geolocator_android deprecated issues HOT 7
- [Bug]: Requires newer version of Kotlin Gradle Plugin HOT 22
- [Bug]: requestPermission Future never resolves, when application goes to background, when "Allow to use location" popup is displayed
- [Bug]: Geolocator.getPositionStream().listen causes a crash when user choses to only share approximate location on permission dialog HOT 2
- [Question]: getCurrentPosition not working on iOS Testflight HOT 10
- [Question]: Using IOS background location update but the gps keeps drifting
- [Question]: how can start when i cancel and restart HOT 4
- [Feature Request]: Expose Location.hasBearingAccuracy() from Android platform HOT 1
- [Bug]: The connection to Google Play services was lost due to service disconnection HOT 1
- [Enhancement proposal]: LocationAccuracyStatus dartdocs out of date HOT 1
- [Question]: Ios background stop location updates HOT 7
- [Question]: iOS keeps requesting location data while the app is in use HOT 2
- [Question]: I just install the package but still throw the error showing in the image. HOT 1
- [Bug]: macOS, LOCATION UPDATE FAILURE:Error reason: (null)Error description: The operation couldnβt be completed. (kCLErrorDomain error 0.) HOT 4
- [Question]: [!] Your project requires a newer version of the Kotlin Gradle plugin. β β Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then β β update D:\my_happy\android\build.gradle: β β ext.kotlin_version = '<latest-version>' HOT 3
- Stopping Background Location Service and Unregistering Listeners HOT 5
- [Bug]: GeoLocator does not work on MacOs HOT 1
- [Question]: iOS background doesn't work οΌkCLErrorDomain error 1οΌ HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-geolocator.