SteveBlum / circum

A simple page which rotates between multiple websites using iframes
GNU General Public License v3.0
3 stars 0 forks source link

Geolocation request failing in Chromium #16

Closed SteveBlum closed 11 months ago

SteveBlum commented 11 months ago

Describe the bug The default weather frame of circum requests the geolocation of the user. When executed in Chromium (and PWAs), this request fails with the following message:

Network location provider at 'https://www.googleapis.com/' : Returned error code 403.

To Reproduce see above

Expected behavior Geolocation requests should succeed on major browsers (FIrefox, Safari, Chromium-based browsers) as well as PWAs.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Possible solution discussed here: https://stackoverflow.com/questions/41137594/network-location-provider-at-https-www-googleapis-com-returned-error-code

SteveBlum commented 11 months ago

As far as I can tell, this is happening because of Chromium requires Google API Keys to be registered in order for many functions to work: https://www.chromium.org/developers/how-tos/api-keys/ This was news to me.

SteveBlum commented 11 months ago

Reopening as this issue since I could also reproduce this issue on some (not all) of my mobile devices. The possible root-cause for them is a missing SIM card and therefore a missing cell tower connection, however this is not clear. Based on many posts I found online describing the exact same problems for years, I will write a fallback logic based on the public IP address instead. This will be less precise but it will always work.