-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
[Violation] Only request geolocation information in response to a user gesture #7
Comments
Hi @gkrinc , I keep getting this error:
I'm doing a similar usage of usePosition, so I don't think I'm breaking any hooks rules (but I might be)? Did you run into this issue at all/know of a fix? thanks :) |
The issue is that the browser requires SSL for this to work, here is one quick solution: HTTPS
This will setup and install a SSL certificate, and allow you to run GeoLocation. |
Eu estava encontrando o mesmo problema utilizando o chrome. Tentei também no safari e deu o mesmo erro. |
I'm seeing an this
Violation
increasing continuously on the page[Violation] Only request geolocation information in response to a user gesture.
This is my usage of
usePosition
This seems to only be happening in Chrome. Safari and Firefox aren't reporting the same violation. I did notice in Firefox though that if I didn't check the box to remember me allowing location services the box repeatedly popped up to ask me to allow. Is this related?
The text was updated successfully, but these errors were encountered: