I am developing a webpage using "geolocation" and for that I need to allow access and deny access many times a day just to see how it works with my code. Here is just a code example.
<script>
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
/* navigator.geolocation.getCurrentPosition(showPosition, showError);*/
} else {
alert("Geolocation is not supported by this browser.")
}
</script>
All of a sudden It always denies tracing my location and when I click the trace icon it says
"The following sites have been blocked from tracking your location on this page <my page name>"
And below it says
"Settings will be cleared on next reload"
I've tried to reload the page, I've tried to restart Google Chrome, I've entered in the location settings but the block list is empty so I can't find my page there either.
So what can I do? I can't continue to develop my page as long as my page is permanently blocked.
Launch the Chrome browser on your Android device. options, and select the Settings menu. Scroll to the Advanced section, and tap on Site Settings. Enable or Disable the Location toggle button to Allow or Block the request.
This occurs when the geolocation services fail. For some patrons, this error message may appear if you are using an outdated browser such as Internet Explorer 8. Try installing a new browser (e.g., Firefox) and try again. This occurs when the geolocation services fail.
TL;DR: Settings > Clear Browsing Data > Advanced > check 'Hosted App Data' > Clear Data
Walkthrough:
Further note:
For development work, you can override geolocation in Chrome DevTools. See the following article for instructions: https://developers.google.com/web/tools/chrome-devtools/device-mode/geolocation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With