Home  >  Article  >  Web Front-end  >  HTML5 Geolocation "Permission Denied" Error in Mobile Safari

HTML5 Geolocation "Permission Denied" Error in Mobile Safari

王林
王林forward
2023-09-10 14:17:021161browse

HTML5 Geolocation Permission Denied Error in Mobile Safari

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete