Face Liveness Detection SDK for Flutter
One Flutter plugin for Android and iOS that launches the native passive and active liveness screens – detection runs entirely on the phone, with no frames sent to a server.
What You Need to Run It on Flutter
These are the exact minimum and recommended requirements published in the FaceLivenessDetection-Flutter repository — check the repo directly for the latest version, since SDK requirements can change between releases.
Install and Activate
Add the plugin, place the engine runtime, then start the engine once with your license key before launching either liveness screen.
- Clone the repo and install Flutter 3.22 or newer. Add
face_liveness_sdkto yourpubspec.yamlas a git dependency pointing at the FaceLivenessDetection-Flutter repository. - Android: download
facerecognitionsdk.aarfrom the FaceRecognition-LivenessDetection-Android Releases page into alibfacesdk/module, addinclude(":libfacesdk")tosettings.gradle, and setminSdk 24. - iOS: download the four frameworks from the FaceRecognition-LivenessDetection-iOS Releases page into
ios/Frameworks/, add the camera usage description, then runpod install.pod installlists any missing framework by name. - Run on a physical phone and wait for the home status to show Ready before opening a liveness screen.
Flutter Integration Notes
Details from the FaceLivenessDetection-Flutter README.
Start the engine once
Call FaceLivenessEngine.instance.start(yourLicenseKey) once, then launch a liveness screen. Do not start it per screen.
The runner places the engine
The helper script checks for a device, places the engine files if it can find them, and starts the app. You can do the same steps by hand if your CI needs it.
Passive and active
Mobile packages support both modes; the server SDKs are passive only. Active liveness restarts if the face leaves the frame for about a second.
Real devices
Use a physical Android or iOS device. Emulators and the simulator have no usable camera for liveness.
Native alternatives: Android and iOS. For recognition with liveness in one package see the Flutter face recognition SDK.
How Licensing Works
Licenses are offline and bound to your app’s applicationId (Android) or bundle ID (iOS), so your own app needs its own key – the demo’s key only activates for its demo package. After activation, FaceLivenessEngine.instance.license reports what the key unlocks, and both liveness screens stay locked unless it grants Liveness. Contact FacePlugin for a key.
Frequently Asked Questions
Does the Flutter SDK send biometric data to the cloud?
No. Every liveness check runs on your own server or directly on the device, depending on the platform – images never leave an environment you control.
How is the SDK licensed?
Licenses are offline and bound to the Android applicationId and iOS bundle id you ship. Contact FacePlugin with both identifiers to receive keys. There are no per-call or per-check fees once licensed.
Where can I see the full source and open an issue?
The Flutter integration is maintained publicly on GitHub at github.com/Faceplugin-ltd, where you can browse the code, file issues, and track releases.
Ready to Add Liveness Detection to Your Flutter App?
Talk to our team to get a license key and a 15-day evaluation period started.