HTML5 geolocation is used whenever a mobile website is created and requires the user to get the current location on click of a button. This works fine in mobile Chrome.
However, in Mobile Safari, the user is prompted to share location and the browser defaults to geolocation and then the browser defaults to a permission denied error
To resolve this issue, Mobile Services The geolocation service is turned on to obtain the requesting user's current location.
The above is the detailed content of HTML5 Geolocation 'Permission Denied' Error in Mobile Safari. For more information, please follow other related articles on the PHP Chinese website!