Giter Site home page Giter Site logo

Comments (7)

toufiqpathan avatar toufiqpathan commented on May 25, 2024

Hi @christocracy any update on this

from cordova-background-geolocation-lt.

christocracy avatar christocracy commented on May 25, 2024

.watchPosition automatically requests the highest possible accuracy from the native location api.

You're aware that gps only works outdoors, right? While indoors, expect accuracy of 40-100 meters.

from cordova-background-geolocation-lt.

christocracy avatar christocracy commented on May 25, 2024

.watchPosition should be avoided. It's designed for short periods while in the foreground. It's not designed for long periods in the background. .watchPosition is not required

from cordova-background-geolocation-lt.

toufiqpathan avatar toufiqpathan commented on May 25, 2024

Intested of .watchposition what we have to use to get the current location of the user for every one minute

from cordova-background-geolocation-lt.

christocracy avatar christocracy commented on May 25, 2024

You can't have the location every minute (while the device is sitting stationary). .watchPosition is going to empty the user's battery in a few hours and the user is going to uninstall your app.

For periodic location, use background-fetch.

from cordova-background-geolocation-lt.

toufiqpathan avatar toufiqpathan commented on May 25, 2024

Ok thanks.

from cordova-background-geolocation-lt.

christocracy avatar christocracy commented on May 25, 2024

Imagine the battery drain following a driving route in a Map app for several hours: that's what .watchPosition is going to do.

from cordova-background-geolocation-lt.

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.