BUG | usePermission
| IOS geolocation remains as "prompt" even though the user has granted access
#4779
Labels
Hey!
When trying to get whether the persmission has been granted to access the device's geolocation, the value returned by
usePermission('geolocation')
remains as "prompt" even though the user has indeed granted the access.I see this behaviour in iOS (18.4.1) and macOS (Sequoia 15.2), on different browsers.
However, I could test this scenario in other OS (Linux, Windows) and this is not a problem, the output of
usePermission('geolocation')
is correctly updated from "prompt" to "granted".To try this, you can go to this vueuse playground and see the red "status" element value.
Another consideration about this, in Apple devices, if the location has been granted to a certain page, this change is not reflected in the
Privacy & Security > Location
browser's section. However, in other OS this permission granted appears there.See a screen recording of all this. When I grant access to the location, this permission does not appear in the browser settings and the "prompt" value is not updated even though the coords are successfully obtained.
video.mov
As a conclusion, I guess it's not a bug related to vueuse but more about about iOS / macOS devices.
Originally posted by @oscaroteromar in #3874 (comment)
The text was updated successfully, but these errors were encountered: