Coder Social home page Coder Social logo

Comments (2)

cpeeyush avatar cpeeyush commented on June 26, 2024

I don't think that geo location api has an call back or status for just closing the info bar or as you said dialog.

It only has 3 error codes:

PERMISSION_DENIED (1) if the user clicks that “Don’t Share” button or otherwise denies you access to their location.
POSITION_UNAVAILABLE (2) if the network is down or the positioning satellites can’t be contacted.
TIMEOUT (3) if the network is up but it takes too long to calculate the user’s position. How long is “too long”? I’ll show you how to define that in the next section.

You can keep a variable in your js with a default value something like "Location Not Detect Yet" & update it based on the Allow or Deny action so that you can identify whats happening.

from javascript-mobile-desktop-geolocation.

estebanav avatar estebanav commented on June 26, 2024

thanks @cpeeyush for the clarification to @Jakobud

from javascript-mobile-desktop-geolocation.

Related Issues (6)

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.