ERROR(1): User denied geolocation prompt
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.
所有回覆 (10)
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.
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.
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.
由 TyDraniu 於
TyDraniu, already done, no luck.
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 於
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.
WestEnd said
blankride saidStrange, 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.
cor-el said
What is the setting of this permissions pref on the about:config page?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.
- permissions.default.geo = 0 (default)
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"
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.
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.
- "3-bar" menu button or Tools -> Web Developer
- https://developer.mozilla.org/en-US/Tools/Web_Console