# Liveness Detection

> Source: https://very.org/docs/developers/liveness. All Very developer docs: https://very.org/llms.txt

Liveness Detection is Very's standalone product surface for proving that a real person is present during a verification moment. It can be used on its own for anti-spoofing and risk checks, or together with ZK-backed palm verification when you need to register or re-verify a known human.

## When to use liveness

-   Block photo, video, or replay attempts during onboarding.
-   Add a real-person check before a high-risk action.
-   Screen for live presence without requiring a full identity-binding flow.
-   Reduce bot, farmed-account, and synthetic-user abuse.

## How it works

1.  Your app starts a liveness check through Very's dedicated Liveness SDK, a separate SDK from the Palm Verification SDK used for palm verification.
2.  The SDK opens a guided camera flow and prompts the user to complete the liveness interaction.
3.  Very assesses the challenge evidence against the issued challenge.
4.  Very signs its decision. Your app receives a result code (`success`, `rejected`, `cancelled` or `error`), and your server checks the signed decision before acting.

**Your server creates each session and checks Very's signed decision.** That holds on the web and, from SDK 1.1.0, on iOS and Android: the server secret stays on your server, and your app's own "success" is not enough to act on. See the [Web](https://very.org/docs/liveness-sdk/web.md), [iOS](https://very.org/docs/liveness-sdk/ios.md) and [Android](https://very.org/docs/liveness-sdk/android.md) guides. A liveness check binds no identity: if your product needs a persistent, backend-verifiable identity, pair it with [Palm Verification](https://very.org/docs/developers/palm-verification.md) rather than relying on liveness alone.

## Liveness vs palm verification

| Use | Purpose | Typical flow |
| --- | --- | --- |
| Liveness | Assess a guided palm challenge. The evidence alone does not prove a live person. | Guided camera check, pass/fail decision signed by Very, which your server checks. |
| Palm / human verification | Register a human or re-verify the same human later. | Palm capture, liveness, match/enrollment logic, signed verification result. |

## Implementation notes

-   On iOS and Android, call `isSupported()` before showing the liveness option.
-   Explain why camera access is needed before requesting permission.
-   Offer clear retry guidance when a scan fails: use `result.failureReason` on the web, `result.errorMessage` on iOS and Android.
-   On iOS and Android, call `prefetch()` early: the first check downloads the models (about 9 MB, once).
-   Do not treat user cancellation as a fraud signal.
-   iOS and Android: test on a physical device. The check needs a camera, and the iOS Simulator always returns an error.

See the [Liveness SDK overview](https://very.org/docs/liveness-sdk/overview.md) for installation and integration details. If your app also needs palm enrollment or re-verification, see the [Palm Verification SDK overview](https://very.org/docs/native-sdk/overview.md).
