Requirements
Supported platforms, network and Content Security Policy settings, and the conditions for a good measurement.
Platforms
| Requirement | |
|---|---|
| Web SDK | Recent Chrome, Edge, Firefox or Safari, on desktop or mobile. The page must be served over HTTPS (or from localhost) — browsers allow camera access only there |
| iOS SDK | iOS 16.0 or later, a current Xcode release, an iPhone or iPad with a front camera |
| Your server | Any language that can compute HMAC-SHA256 and make HTTPS requests |
See Browser support and iOS installation for details.
Network
Cloud mode needs a steady upload of about 1–1.5 Mbit/s for the whole measurement —
about 10 MB for 60 seconds. On networks that block WebSockets, keep the Web SDK's default
delivery: 'auto': the measurement then completes by upload instead of failing.
On-device mode in the browser downloads the SDK runtime — tens of megabytes — when the
measurement starts. The measurement itself needs no network. Call prefetchMeasurement()
early to start the download before the person presses Start.
The iOS SDK needs a network connection only when you store results.
Origins to allow
| Origin | Used for |
|---|---|
https://neccessory.com | REST API, the Web SDK script, SDK runtime files |
wss://infer.neccessory.com | Live cloud processing. Always use the wsUrl host from your session |
https://cdn.jsdelivr.net | Face-tracking library loaded by the Web SDK |
Content Security Policy
If your page sets a Content Security Policy, add these sources:
script-src 'self' 'wasm-unsafe-eval' https://neccessory.com https://cdn.jsdelivr.net;
connect-src 'self' https://neccessory.com wss://infer.neccessory.com https://cdn.jsdelivr.net;
worker-src 'self' blob:;
img-src 'self' blob: data:;| Directive | Why |
|---|---|
script-src | The Web SDK, its runtime and the face-tracking library. 'wasm-unsafe-eval' lets them run WebAssembly |
connect-src | API calls, runtime downloads and the live connection for cloud mode |
worker-src | The SDK processes video in web workers |
img-src | Camera preview and face overlay |
If cdn.jsdelivr.net is blocked, the SDK fails while loading (load_failed). You can host
the face-tracking library yourself — see the mediapipeBase option in
Configuration.
Conditions for a good measurement
The quality of the video decides the quality of the result. Show these tips before the measurement starts:
| Tip for the person | Why |
|---|---|
| Sit still and don't talk | Movement is the most common cause of a weak signal |
| Face a light source; avoid bright light behind you | Even light on the face gives a clean signal |
| Keep your face in the frame, about an arm's length from the camera | A face that is too small or cut off cannot be measured |
| Keep your forehead and cheeks uncovered | Hair, a mask or a cap hide the skin the measurement reads |
| Hold on until the measurement ends | HRV, stress and blood pressure need 30 seconds or more |
During the measurement the SDKs report live quality and hints — onRealtime and, in
cloud mode, onCoach in the Web SDK; onRealtime with hint in the iOS SDK — so you can
show the right tip at the right moment. See Signal quality.
Limitations
- Blood pressure and SpO2 are beta estimates. They do not replace a cuff or a pulse oximeter.
- HRV from a camera is less precise than from an ECG or a chest strap.
- Very dim light, strong colour casts and low-quality cameras reduce accuracy. The
quality rating reflects this, and a
poormeasurement returns no values.
Neccessory is for general wellness use and is not a medical device — see the disclaimer.