Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

callback for ignoring geolocation request? #3

Closed
Jakobud opened this issue Aug 22, 2013 · 2 comments
Closed

callback for ignoring geolocation request? #3

Jakobud opened this issue Aug 22, 2013 · 2 comments

Comments

@Jakobud
Copy link

Jakobud commented Aug 22, 2013

When Chrome or Firefox ask to give geolocation permission, you can either Allow or Deny OR just close the dialog, neither allowing or denying. Is there a callback for this action?

@cpeeyush
Copy link

cpeeyush commented May 3, 2014

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.

@estebanav
Copy link
Owner

thanks @cpeeyush for the clarification to @Jakobud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants