Coder Social home page Coder Social logo

Comments (6)

mvanbeusekom avatar mvanbeusekom commented on August 25, 2024 1

πŸ˜πŸ‘We will probably release this tomorrow to pub (I will also fix #71 tomorrow and include it in the release).

from flutter-geolocator.

mvanbeusekom avatar mvanbeusekom commented on August 25, 2024

@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.

escamoteur avatar escamoteur commented on August 25, 2024

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.

mvanbeusekom avatar mvanbeusekom commented on August 25, 2024

@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.

escamoteur avatar escamoteur commented on August 25, 2024

How can setting the distance save battery? it will have to update position to check the distance or not?

from flutter-geolocator.

escamoteur avatar escamoteur commented on August 25, 2024

Awesome πŸ‘πŸ‘πŸ‘

from flutter-geolocator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.