Face Recognition SDK for Ionic
An on-device face recognition and liveness plugin for Ionic apps on Android and iOS, published for both Capacitor and Cordova — face detection, 1:N identification, landmarks, and attributes, all processed on the device.
What You Need to Run It on Ionic
These are the exact minimum and recommended requirements published in the FaceRecognition-LivenessDetection-Ionic-Capacitor repository — check the repo directly for the latest version, since SDK requirements can change between releases.
face-recognition-capacitor) or Cordova plugin (face-recognition-cordova)ionic serve alone can’t load the native engine — test on a physical deviceInstall and Activate
Install the SDK, then activate it with a license key before calling any recognition function — every platform follows this same activate-then-initialize pattern.
- Clone the Capacitor repository next to your app and build the plugin once (
npm install && npm run build). Add it to your app with afile:dependency onface-recognition-capacitor, then runnpm installandnpx cap sync. - Copy the native runtimes from the Android and iOS release pages:
facerecognitionsdk.aarinto the plugin’sandroid/libs/, and the iOS frameworks into itsios/Frameworks/, then runnpx cap syncagain. - Set your own
applicationId/ bundle ID, request a license for them, and add the camera and photo permissions for both platforms.
Building with Cordova instead of Capacitor?
FacePlugin also publishes a Cordova build at FaceRecognition-LivenessDetection-Ionic-Cordova, with the same on-device engine and licensing model. Copy its FacePlugin/ folder into your app, place the Android AAR and iOS frameworks inside it, then run ionic cordova plugin add ./FacePlugin. Its TypeScript API is published as face-recognition-cordova.
Ionic Integration Notes
FacePlugin ships two Ionic integrations, a Capacitor plugin and a Cordova plugin. These notes cover the differences.
Capacitor: build, then sync
Run npm install && npm run build, then cd example && npm install. After changing the license, rebuild and run npx cap sync; a web reload is not enough because activation happens once at start-up.
Capacitor toolchain
Node 18 or newer, JDK 17, Android Studio for Android, and Xcode 15 or newer with CocoaPods on macOS for iOS. Android needs API 24 and arm64-v8a.
Cordova on Windows
Do not add the iOS platform on Windows. Add iOS only on macOS, after placing the frameworks, and put your Apple Team ID in build.json.
Gradle is bootstrapped
scripts/with-gradle.js sets up Gradle for Cordova builds, so you do not need to set GRADLE_HOME by hand.
Match threshold default
The example sets matchThreshold: 0.8 while startVideoWorker defaults to 0.67, so check which one your flow is using before comparing results.
Real device with debugging on
Use a physical phone with USB debugging (Android) or a trusted computer (iPhone). Emulators and the simulator have no usable camera for liveness.
For the other hybrid framework see React Native; for Microsoft stacks see .NET MAUI.
How Licensing Works
The Ionic plugin code is MIT-licensed. The native SDK runtime still requires an offline license key bound to your app ID or bundle ID — the demo app's key only works for its own demo package, so contact FacePlugin for a key for your app.
Frequently Asked Questions
Does the Ionic SDK send biometric data to the cloud?
No. Every stage of face recognition runs on your own server or directly on the device, depending on the platform – biometric templates 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. Contact FacePlugin with both identifiers to receive keys. The Capacitor and Cordova plugins use the same license. There are no per-call or per-match fees once licensed.
Where can I see the full source and open an issue?
The FaceRecognition-LivenessDetection-Ionic-Capacitor 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 Face Recognition to Your Ionic App?
Talk to our team to get a license key and a 15-day evaluation period started.