Giter Site home page Giter Site logo

Comments (5)

breautek avatar breautek commented on May 26, 2024 1

A timeout errors means there isn't an acceptable GPS point available within the timeout period.

In my experience, this mostly happens when requesting for high accuracy positioning and the device location settings is set to GPS/Device only. When location mode is set to GPS only, it can take upwards of ~15 minutes before GPS information is available.

from cordova-plugin-geolocation.

Rmadhuprasanth avatar Rmadhuprasanth commented on May 26, 2024

@breautek Thanks for the reply
FYI We dint set location settings GPS alone
am i missing anything Please let me know.
Thanks

from cordova-plugin-geolocation.

jfoclpf avatar jfoclpf commented on May 26, 2024

I had the same error on a Xiaomi MIUI Android 11 device, and in my case strangely although you explicitly give location permission to the app, you still have to enforce that permission in Android Settings -> Location -> Toggle Location access. That is, the error in this case was PositionError.TIMEOUT and not PositionError.PERMISSION_DENIED

But thanks anyway for the tip @breautek cause it led me to the solution

from cordova-plugin-geolocation.

oesah avatar oesah commented on May 26, 2024

In my case it was also an issue with the GPS completely disabled in the phone. Thanks to @jfoclpf for this.

It would be amazing, if this plugin could detect if the GPD is completely disabled in the settings to we can actually notify the user about this. Is that already possible?

from cordova-plugin-geolocation.

breautek avatar breautek commented on May 26, 2024

It would be amazing, if this plugin could detect if the GPD is completely disabled in the settings to we can actually notify the user about this. Is that already possible?

Apache generally follows the W3C spec whenever possible or when it exists, and I don't believe that is part of the spec, so I don't think that would gain support. However, there is an existing third-party plugin available that does just that, take a look at the diagnostics. Just ensure you specify the modules that you need to avoid adding unneeded permissions.

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.