After granting location permissions to the Geolocation API, it will request permissions again when you refresh the page. This phenomenon is occurring on iOS.

If you refresh the page after initially granting location permissions, you will be prompted for location permissions again and will need to grant permission again. Currently this only occurs on iOS. Is there a way?

The tested iOS versions are 16.2 and 17.

This is the code implemented when retrieving location information.

<script>
        var options = {
            timeout: 15000,
            enableHighAccuracy: true,
            maximumAge: 86400000,
        };

        function success(pos) {
            var crd = pos.coords;

            alert('Your current position is:');
            alert(`Latitude : `+crd.latitude);
            alert(`Longitude: `+crd.longitude);
        };

        function error(err) {
            alert(`ERROR(): `+err.message);
        };
        navigator.geolocation.getCurrentPosition(success, error, options);
</script>