cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ollide <...@git.apache.org>
Subject [GitHub] cordova-plugin-geolocation pull request: Update GPSListener.java
Date Mon, 07 Apr 2014 15:03:38 GMT
Github user ollide commented on the pull request:

    https://github.com/apache/cordova-plugin-geolocation/pull/15#issuecomment-39741498
  
    "5 meters is fine for most use cases" is simply wrong. Yes, it might be an appropriate
average value, but developers will still end up changing it to fit their needs.
    
    If the ``minTime`` and ``minDistance`` parameters change before they get configurable,
I'd suggest ``0`` for both of them because it guarantees frequent location updates. Also these
parameters are treated as a hint on Androids before JellyBean and are likely to be ignored.
Using ``0`` will produce more similar results across different Android versions.
    
    Please note that using ``minDistance`` will not conserve battery life effectively. From
the Android docs:
    > However it is more difficult for location providers to save power using the minDistance
parameter, so minTime should be the primary tool to conserving battery life.
    
    Also note that the NetworkListener currently uses the same parameters as the GPSListener
(60 seconds minTime).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message