FacePlugin
Get in Touch
.NET MAUI

Face Liveness Detection SDK for .NET MAUI

A .NET MAUI library that runs the native passive and active liveness engines on Android and iOS – written in C#, processed entirely on the phone, with no frames sent to a server.

Fully on-deviceC# API for Android & iOSNo per-call fees
Man completing a face liveness check in the .NET MAUI SDK demo
Live person
Liveness ✓
Requirements

What You Need to Run It on .NET MAUI

These are the exact minimum and recommended requirements published in the FaceLivenessDetection-DotNet-MAUI repository — check the repo directly for the latest version, since SDK requirements can change between releases.

.NET.NET 8 SDK with the MAUI workload (global.json pins 8.0.100)
AndroidAPI 24 (Android 7.0) / Android 10 or newer recommended
iOS15.0 / iOS 16 or newer recommended
ABIarm64-v8a or armeabi-v7a (arm64-v8a recommended)
Android runtimeThree AARs: facerecognitionsdk, face-liveness-kit and face-liveness-active – downloaded, not built
iOS runtimeSix bundles: FaceLivenessBridge, FaceLivenessKit and the four engine frameworks – downloaded, no Mac needed unless you rebuild the bridge
Test deviceA physical phone – neither the emulator nor the simulator is for camera work
Quick Start

Install and Activate

Download the runtime files, reference them from your project, then start the engine once with your license key before launching either liveness screen.

  • Clone the repo, install the .NET 8 SDK and run dotnet workload install maui.
  • Android: put facerecognitionsdk.aar (from the FaceRecognition-LivenessDetection-Android Releases page) and face-liveness-kit.aar and face-liveness-active.aar (from liveness-libs.zip on the FaceLivenessDetection-Android Releases page) in Platforms/Android/libs/.
  • iOS: unzip bridge.zip (FaceLivenessDetection-iOS Releases) and runtime.zip (FaceRecognition-LivenessDetection-iOS Releases) into Platforms/iOS/Frameworks/.
  • The build fails with a message naming any missing runtime file, so a gap shows up before the compiler runs. Run on a physical phone and wait for Ready.
csharp
await FaceLivenessEngine.StartAsync(yourLicenseKey);

// Active liveness: anti-spoofing gate first, then a short challenge sequence
var result = await FaceLivenessScreens.StartActiveLivenessAsync(new ActiveLivenessOptions
{
    Count = 3,
});
if (result?.Passed == true)
{
    // live person
}

// Passive liveness: one frame at a time, with a live HUD
await FaceLivenessScreens.StartPassiveLivenessAsync(
    useFrontCamera: true,
    livenessThreshold: 0.5f);
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 .NET MAUI 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 .NET MAUI 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 .NET MAUI App?

Talk to our team to get a license key and a 15-day evaluation period started.