FacePlugin
Get in Touch
.NET MAUI

ID Document Recognition SDK for .NET MAUI

One .NET MAUI codebase for real-time ID card, passport, and driver license scanning on Android, iOS, and Windows – OCR, MRZ, and barcode recognition, fully on-device and on-premises.

Fully on-deviceC# for Android, iOS & WindowsNo per-call fees
PASSPORT• AURORIA
SURNAME

WILLIAMS

GIVEN NAMES

ETHAN L.

DATE OF BIRTH

22 SEP 1992

DOCUMENT NO.

X8295147

P<AURWILLIAMS<<ETHAN<L<<<<<<<<
X8295147<7AUR9209226M3205184<<<<03
MRZ Verified✓
Barcode Valid✓
OCR Complete✓
Identity Verified
Requirements

What You Need to Run It on .NET MAUI

These are the exact minimum and recommended requirements published in the ID-Document-Recognition-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)
AndroidminSdk 24 (Android 7.0), Windows or macOS build host
iOS15.0, macOS with Xcode 15+, physical iPhone (the framework does not link for the simulator)
WindowsWindows 10 build 17763 or newer
RuntimesAndroid documentreadersdk.aar, iOS docsdk.framework, Windows lib/cpu folder – not in git, downloaded separately
Test deviceA physical phone, or the Windows PC itself
Quick Start

Install and Activate

Add the runtimes, then activate with a license key before calling any recognition function – every platform follows this same activate-then-initialize pattern.

  • Clone the repo, install the .NET 8 SDK and run dotnet workload install maui from the repo folder so global.json selects SDK 8.
  • Download the runtimes linked in the repo README and place them: Platforms/Android/libs/documentreadersdk.aar, Platforms/iOS/Frameworks/docsdk.framework, and the full Platforms/Windows/native/lib/cpu folder.
  • Keep the demo IDs (com.faceplugin.documentreader on Android, com.faceplugin.documentreader.app on iOS) so the bundled demo key activates; it is valid until 12 Aug 2027. Windows takes its own key bound to the machine code shown on the home screen.
  • Run with dotnet build -f net8.0-android -t:Run (or net8.0-ios, net8.0-windows10.0.19041.0).
csharp
// Call order, off the UI thread (0 means success)
var machine = await GetMachineCodeAsync();   // Windows only: send this when you request a key
var ret = await SetActivationAsync(licenseKey);
if (ret == 0) ret = await InitAsync();

// Front image required, back image optional
// "normal" also runs document authenticity (liveness) checks; "none" skips them
var json = await RecognizeAsync(frontJpeg, backJpeg, "normal");

// Return codes: 0 success, 1 invalid license, 2 expired license,
// 3 not activated, 4 init failed
Platform notes

.NET MAUI Integration Notes

Details from the ID-Document-Recognition-DotNet-MAUI README, which covers Android, iOS and Windows.

Pin to .NET 8

Install the .NET 8 SDK side by side with newer SDKs plus the maui workload. A global.json pins the build to 8.0 so .NET 9 or 10 do not reject net8.0-ios or net8.0-android.

Three targets

Android needs minSdk 24; iOS needs 15.0 and Xcode 15 or newer; Windows needs 10 build 17763 or newer. Phones must be physical devices.

Native file locations

Android: src/DocumentReader.Net.Maui/Platforms/Android/libs/documentreadersdk.aar. iOS: Platforms/iOS/Frameworks/docsdk.framework. The project references the AAR only when that file is present.

Reuse in your solution

Reference DocumentReaderSdk from this project, or copy DocumentReaderSdk.cs plus the platform file for the target you ship.

A pure Windows server is simpler with the Windows ID document SDK. Mobile-only teams may prefer Android or iOS natively.

Licensing

How Licensing Works

Licenses are offline and bound to your app’s application ID on Android and bundle ID on iOS; the bundled demo key (for com.faceplugin.documentreader and com.faceplugin.documentreader.app) is valid until 12 Aug 2027. Windows uses a separate key bound to the machine code. After activation, the license status shows whether the key unlocks Recognition, document Liveness (authenticity), or both. Contact FacePlugin for a key scoped to your own app.

FAQ

Frequently Asked Questions

Does the .NET MAUI SDK send document data to the cloud?

No. Every stage of document recognition runs on your own server or directly on the device, depending on the platform – scanned documents never leave an environment you control.

How is the SDK licensed?

Licenses are offline and bound to the Android applicationId, iOS bundle id or Windows machine you ship. The key controls whether Recognition, Liveness (document authenticity) or both are unlocked. Contact FacePlugin with those identifiers.

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 Document Recognition to Your .NET MAUI App?

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