Giter Site home page Giter Site logo

Comments (7)

guolulu13204101 avatar guolulu13204101 commented on May 12, 2024 1

I added { enableHighAccuracy: true },but there is no return.

from cordova-plugin-geolocation.

utiq avatar utiq commented on May 12, 2024

Could you solve it? not working for me either, it doesn't even get into the error catch, it simple doesn't execute any log

from cordova-plugin-geolocation.

utiq avatar utiq commented on May 12, 2024

Actually I just fixed 😬, just add { enableHighAccuracy: true }

from cordova-plugin-geolocation.

Hanzofm avatar Hanzofm commented on May 12, 2024

I am trying on a

Samsung J5 with android 7.0
cordova 8.0
cordova-android 7.1.2 / 7.11 / 7.00

The method
this.geo.getCurrentPosition({timeout: 30000, maximumAge: 0, enableHighAccuracy: true})

Jumps to catch with no error descrition
{}

What would be wrong?

from cordova-plugin-geolocation.

 avatar commented on May 12, 2024

Adding { enableHighAccuracy: true } also fixed it for me on Android. Will test with different Android versions tomorrow.

from cordova-plugin-geolocation.

breautek avatar breautek commented on May 12, 2024

I've made a detailed answer on #119 on why obtaining GPS may be slow or not possible. Using { enableHighAccuracy: true like @maitscha suggested may help, but that option will only work if the user has the Android's GPS settings configured in a certain way. Unfortunately this is also something outside of Cordova or the apps control.

#119 (comment)

from cordova-plugin-geolocation.

breautek avatar breautek commented on May 12, 2024

Closing due to lack of response.

from cordova-plugin-geolocation.

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.