Skip to content

BUG | usePermission | IOS geolocation remains as "prompt" even though the user has granted access #4779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
OrbisK opened this issue May 28, 2025 · 0 comments

Comments

@OrbisK
Copy link
Collaborator

OrbisK commented May 28, 2025

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)

@OrbisK OrbisK changed the title BUG | usePermission | remains as "prompt" even though the user has granted access BUG | usePermission | IOS geolocation remains as "prompt" even though the user has granted access May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant