Ionic Cordova
Faceplugin Face Recognition Ionic Cordova SDK. On-premise face matching and liveness. Legacy Cordova plugin. Prefer Capacitor for new Ionic apps.
Fully on-premise Face Recognition SDK for Ionic Cordova. Plugin folder: Faceplugin/. Plugin id: face-recognition-cordova. Prefer Ionic Capacitor for new projects.
Demo package name: com.faceplugin.facerecognitionsdk.
Code
How to run
✅ Setup Environment
Node 18+, npm, Cordova CLI, JDK 17, Android SDK. iOS: macOS + Xcode 15+, physical iPhone. Put your Apple Team ID in build.json.
1. Install Node.js and npm
2. Get the runtimes
Android AAR: Google Drive →
Faceplugin/src/android/facerecognitionsdk.aariOS frameworks: Google Drive →
Faceplugin/src/ios/Frameworks/
Running the sample on Android
Add camera permission in platforms/android/app/src/main/AndroidManifest.xml if it is not already present:
Running the sample on iOS
Add NSCameraUsageDescription in Info.plist. Run on a physical iOS device.
APIs
Status codes: 0 Success, 1 Invalid license, 2 Expired, 3 Not activated, 4 Init failed.
setActivation: This API is used to activate the SDK
init: This API is used to initialize the SDK
getMachineCode: This API is used to retrieve the machine code
faceDetection: This API is used to detect faces
templateExtraction: This API is used to extract face template
similarity: This API is used to calculate similarity between two templates
Also: getLicenseStatus, detect, extractFeature, quality, VideoWorker (startVideoWorker, ingestLiveCameraFrame, exportLastLiveFrame), deinit.
Integrate into your own app
Prefer Ionic Capacitor for new projects. For this Cordova plugin:
Place
facerecognitionsdk.aarinFaceplugin/src/android/and the three iOS frameworks inFaceplugin/src/ios/Frameworks/.ionic cordova plugin add ./Facepluginthennpm run setup:androidorsetup:ios.Keep demo id
com.faceplugin.facerecognitionsdkor request a key for your id.ionic servecannot load the engine — run on a physical phone.
Request a License & Support · Contact us
FAQ
Legacy plugin? Yes. Prefer Ionic Capacitor for new apps.
Offline? Yes after activation with a license key bound to the Cordova app id.
Related documentation
Last updated