Giter Site home page Giter Site logo

Comments (1)

breautek avatar breautek commented on May 27, 2024

If the device doesn't have an active GPS satellite fix, it can take a significant amount of time (>= 15 mins sometimes) to obtain a GPS location from the satellites.

A-GPS features, if supported & enabled, solves that issue, (using wifi, bluetooth, cellular towers, internet etc). If you have older phones, it's possible that they don't have complete A-GPS features implemented and disabling internet forces it to solely rely on GPS satellites.

Also note that Cordova doesn't maintain an actual geolocation implementation for Android. The plugin is purely for managing the required permissions and android project configuration. The geolocation implementation is provided by the system webview itself, so any bugs with the webview geolocation API needs to be brought to the Chromium team. (But in this case, I think on those devices, when internet is disabled, it solely relies on GPS satellites which is accurate, but extremely slow)

I also have a bigger spiel on location accuracy / timeout reasons that may be relevant to you: https://gist.github.com/breautek/d6231fa33d6942c269296546892afb5e

I'm closing this issue as I don't believe this is a bug with cordova-plugin-geolocation. If you can be sure you're in a healthy location spot (e.g. other apps can obtain GPS fine in the same device configuration) and still have problems, I'd recommend trying to isolate the issue by using a simple cordova reproduction app without using the ionic framework. With the sample reproduction app that contains only cordova packages we can provide better insight.

Kind regards,
Norman

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.