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.
These are the exact minimum and recommended requirements published in the FaceRecognition-Ionic-Capacitor repository — check the repo directly for the latest version, since SDK requirements can change between releases.
ionic serve alone can't load the native engineInstall the SDK, then activate it with a license key before calling any recognition function — every platform follows this same activate-then-initialize pattern.
npm install git+https://github.com/Faceplugin-ltd/FaceRecognition-Ionic-Capacitor.git, then npx cap sync.facerecognitionsdk.aar for Android, three frameworks for iOS.import { getMachineCode, setActivation, init, lastLicenseError,
faceDetection, templateExtraction, cropFace, SDK_SUCCESS } from 'face-recognition-capacitor';
const act = await setActivation('FP1....');
if (act !== SDK_SUCCESS) throw new Error(await lastLicenseError());
await init();
const faces = await faceDetection(imageUri);
if (faces.length === 1) {
const template = await templateExtraction(imageUri, faces[0]);
const crop = await cropFace(imageUri, faces[0]);
// store template + crop in your own database
}
FacePlugin also publishes a Cordova build at FaceRecognition-Ionic-Cordova, with the same on-device engine and licensing model.
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.
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.
Licenses are offline and bound to a machine code, application ID, or bundle ID depending on the platform. Contact FacePlugin with that identifier to receive a license key – there are no per-call or per-match fees once licensed.
The FaceRecognition-Ionic-Capacitor integration is maintained publicly on GitHub at github.com/Faceplugin-ltd, where you can browse the code, file issues, and track releases.
Talk to our team to get a license key and a 15-day evaluation period started.