Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have the Openlayers 3 Geolocation API working on non-mobile browser correctly, but I get 'User Denied Geolocation' error testing on mobile devices.
Openlayers 3 Geolocation API
'User Denied Geolocation' error
What could be the reasons of this error?
If it helps, i'm using chrome in my mobile device.
What happens is exactly what the error message says: 'User denied Geolocation'. You have to change your mobile browser's privacy settings to grant your OpenLayers web page access to the geolocation.
'User denied Geolocation'
Required, but never shown