Coder Social home page Coder Social logo

Offline Mode about cordova-plugin-geolocation HOT 2 CLOSED

apache avatar apache commented on May 28, 2024
Offline Mode

from cordova-plugin-geolocation.

Comments (2)

breautek avatar breautek commented on May 28, 2024 9

Using the GPS without having a mobile/wifi connection available will result your device relying solely on GPS satellites. It can take a really long time to receive a "GPS Fix" to the satellites. Even in perfect conditions, it can take upwards of 10-15 minutes for an average phone to get a satellite fix. Note that once, the phone has received the satellite fix, gps updates will become much more stable. The satellite positions will be cached, so the next time the GPS requires a fix, in theory should be a lot quicker from a "cold" startup. Note that this doesn't have anything to do with the library or the phone itself. This is simply how GPS satellites and hardware work.

Ideal conditions is being outside, clear weather, open skies (no tall buildings/mountains). Things that can interfere with GPS signals is being in large buildings, poor/stormy weather, lots of physical objects in the way limiting the "sky visibility", etc. The following documents may explain why it takes so long to start up better than I can:
https://en.wikipedia.org/wiki/Time_to_first_fix
https://gpslogger.app/gps-fix-details.html

The reason GPS works quickly when internet access is available is because of "A-GPS" (Assisted-GPS) which completely skips the requirement to look for & connect to several satellites. So obviously, if possible, it's best to have an online connection, but if offline support is necessary then you'll need to be prepared for a lengthy period of time before the phone can begin receiving GPS events.

I realize this is probably not an answer you were expecting, but I hope this information helps provide you a better understanding of GPS technology and in turn, help you make informed decisions in your app development.

from cordova-plugin-geolocation.

BilalAdhi avatar BilalAdhi commented on May 28, 2024

Can anyone please reply me?

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.