Knowledgebase

Working With Location and Device Capabilities Print

  • webdevelopment, security, woocommerce, permissions, guide, howto, solution, zillionkinghost
  • 0

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.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot