Skip to content
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

iOS/Safari: Compass arrow not shown #40

Closed
steinbro opened this issue Jul 8, 2024 · 2 comments
Closed

iOS/Safari: Compass arrow not shown #40

steinbro opened this issue Jul 8, 2024 · 2 comments

Comments

@steinbro
Copy link
Member

steinbro commented Jul 8, 2024

Error in console when enabling the primary location tracking mode:

Unhandled Promise Rejection: NotAllowedError: Requesting device orientation access requires a user gesture to prompt

This seems to be an iOS-specific thing: https://dev.to/li/how-to-requestpermission-for-devicemotion-and-deviceorientation-events-in-ios-13-46g2

It's weird, because we do trigger the permission request via a user gesture (button click). Maybe Vue added a level of indirection that makes Safari think it's some other kind of event?

@sebastianovide I assume you're still seeing the compass arrow on Android?

@sebastianovide
Copy link
Contributor

nop. I don't see it in anymore anywhere (chrome, firefox and android app)

@steinbro
Copy link
Member Author

steinbro commented Jul 8, 2024

Should be fixed now. See comment in #39 for an explanation of what was going on in iOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants