[w3c/permissions] After granting location permissions to the Geolocation API, it will request permissions again when you refresh the page. This phenomenon is occurring on iOS. (Issue #422)

When you grant location information permission for the first time and refresh the page, you will be asked for location information permission again and must grant permission. Currently, this phenomenon only occurs on iOS. Is there no 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>
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/issues/422
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/permissions/issues/422@github.com>

Received on Thursday, 26 October 2023 06:29:48 UTC