Geolocation API not working (Win7)

您的反馈很重要!
回复
redfox
帖子: 68
注册时间: 2023年 10月 26日 21:15
来自: Czech Republic

Geolocation API not working (Win7)

帖子 redfox »

It seems that html5 geolocation api is not working correctly or not installed, because it does not work on any site I have tried.

OS Windows 7 64bit

(It does not depend if the WinRT is enabled or disabled in Catsxp experiments, because this service is not supported on Windows 7 at all.)

For example:

https://mylocationnow.io/
Enable the geolocation for this site, then see the section "Browser Geolocation" and click the button "See your location". The site still complains that it is not allowed to see my location.

The same with google.com - the only working geolocation is from my IP.
头像
catsxp
网站管理员
帖子: 3641
注册时间: 2022年 12月 26日 17:41

Re: Geolocation API not working (Win7)

帖子 catsxp »


Is this feature?
Test normal!
附件
2023-12-31 054139.jpg
2023-12-31 054139.jpg (58.73 KiB) 查看 19396 次
redfox
帖子: 68
注册时间: 2023年 10月 26日 21:15
来自: Czech Republic

Re: Geolocation API not working (Win7)

帖子 redfox »

Location by IP address works, but I mentioned the other option - browser (device) location by the API, which is below it on the mentioned page. You did not attach the correct screenshot.

See my attachment and FIX it, please. This function is very important, because the IP geolocation is very inaccurate.
附件
geo.png
geo.png (37.89 KiB) 查看 19392 次
头像
catsxp
网站管理员
帖子: 3641
注册时间: 2022年 12月 26日 17:41

Re: Geolocation API not working (Win7)

帖子 catsxp »

This feature requires support from the underlying system kernel
Win7 is not supported, regardless of whether this feature is enabled or not
redfox
帖子: 68
注册时间: 2023年 10月 26日 21:15
来自: Czech Republic

Re: Geolocation API not working (Win7)

帖子 redfox »

As a workaround, a custom geolocation profile in the Developer Tools can be used. You must however set it manually every time you want to use it, the settings is not permanent.
回复