How to access the geolocation [working in Chrome but not in Vivaldi ]
deejaydev last edited by
I am working web-extension and trying to retrieve current weather based on users' geolocation. I am using the HTML Geolocation API... I'm able to retrieve users location on Chrome but for some reason After I accept the location prompt it's not retiring my location in Vivaldi
Can someone tell me if I am doing something wrong?
Is there a setting I am supposed to change for this?
There's an help page for that, F1, type geolocation. See if there's some helpful hints.
HTML Geolocation API
I tries on my Windows 10. This example for HTML5 geolocation works for me.
Would be interesting wihch OS and extension code you use for getting geolocation.
@Gwen-Dragon It doesn't produce any result in Windows 7 32 bit for me. I allowed Location, Notifications, popups on the whole site. Disabled also uBO to be sure it doesn't block anything (infact now I see an Ad banner on top of the page). After some "waiting for (various domains)" "Estabilishing (etc)" in the status bar, no message about my location is displayed anywhere
@iAN-CooG Windows 7 has not the same Geolocation service as Windows 10.
Vivaldi can not use Google's Geolocation API as this service is paid and Chrome-only service.
@Gwen-Dragon Thanks for the clarification, so it's a win10 only service.
@iAN-CooG In the past (as i know for Vivaldi on all Windows and Linux versions) Mozilla Location Service was used to get location. Mozilla closed this service unexpectedly last year without any notice and thats why webpages on Vivaldi often can not show current location.
Location Services are existing but have to be paid per year and browser installations, costing too much resources for small Vivaldi company.
@Gwen-Dragon Ahh yes, I forgot about that. Not having a need of geolocation on my Home PC it's something I can easily forget, probably will do again in few months