Forum Discussion
vovchyk
Apr 29, 2020Brass Contributor
Geolocation wrong (really wrong) in Edge but correct in Chrome
This is probably a Windows 10 API problem not an Edge issue, but geolocation is wrong - usually really, really wrong - in Edge... while Chrome gets my location dead-on. On the same computer. At the...
Arky007
Aug 27, 2021Copper Contributor
Both Chrome and Edge use the Windows Location Services endpoint for geolocation through the navigator.geolocator js api.
Edge obeys the Windows Location Privacy settings and Microsoft Store registered app consent store permissions. Chrome, which is not a MS store app, doesn't honor any of that. Just the site permissions.
So for Edge make sure the "Allow apps to access my location" option is on and if you are in an enterprise environment have your guys look up the admin templates for a GPO push.
That being said... The way the js navigator object works is mysterious. Sometimes I have observed the opposite. Chrome failed while Edge worked. Both scenarios with a geowatcher in high accuracy mode.
In other scenarios, with all these settings on just right, Chrome works but both Edge and a Powershell script using a geowatcher instance were BOTH WRONG.
Premiere support still hasnt got an answer for me on that one. Its going to take me a while to get in contact with the product group.
Edge obeys the Windows Location Privacy settings and Microsoft Store registered app consent store permissions. Chrome, which is not a MS store app, doesn't honor any of that. Just the site permissions.
So for Edge make sure the "Allow apps to access my location" option is on and if you are in an enterprise environment have your guys look up the admin templates for a GPO push.
That being said... The way the js navigator object works is mysterious. Sometimes I have observed the opposite. Chrome failed while Edge worked. Both scenarios with a geowatcher in high accuracy mode.
In other scenarios, with all these settings on just right, Chrome works but both Edge and a Powershell script using a geowatcher instance were BOTH WRONG.
Premiere support still hasnt got an answer for me on that one. Its going to take me a while to get in contact with the product group.
Bruno_Gachie
Jun 06, 2023Copper Contributor
For me it started to work in Edge as soon as I disable the permission the Edge application in Windows Location Privacy settings!
It's quite counter-intuitive... but that worked!
I'm using Windows 11 and Edge 114.
I worked with Google Maps and Edge Maps, also with Javascript API.
- BdoomzMar 22, 2024Copper Contributor
Bruno_Gachie OMG, thank you. This has been driving me crazy for months on end. You solution of turning location off for Edge - indeed counterintuitive - appears to have worked.
I searched and searched and finally must have used just the right combination of search terms to end up here. Just like the others, Chrome knows exactly where I am, but Edge is completely wrong (I'm near Toronto and it has me in Tacoma Washington, that's really wrong!). I get sent to US websites instead of Canadian ones. Can't access some websites etc.
- ZhaoHongyuJun 07, 2023Copper ContributorThank you very much. It has been bothering me all day