HTML5 geolocation 'permission denied' error in Mobile Safari


Whenever a mobile website is created and there is a requirement in which user is requested for current position on button click, then HTML5 geolocation is used.This is working fine in mobile chrome.

However when in Mobile Safari, the user is prompted to share location and browser defaults to geolocation then browser is defaulted to Permission denied error

To solve this, the Geolocation services in mobile services is turned on to get current location of requested user.

Updated on: 30-Jul-2019

309 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements