Giter Club home page Giter Club logo

Comments (5)

tsubik avatar tsubik commented on July 20, 2024

This is an interesting idea but I am worry that will rapidly increase battery drain. The plugin intention is to keep battery drain as lowest as possible, that is why it's using standard API.

from cordova-plugin-geofence.

timwright35 avatar timwright35 commented on July 20, 2024

I have noticed it responds faster if I do a quick get current location poll after the geofences are activate. Maybe it could be a variable that if the developer wants to allow possibly more accurate readings at the cost of battery they could set some options like, allowGPSPolling with another option of GPSPollingInterval (Defaults to 10 minutes or something).

from cordova-plugin-geofence.

tsubik avatar tsubik commented on July 20, 2024

Yes, I found an article about that http://blog.lemberg.co.uk/fused-location-provider. We could try to do that in that way. I need to think about this a little more. Maybe initialize function should take some options object.

from cordova-plugin-geofence.

adamalexander avatar adamalexander commented on July 20, 2024

Have anybody tried this? and willing to show how this can be done? it seems this repo is inactive :/

from cordova-plugin-geofence.

adamalexander avatar adamalexander commented on July 20, 2024

Since the repo is dead. I'm just going to share what did to overcome this, for anybody who may be faced with this problem.

I used this background geolocation polling plugin. and enabled start on boot and turned off stop on app terminate. The data generated when the GPS is activated in this plugin will be utilized by Google Play Services for the Geofence API in the background. Be conservative, because battery life will be an issue if not handled well.

https://github.com/mauron85/cordova-plugin-background-geolocation

from cordova-plugin-geofence.

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.