For the complete documentation index, see llms.txt. This page is also available as Markdown.

Failure Reasons and User Guidance

When the capture runs to the end but is not approved, the SDK returns a Failure event. Its type parameter, a CafFailureType enum, gives the most likely reason, so you can guide the user to pass on the next attempt.

Most failures can be solved by the user with good guidance about light, distance, position and stability.

Some common situations are not failures. Camera access denied, a connection that drops, a service that is unavailable or an expired token stop the run before any capture is evaluated, so the SDK returns an error instead, with no signed response. See Android Error Handling and iOS Error Handling.

The Failure Structure

public sealed interface LivenessLiteEvent {

    public data class Failure(
        val signedResponse: String,
        val type: CafFailureType,
        val description: String,
    ) : LivenessLiteEvent
}
public protocol CafFaceLivenessLiteDelegate: AnyObject {
    // ...
    func didFinishWithFailure(type: CafFailureType, description: String?, signedResponse: String?)
}
Parameter
Description

signedResponse

The signed result from the server. Send it to your backend, like a success.

type

The most likely reason for the failure. Use it to choose the user message.

description

A technical message in English. Use it for logs, not for your end users.

How to Read the type

The liveness analysis is done by an artificial intelligence model. It evaluates the capture and assigns each failure its most likely reason. This classification is probabilistic: the model may return a reason that does not seem to match what happened. For example, it can report too much light in a room that looks normally lit, or eyewear for a person who is not wearing glasses.

Treat the type as an indication of the most likely cause, not as an exact description of what happened. The causes listed on this page are the ones most commonly linked to each type, with no guarantee that they are the real cause in a specific session.

When the analysis suspects that the capture is not of a real person in front of the camera, the liveness service returns generic guidance on purpose, so it does not reveal what was detected. In these cases, types such as MOTION_ISSUE and DEVICE_ISSUE may not reflect the real cause. This is one more reason to keep the messages neutral and to treat repeated failures as a pattern to investigate, not as a user mistake.

Rules for All Messages

  1. Guide the next attempt. During the capture, the capture screen already shows real-time instructions, such as "Move closer" or "Please keep still". The messages on this page are shown after an unsuccessful attempt, so they say what to do on the next one.

  2. Security over specificity. Never tell the user that fraud is suspected, which security check failed, or whether a face is registered for a person. This information helps whoever is trying to bypass the journey.

  3. Neutral tone. Messages describe what to do, without saying what the person did wrong. The model's reading may be wrong, and an accusing message makes the experience worse for legitimate users.

The recommended messages on this page come from a study by the Certta UX team. The study considered clarity, neutral language, accessibility and the security of the journey.

Quick Reference

The failure types are the same on both platforms, with different spelling. The table shows both. The Result image column tells whether your backend can expect an image when it retrieves the result of the attempt.

The table lists only the types returned by the current versions. Older types that are no longer returned, such as TOO_DARK or FACE_TOO_FAR, are in Legacy Types.

Android
iOS
Reason
Recommended message
Result image

UNKNOWN

unknown

Unclassified failure

We couldn't complete the verification. Please try again.

Usually available

LIGHTING_ISSUES

lightingIssues

Unsuitable lighting

Make sure your face is well lit and free from glare.

Available

FACE_NOT_FOUND

faceNotFound

Face position in the guide

Hold the front camera at eye level.

Not available

EYES_CLOSED, EYEWEAR

eyesClosed, eyewear

Eye area not confirmed

Make sure your eyes are visible.

Available

OBSCURED_FACE

obscuredFace

Face covered

Make sure your whole face is visible and remove any accessories that might cover it.

Available

MULTIPLE_FACES

multipleFaces

More than one face

Make sure only your face appears on the screen.

Available

FRAMES_BLURRY

framesBlurry

Blurry image

Find a well-lit place, clean the front camera and hold your phone steady.

Available

MOTION_ISSUE

motionIssue

Movement inconsistency

Hold your phone still at eye level and fit your face in the oval.

Available

BACKGROUND_ISSUE

backgroundIssue

Background or contrast

We couldn't complete the verification. Please try again.

Available

DEVICE_ISSUE

deviceIssue

Device or environment

We couldn't complete the verification. Please try again.

Available

DEVICE_RESTART

deviceRestart

Device restart

We couldn't complete the verification. Please try again.

Available

SYSTEM_ERROR

systemError

System error

We couldn't complete the verification. Please try again.

Available

USER_NOT_FOUND

userNotFound

User not registered

We couldn't complete the verification. Please try again.

Available

REJECTED

rejected

Transaction rejected

We couldn't complete the verification. Please try again.

Available

TIMEOUT

timeout

Time limit reached

We couldn't complete the verification. Please try again.

Available

PROCESSING_FAULT

processingFault

Processing failure

We couldn't complete the verification. Please try again.

Not available

Unclassified Failure

UNKNOWN

What it means: the session ended without approval, but the analysis could not assign a specific reason. It is an umbrella result: something prevented a safe decision, without saying what.

Common causes:

  • Several small factors at the same time (a little movement, uneven lighting, the face slightly off-center).

  • An ambiguous result, where the analysis did not gather enough evidence to decide.

  • Old or entry-level devices with lower-quality cameras.

  • Fraud prevention blocks.

Recommended message: We couldn't complete the verification. Please try again.

Behavior: new attempt.

Retry: yes. If it keeps happening, contact Certta support.

Unsuitable Lighting

LIGHTING_ISSUES

What it means: the lighting got in the way of the analysis, but the result does not say whether there was too much or too little light. It usually involves strong light on the face, a dark environment, uneven light, shadows or reflections.

Common causes:

  • Strong light pointed straight at the face, such as a flashlight, a lamp or direct sunlight.

  • A bright window or strong light behind the user.

  • A poorly lit room.

  • Light coming from one side only, leaving half of the face in shadow.

  • Strong reflections on the skin or on glasses.

  • Accessories that cover part of the face and cast shadows or reflections on it, such as a headset or a cap.

  • Colored lights in the environment (LED, TV, signs).

  • The lighting changing during the capture.

In a completely dark environment, the capture does not start.

Recommended message: Make sure your face is well lit and free from glare.

Behavior: tip shown after the attempt.

Retry: yes. Let the user try again.

The message does not say whether to make it brighter or darker on purpose, because the type does not say which of the two.

Face Position in the Guide

FACE_NOT_FOUND

What it means: no face was found in the capture area at the moment of the capture.

Common causes:

  • The face leaving the oval right before the capture.

  • The phone below chin level.

  • The face tilted, in profile or shifted to one side of the oval.

  • The user looking at another point of the screen.

  • The camera pointed somewhere else, or the capture started before the user was in position.

  • A dark environment combined with a shaking device.

  • The lens covered by a finger, a case or dirt.

Recommended message: Hold the front camera at eye level.

Behavior: tip shown after the attempt.

Retry: yes. Let the user try again.

A FACE_NOT_FOUND does not return a result image. When your backend retrieves the result of this attempt, no image is available, so any step that depends on it, such as face matching or saving a reference photo, cannot run. Treat this attempt as having no image and ask the user for a new capture.

Eye Area Not Confirmed

EYES_CLOSED EYEWEAR

What it means: the analysis could not confirm the eye area. In practice, both types lead to the same situation: the eyes were not visible clearly enough.

Common causes:

  • Sunglasses, the most consistent cause of EYEWEAR.

  • Blinking at the moment of the capture.

  • Squinting because of the light.

  • Looking down.

  • Heavy eye makeup.

  • A hand near the face.

  • Accessories that cover part of the face near the eyes, such as a headset, a cap brim or a hood.

Prescription glasses usually do not cause this failure. It can also happen without glasses and with open eyes, because of a shadow or a reflection around the eyes, the phone angle, or a blurry image.

Recommended message: Make sure your eyes are visible.

Behavior: neutral tip shown after the attempt.

Retry: yes. Let the user try again.

Face Covered

OBSCURED_FACE

What it means: part of the face was covered by an object, which prevented a full analysis.

Common causes:

  • A mask, scarf or turtleneck covering the mouth and chin.

  • Accessories that cover part of the face, such as a headset with a microphone in front of the mouth.

  • A hand touching the face.

  • Hair or bangs over the eyes.

  • A cap, hat or hood covering the forehead.

  • A finger or case covering part of the lens.

Recommended message: Make sure your whole face is visible and remove any accessories that might cover it.

Behavior: tip shown after the attempt.

Retry: yes. Let the user try again.

More Than One Face

MULTIPLE_FACES

What it means: more than one face was found in the image, and the analysis could not be sure which one belongs to the account holder.

Common causes:

  • Another person behind or next to the user.

  • A child on the user's lap.

  • A photo, poster or TV with faces in the background.

  • The user's own reflection in a mirror.

Recommended message: Make sure only your face appears on the screen.

Behavior: tip shown after the attempt.

Retry: yes. Let the user try again.

Blurry Image

FRAMES_BLURRY

What it means: the captured images were not sharp enough for the analysis. This type also covers too much movement of the face or the device during the capture.

Common causes:

  • A dark environment combined with a shaking device, where the camera cannot capture sharp images. This is the most common case.

  • The user walking or inside a moving vehicle.

  • Adjusting the phone position in the middle of the capture.

  • A dirty or greasy front camera lens.

  • A screen protector or case over the lens.

  • Autofocus that did not adjust with the face too close.

  • Accessories that cover part of the face, such as a headset.

Recommended message: Find a well-lit place, clean the front camera and hold your phone steady.

Behavior: tip shown after the attempt.

Retry: yes. Let the user try again.

Movement Inconsistency

MOTION_ISSUE

What it means: the movement data recorded during the capture could not be used by the analysis. Besides the images, the analysis uses the motion data sent by the device. In most cases, this type means the device did not send this data correctly, for example because the motion sensor is missing, faulty or could not be read.

Common causes:

  • The device not sending motion data correctly.

  • No clear pattern, for example with a TV or monitor in the background, with a plain background or with the face turned in profile.

Moving or shaking the phone to fit the face in the oval does not usually cause this type: it tends to return FRAMES_BLURRY or FACE_NOT_FOUND instead. Since MOTION_ISSUE can also be generic guidance, it may not reflect the real cause. See How to Read the type.

How to guide the user: hold the phone still at eye level and move only the head to fit the face in the oval. A new attempt on the same device often succeeds. Suggesting another device only makes sense after several failures in a row.

Recommended message:

  • First failure: Hold your phone still at eye level and fit your face in the oval.

  • Repeated failures: Hold your phone still at eye level and fit your face in the oval. If the problem continues, restart your device or try another one.

Behavior: first failure, new attempt. Repeated failures, suggest restarting or changing the device only as a secondary tip.

Retry: yes. A new attempt on the same device often succeeds. If it keeps failing, suggest restarting the device or using another one.

Background or Contrast

BACKGROUND_ISSUE

What it means: the background of the image made it hard to separate the face from the environment.

Common causes:

  • A wall with a color similar to the skin tone.

  • A very bright background, with strong light behind the user.

  • A background with many elements, patterns or movement.

Recommended message: We couldn't complete the verification. Please try again.

Behavior: new attempt.

Retry: yes. Let the user try again.

Device or Environment

DEVICE_ISSUE

What it means: this type groups failures of different natures, related to the user's behavior, the environment or the device itself. The evaluation includes the capture quality, the lighting conditions, the device context and how the camera works.

Common causes:

  • Low capture quality.

  • Unfavorable lighting.

  • A camera problem, such as the camera being used by another app, or a momentary failure.

  • Device settings outside the standard, such as an emulator, active debugging, jailbreak or root.

It is also returned when the analysis does not identify a real person in front of the camera, as generic guidance. See How to Read the type.

Recommended message:

  • First failure: We couldn't complete the verification. Please try again.

  • Repeated failures: We couldn't complete the verification. Please try again. If the problem continues, restart your device or try another one.

Behavior: first failure, new attempt. Repeated failures, suggest restarting or changing the device only as a secondary tip.

Retry: yes. A new attempt on the same device can succeed. If it keeps failing, suggest restarting the device or using another one.

Android: debug builds and apps installed through ADB do not pass the liveness checks in the production and test environments. With enableSecurity = true (the default), a debuggable app is blocked earlier by the Certta device checks and the SDK returns a SECURITY_EXCEPTION error instead of a failure. With enableSecurity = false, the capture runs and returns DEVICE_ISSUE. See Security Checks before testing.

Device Restart

DEVICE_RESTART

What it means: the device is in a state that tends to be solved by restarting it.

Common causes:

  • The camera or other device resources stuck after a long time without restarting.

  • Overheating.

  • Low available memory.

Recommended message: We couldn't complete the verification. Please try again.

Behavior: new attempt.

Retry: yes. A new attempt on the same device can succeed. If it keeps failing, suggest restarting the device or using another one.

The current liveness analysis model is not expected to return this type. Keep handling it in your app in case it is returned.

For your support team: when a user reaches support after repeated failures with this type, asking them to restart the device usually solves it.

System Error

SYSTEM_ERROR

What it means: an internal error in the analysis processing, unrelated to the user's behavior.

Common causes:

  • Momentary instability.

  • A one-off communication failure between the components that process the analysis.

  • A sudden change of lighting during the capture, such as a light being switched on or off.

Recommended message: We couldn't complete the verification. Please try again.

Behavior: new attempt.

Retry: yes. If it keeps happening, contact Certta support.

User Not Registered

USER_NOT_FOUND

What it means: there is no biometric record of the user to compare the capture against.

When it happens: only in flows that compare the face with a face registered before, such as face authentication. It never happens in liveness-only or enrollment flows.

Recommended message: We couldn't complete the verification. Please try again.

Behavior: send the user to enrollment or to another channel.

Retry: no. A new attempt does not solve it.

The current liveness analysis model is not expected to return this type. Keep handling it in your app in case it is returned.

Transaction Rejected

REJECTED

What it means: the capture was done, but the transaction was refused because the user is on a blocklist. This list can be kept by the liveness service, based on attacks already identified, or provided by the client, for users who must not be approved. The refusal is not related to the capture quality or the environment.

Common causes:

  • A user linked to fraud attempts previously identified by the liveness service.

  • A user added by the client to its own blocklist.

This is a rare situation.

Recommended message: We couldn't complete the verification. Please try again.

Behavior: new attempt, with the same visible behavior as the other failures.

Retry: yes, with a limit of attempts on your side. A new attempt does not change the result. See the warning below.

For your support team: when a user reaches support after repeated failures with this type, first check whether they are on your own blocklist. If they are not, analyze the case together with Certta.

Time Limit Reached

TIMEOUT

What it means: the session went past the system time limit before it was completed.

Common causes:

  • A slow or unstable connection while the capture is sent.

  • A delay in processing the analysis.

Recommended message: We couldn't complete the verification. Please try again.

Behavior: new attempt.

Retry: yes. If it keeps happening, contact Certta support.

When the user opens the capture and does not position the face before the capture time ends, the SDK does not return this type. The run ends with a PROCESSING_FAULT failure. See Processing Failure.

Processing Failure

PROCESSING_FAULT

What it means: the capture ended, but it could not be processed.

Common causes:

  • The capture time ending before the user positioned the face in the oval.

  • A dark environment combined with a shaking device.

  • An upload interrupted or incomplete because the connection dropped.

  • A momentary failure in the analysis service.

Recommended message: We couldn't complete the verification. Please try again.

Behavior: new attempt.

Retry: yes. If it keeps happening, contact Certta support.

Legacy Types

The types below are still declared in CafFailureType so that existing integrations keep compiling, but the current versions no longer return them. The liveness service now returns the type in the Now returned as column for the same situations.

If your app already handles these types, keep the code and map each one to the same message as its current equivalent.

Android
iOS
Now returned as
Recommended message

TOO_BRIGHT, TOO_DARK

tooBright, tooDark

Make sure your face is well lit and free from glare.

SUNGLASSES

sunglasses

Make sure your eyes are visible.

MISALIGNED_FACE

misalignedFace

Hold the front camera at eye level.

TOO_MUCH_MOVEMENT

tooMuchMovement

Find a well-lit place, clean the front camera and hold your phone steady.

FACE_TOO_FAR, FACE_TOO_CLOSE

faceTooFar, faceTooClose

No failure. The capture does not start while the face is too far or too close, and the capture screen guides the user in real time.

Hold the front camera at eye level.

Retries and Investigation

Allowing new attempts

  • Allow at least two attempts. Three is the recommended practice.

  • Track completion within three attempts per user together with the first-attempt pass rate. As your user base grows, expect some genuine users to need more than one attempt.

  • Each attempt is assessed on its own. A genuine user can fail one attempt and pass the next one in apparently the same conditions. That is the system working as designed.

Helping users pass on the first attempt

Show short, visual guidance before the capture. These tips cover most failures:

  • Hold the phone at eye level and align the face in the oval.

  • Move your head, not the phone, to align the face with the oval.

  • Once the face is in the oval, keep still until the capture ends.

  • Make sure the face is well lit, with no strong light behind the user.

  • Keep the whole face visible, with eyes open.

  • Avoid capturing inside a moving vehicle.

Investigating cases

  • Look at completion per user, not at isolated attempts.

  • Look for patterns by device model, operating system version and SDK version.

  • Check the failure types returned for each attempt.

  • Compare each case against the guidance on this page before escalating.

When you escalate a case to Certta support, send the date and time, the failure type and the signedResponse of every attempt of the user.

Last updated