Face Liveness Detection SDK for Ionic
A face liveness plugin for Ionic apps on Android and iOS, published for both Capacitor and Cordova – passive and active checks launch as native screens, and everything is processed on the device.
What You Need to Run It on Ionic
These are the exact minimum and recommended requirements published in the FaceLivenessDetection-Ionic-Capacitor repository — check the repo directly for the latest version, since SDK requirements can change between releases.
ionic serve cannot load the native engineInstall and Activate
Install the Capacitor plugin, place the engine runtime, then start the engine once with your license key before launching either liveness screen.
- Install the plugin with
npm install face-liveness-capacitorand runnpx cap sync. - Android: download
facerecognitionsdk.aarfrom the FaceRecognition-LivenessDetection-Android Releases page into alibfacesdk/module, addinclude(":libfacesdk")tosettings.gradle, and setminSdkVersion 24. - iOS: download the four frameworks from the FaceRecognition-LivenessDetection-iOS Releases page into
ios/Frameworks/, add the camera usage description, then runpod install. - Run on a physical phone and wait for the home status to show Ready before opening a liveness screen.
Building with Cordova instead of Capacitor?
FacePlugin also publishes a Cordova build at FaceLivenessDetection-Ionic-Cordova, with the same on-device engine and licensing model. Add it with cordova plugin add face-liveness-cordova, drop facerecognitionsdk.aar in the plugin’s src/android/ and the four iOS frameworks in its src/ios/Frameworks/, set android-minSdkVersion to 24, and turn Kotlin on in config.xml. Start the engine after deviceready.
Ionic Integration Notes
FacePlugin publishes liveness plugins for both Capacitor and Cordova.
iOS deployment target
The published minimum is iOS 14.0 (the Capacitor podspec ios.deployment_target and the Cordova config.xml deployment-target); iOS 15 or newer is recommended.
Cordova: wait for deviceready
Start the engine after the deviceready event with await FaceLivenessEngine.start(yourLicenseKey), then launch a screen.
Capacitor: sync after native changes
After adding the plugin or changing native files, run the Capacitor sync step and rebuild; a web reload does not reload native code.
Passive and active
Both modes are available in the mobile plugins. Active liveness restarts if the face leaves the frame for about a second.
Related pages: React Native liveness, Flutter liveness and the Ionic face recognition plugins.
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.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 Ionic 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 of your app. The Capacitor and Cordova plugins use the same license. Contact FacePlugin with both identifiers to receive keys.
Where can I see the full source and open an issue?
The Ionic 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 Ionic App?
Talk to our team to get a license key and a 15-day evaluation period started.