Hardware access from a page.
WHAT CAN BE ACCESSED
Approximate or precise location Camera and microphone Device orientation and motion Ambient conditions, on some devices
WHAT ALL REQUIRE
A secure connection and explicit permission.
WHAT TO EXPLAIN BEFORE REQUESTING
Why you need it, and what you will do with it.
WHY
Unexplained requests are refused.
WHAT TO REQUEST
The least precise option that serves the purpose.
WHY
Approximate location is frequently sufficient, and is less intrusive.
WHAT TO HANDLE
Refusal Unavailability Timeout, since location can take time or fail Inaccuracy
WHAT TO NEVER DO
Request access on page load Continue requesting after refusal Store location data without a basis for doing so
WHAT OBLIGATIONS MAY APPLY
Location and media are personal data, and handling them carries responsibilities.
Take advice on your position.
WHAT TO SHOW THE USER
A clear indication when the camera or microphone is in use.
WHAT TO PROVIDE
A way to proceed without granting access, wherever possible.