FacePlugin
Get in Touch
Flutter

Face Recognition SDK for Flutter

One Flutter plugin for both Android and iOS: on-device enrollment, live 1:N identification, oval-guided capture, and 2D liveness — no biometric data ever reaches FacePlugin's cloud.

One plugin, two platformsMIT-licensed plugin codeFully on-device
Woman scanning her face with a phone for 1:1 verification on the Flutter SDK
Identity Verified
Face Match 99.98%
Requirements

What You Need to Run It on Flutter

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

FlutterFlutter 3.19 or newer
AndroidminSdk 24, arm64-v8a / Android 10 or newer recommended
iOSiOS 15.0, arm64 device / iPhone 11 or newer recommended
RAM (device)4 GB / 6 GB or more
TestingPhysical device required — emulators and simulators are not for camera work
Quick Start

Install and Activate

Install the SDK, then activate it with a license key before calling any recognition function — every platform follows this same activate-then-initialize pattern.

  • Clone the repository next to your app and add it as a path dependency for face_recognition_sdk in pubspec.yaml, then run flutter pub get.
  • Copy the native runtimes from the Android and iOS release pages: facerecognitionsdk.aar into your app’s android/libfacesdk/, and the iOS frameworks into the plugin’s ios/Frameworks/, then run pod install.
  • Set your own applicationId / bundle ID, request a license for them, and add the camera and photo-library permissions.
dart
import 'package:face_recognition_sdk/face_recognition_sdk.dart';

Future<void> activate() async {
  final machine = await getMachineCode();      // send this when you request a key
  final act = await setActivation('FP1....');  // bound to YOUR applicationId / bundle ID
  if (act != sdkSuccess) throw StateError(await lastLicenseError());

  final code = await init();
  if (code != sdkSuccess) throw StateError('init failed: $code');
}

// Read a face, and enroll it
final faces = await faceDetection(imagePath);
if (faces.length == 1) {
  final template = await templateExtraction(imagePath, faces.first);
  final crop = await cropFace(imagePath, faces.first);
  // store the template and the crop in YOUR database
}
final score = await similarity(templateA, templateB);  // 1:1
Platform notes

Flutter Integration Notes

Specifics from the Flutter package README: toolchain versions, where native files go, and how activation behaves during development.

Toolchain

Flutter 3.19 or newer, plus Android Studio and, on macOS, Xcode 15 or newer. Android needs minSdk 24 and arm64-v8a; iOS needs 15.0 and an arm64 device.

iOS frameworks go in ios/Frameworks/

Place the device-arm64 frameworks in ios/Frameworks/, then run cd example/ios && pod install. Simulator slices are not shipped.

Rebuild after changing the key

Activation happens once at start-up, so a hot reload is not enough. demoLicense() picks the Android or iOS key at runtime, so set both.

One-command runs

With a physical phone connected, python run_android.py (or python run_ios.py on macOS) places the runtime and starts the example app.

Live 1:N on the camera feed

For identification on live video use startVideoWorker, syncVideoWorkerDatabase and applyLiveFrame. Licensing calls are getMachineCode, setActivation, init and getLicenseStatus.

Prefer to stay native? The Android and iOS SDKs use the same engine without the Dart layer.

Licensing

How Licensing Works

The Flutter plugin code itself is released under the MIT license. The underlying SDK runtime still needs an offline license key bound to your application ID or bundle ID — the demo app’s keys only work for its own demo IDs, so contact FacePlugin for a key scoped to your app.

FAQ

Frequently Asked Questions

Does the Flutter SDK send biometric data to the cloud?

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.

How is the SDK licensed?

Licenses are offline and bound to the Android applicationId and iOS bundle id you ship. Contact FacePlugin with both identifiers to receive keys, then pass them to the engine at start-up. There are no per-call or per-match fees once licensed.

Where can I see the full source and open an issue?

The FaceRecognition-LivenessDetection-Flutter 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 Face Recognition to Your Flutter App?

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