3

Similar to this question, but in my case I am the web developer. How can I get the browser to ask the user again if they want to allow geolocation? I was hoping I could put some text in the page, something like, "This page's features are only available when geolocation services are active, but you have denied them for this site. Click here to try again."

I know how to change the browser to accept this, but how do I help the visitors to the page from any browser to simply turn it on at the click of a button.

Community
  • 1
  • 1
Octopus
  • 8,075
  • 5
  • 46
  • 66
  • I think the [Browser remembers the users decision](http://stackoverflow.com/questions/16353909/make-html5-geolocation-ask-permission-every-time-user-reloads-the-page) so you could either tell the person how to reset their browser for that page. Or you could make a little popup that asks if they want the location to be used. If they do then the browser will prompt them. – Noah Huppert Nov 05 '14 at 19:43
  • @Noah, Thats my question. How do i get the browser to prompt them again? – Octopus Nov 05 '14 at 19:46
  • Ik, It looks like a lot of web browsers remember the fact that the user denied location permission. So I do not think it is possible. – Noah Huppert Nov 05 '14 at 19:53

1 Answers1

1

What you are looking for is Permissions API. Unfortunately at the moment it only allows to get the status of a permission, and mandatory requesting a permission for given API is not supported in any browser.

transGLUKator
  • 642
  • 7
  • 17