DocuPass Flutter SDK — in-app ID verification & KYC
Embed ID Analyzer DocuPass identity verification inside your Flutter app — document scanning, face match, and on-device active liveness — with no external browser and no WebView.
This plugin embeds the native Android and iOS DocuPass SDKs as a platform view (CameraX / AVFoundation + MediaPipe liveness) — true native capture, not a wrapped web page.
Install
dependencies:
docupass_flutter: ^0.1.0
Native dependencies resolve automatically:
- iOS: the
DocuPasspod (depends onMediaPipeTasksVision); addNSCameraUsageDescriptiontoInfo.plist. - Android:
com.idanalyzer:docupass(theCAMERApermission is declared by the native core).
Usage
import 'package:docupass_flutter/docupass_flutter.dart';
DocuPassView(
reference: 'US…', // create server-side via POST /docupass
onResult: (result) {
switch (result.status) {
case DocuPassStatus.completed: break; // verified — fetch result server-side
case DocuPassStatus.failed: break;
case DocuPassStatus.cancelled: break;
case DocuPassStatus.error: break;
}
},
)
Put it in a full-screen route (it's a platform view that wants real estate). The
verification data lives server-side — fetch it with GET /docupass/{reference}
using your API key; the device only holds the reference.
API
DocuPassView:
| Param | Type | Notes |
|---|---|---|
reference |
String |
required — the DocuPass reference |
partyId |
String? |
party sign-token (multi-party contract flows) |
baseUrl |
String? |
base URL override (on-prem ID Fort) |
onResult |
void Function(DocuPassResult) |
terminal callback |
Links
- DocuPass: https://www.idanalyzer.com/products/docupass.html
- Developer docs: https://developer.idanalyzer.com/help
License
MIT © ID Analyzer