FacePlugin
Get in Touch
Ionic

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.

Fully on-deviceCapacitor & Cordova buildsNo per-call fees
Man completing a face liveness check in the Ionic SDK demo
Live person
Liveness ✓
Requirements

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.

IonicCapacitor 6 plugin (face-liveness-capacitor) or Cordova 12 plugin (face-liveness-cordova)
Node.jsNode 18+ and npm
AndroidminSdkVersion 24 (Android 7.0), compileSdk 34 (Capacitor) / Android 10 or newer recommended
iOS14.0 / iOS 15 or newer recommended
ABIarm64-v8a or armeabi-v7a (arm64-v8a recommended)
Engine runtimefacerecognitionsdk.aar (Android) and four iOS frameworks – not in git, downloaded from the release pages
Test deviceA physical phone – the emulator has no usable camera, and ionic serve cannot load the native engine
Quick Start

Install 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-capacitor and run npx cap sync.
  • Android: download facerecognitionsdk.aar from the FaceRecognition-LivenessDetection-Android Releases page into a libfacesdk/ module, add include(":libfacesdk") to settings.gradle, and set minSdkVersion 24.
  • iOS: download the four frameworks from the FaceRecognition-LivenessDetection-iOS Releases page into ios/Frameworks/, add the camera usage description, then run pod install.
  • Run on a physical phone and wait for the home status to show Ready before opening a liveness screen.
typescript
import { FaceLiveness, FaceLivenessEngine } from 'face-liveness-capacitor';

await FaceLivenessEngine.start(yourLicenseKey);

// Active liveness: anti-spoofing gate first, then a short challenge sequence
const result = await FaceLiveness.startActiveLiveness({ count: 3 });
if (result?.passed) {
  // live person
}

// Passive liveness: one frame at a time, with a live HUD
await FaceLiveness.startPassiveLiveness({
  useFrontCamera: true,
  livenessThreshold: 0.5,
});
Note

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.

Licensing

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.

FAQ

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 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-check fees once licensed.

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.

Related

Pairs Well With

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.