Vyhľadajte odpoveď

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

ERROR(1): User denied geolocation prompt

  • 10 odpovedí
  • 2 majú tento problém
  • 67 zobrazení
  • Posledná odpoveď od cor-el

more options

I have Firefox 65.

I've made a very simple Geolocation demo exactly like the example here: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition#Example

Here's the demo: https://demo.footstepsmarketing.com/locator.html

I can confirm that it does work in Firefox 63, but does not in 64 onwards. Any insight would be much appreciated.

Všetky odpovede (10)

more options

Works fine here in Firefox 65. Firefox asks for permission to use Geo Location when I open the page. If I allow then I see the report in the Web Console. If I deny then I see the error message you reported.

more options

Strange, I've tried from multiple IPs using a VPN and I get the same error. Good to know it works for some people, I've been concerned about client complaints. I'm wondering if it's an about:config setting. I should note I also get the same error in Safari, but not Chrome.

more options

The code is OK, but you have to go to Options -> Privacy & Security -> Pemissions -> Location -> Settings and add your site to exceptions or turn off Block new requests asking to access your location at the bottom of the window.

Upravil(a) TyDraniu dňa

more options

TyDraniu, already done, no luck.

more options

blankride said

Strange, I've tried from multiple IPs using a VPN and I get the same error. I should note I also get the same error in Safari, but not Chrome.

Using VPN is also another reason geolocation doesn't work. And since there no option to confirm how your using Chrome with or without VPN to know if geolocation is working. Also using that link a confirmation popups to use your location and when it detects VPN that could also be part of the problem as well. Or if they click no then that would cause a fault and it would give a Access Denied to geolocation and thus it will block access.

Upravil(a) WestEnd dňa

more options

What is the setting of this permissions pref on the about:config page?

  • permissions.default.geo = 0 (default)

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

more options

WestEnd said

blankride said
Strange, I've tried from multiple IPs using a VPN and I get the same error. I should note I also get the same error in Safari, but not Chrome.

Using VPN is also another reason geolocation doesn't work. And since there no option to confirm how your using Chrome with or without VPN to know if geolocation is working. Also using that link a confirmation popups to use your location and when it detects VPN that could also be part of the problem as well. Or if they click no then that would cause a fault and it would give a Access Denied to geolocation and thus it will block access.

@WestEnd I've tried with and without a VPN from work and home, still the same result. It's not just a Firefox issue either, (Desktop) Safari has the same problem.

more options

cor-el said

What is the setting of this permissions pref on the about:config page?
  • permissions.default.geo = 0 (default)
You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

It is set to permissions.default.geo = 0. Changing it to 1 doesn't give me the prompt to "Allow Location Access", but still gives me the same "ERROR(1): User denied geolocation prompt"

more options

Ok I clicked on the link to permit and nothing shows up so what exactly is the problem from the software programmed says? That site, I click was just a white space page nothing showing. Even in Chrome the site you demo gave doesn't work so I think unless we can see the site your using that says is the problem this so far from the link shows it a site problem not a Browser issue. And Chrome is 72 version as well.

more options

The website shows the geo location info or the error message in the Web Console, so you won't notice any reaction apart from the dialog to ask permission for the location.