HTML5 geolocation 'permission denied' error in Mobile Safari

HTMLWeb DevelopmentFront End Technology

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.

raja
Published on 11-Apr-2018 17:11:18
Advertisements