-
Notifications
You must be signed in to change notification settings - Fork 21
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
Request for Magnetometer web developer feedback #59
Comments
I enabled the API but I think the magnetometer api should be like the movement (accelerometer/gyro) api. and it need at least 60 updates per second (like the other APIs) to be useful for a wider range of application aside from finding metals and "north". |
@Zibri thanks for your interest toward this API. What are your specific use cases that need at least 60 updates per second? As you probably noticed, the maximum sampling frequency is limited to mitigate possible threats discussed in https://www.w3.org/TR/magnetometer/#security-and-privacy This API needs to strike a balance between functionality, privacy and security. Strong real-world use cases would help motivate work on solutions that'd allow relaxing this limitation while preserving the privacy and security characteristics of the API. You can read more about security and privacy considerations for sensor APIs in general Looking forward to your use case contributions! |
Threats? I don't agree (I'm a security consultant) I think authorization should be used like camera/microphone and then be free to experiment with it, allowing to use a PWA instead of writing a normal application. Off topic: |
via https://www.w3.org/2021/10/29-dap-minutes.html#t08
Call for web developer feedback
📢 Web developers! To help accelerate the spec advancement, please share your use cases that require Magnetometer as well as any pointers to web experiments or prototypes using the Magnetometer. You can simply drop a comment into this issue.
Your contributions will be acknowledged in the update to the use cases documented in the spec and will help browser implementers prioritize this API accordingly.
How to enable the Magnetometer API for experimentation
Enable
chrome://flags/#enable-generic-sensor-extra-classes
flag in Chromium-based browsers. For all supported browsers and versions, see https://caniuse.com/magnetometerSpec
https://w3c.github.io/magnetometer/
Demos
https://github.com/intel/generic-sensor-demos
Developer docs
https://web.dev/generic-sensor/
https://w3c.github.io/motion-sensors/
https://developer.mozilla.org/docs/Web/API/Magnetometer
The text was updated successfully, but these errors were encountered: