FAQ
Quick links: Overview | Building the SDK | Start Liveness Verification | UI Customization | Installation | Current Version | Requirements | Source Code | Result Reference | Release Notes | FAQ
1. What is the CafFaceLivenessLite SDK and what is its main functionality?
Answer:
The Lite SDK provides a smaller, streamlined face liveness verification flow. It detects spoofing attempts to secure onboarding and authentication.
2. What are the system requirements for the Lite SDK on iOS?
Answer:
Supports iOS 15.0+, Xcode 26.0+, and Swift 6.3+. See the Requirements.
3. What permissions are required to use the Lite SDK?
Answer:
Camera access (
NSCameraUsageDescriptioninInfo.plist)Internet access (ATS exceptions if necessary)
4. How do I integrate the Lite SDK into my iOS project?
Answer:
Use SPM or CocoaPods to add dependencies, then instantiate CafFaceLivenessLiteSDK, set its delegate, call setup with your credentials, and call startSDK. See Installation and Start SDK.
5. How do I start the Face Liveness verification process?
Answer:
Set the delegate.
Call
setupwithmobileTokenandpersonId.Optionally call
prewarm()to request the session in advance.Call
startSDKwithviewController.Handle callbacks in
CafFaceLivenessLiteDelegate.
See Start SDK.
6. What errors and failures should I handle?
Answer:
Handle didFinishWithError(type:description:) for execution errors (camera, network, token) and didFinishWithFailure(type:description:signedResponse:) for business failures (lighting, alignment). See Result Reference.
7. Can I customize texts or localization?
Answer:
Yes. Pass customLocalization (strings table name, omit .strings) to setup. If the strings live outside the main app bundle, also pass customLocalizationBundle (for example Bundle(for: CafFaceLivenessLiteSDK.self)). See iProov Localization.
8. Can I chain FaceAuth after liveness?
Answer:
No. From 2.0.0, executeFaceAuth was removed — Face Auth is out of scope for the async Lite flow. Use the full Face Liveness / Face Auth products if you need authentication after liveness.
9. What does signedResponse mean and when is it delivered?
Answer:
The signedResponse is an opaque JWT issued when the liveness session is created. From 3.1.0, it is delivered the moment the capture completes, via didFinishWithSuccess and also via didFinishWithFailure, where it is always present. Your backend must resolve the final liveness result (isAlive, images) out-of-band. The SDK does not poll.
10. What is the enableSecurity parameter and when should I disable it?
Answer:
enableSecurity is a constructor parameter (default: true) that activates security monitoring — jailbreak detection, dylib monitoring, and instrumentation detection. When a violation is detected, didFinishWithError is called with CafErrorType.securityException.
Disable it (enableSecurity: false) only in automated UI testing environments where the test runner triggers false positives. Keep it enabled in production builds.
11. What does prewarm() do, and when should I call it?
Answer:
prewarm() performs the session request ahead of time so that startSDK can open the camera without waiting on the network. Call it after setup, at a point where the user is already occupied — an instructions screen, a consent step, a form — so the round trip overlaps with their reading time.
It is entirely optional. A prewarmed session is valid for 90 seconds and is consumed by the next startSDK call. If it is missing, expired, or was created with different credentials, startSDK silently falls back to requesting the session inline, so prewarming can never break a capture. If you never call it, the flow behaves exactly as it did before 3.0.0.
prewarm() reports nothing — it has no completion handler and never calls the delegate. Note that on the prewarmed path no loading() / loaded() pair is emitted for the session request.
Atualizado

