A Flutter application that demonstrates how to integrate Yoti Doc Scan SDKs for Android and iOS using platform channels.
Yoti’s Identity Verification (IDV) service allows your customers to remotely prove who they are with just an identity document and selfie. The Yoti Doc Scan SDKs provide a seamless way to integrate this functionality into native mobile applications.
This project demonstrates:
- Integration of Yoti Doc Scan native SDKs (Android and iOS) within a Flutter application.
- Use of Flutter Platform Channels for communication between Dart and native code.
- Initiation and management of Yoti Identity Verification (IDV) sessions directly from Flutter.
- Install dependencies
flutter pub get
- Set up platform dependencies by referring to the official guides:
- Run
flutter run
- Flutter: 3+
- Android: Min API level 21 (23+ recommended)
- iOS: 14.0+
Yoti SDK status codes returned on both platforms:
| Code | Description |
|---|---|
| 0 | User completed the session |
| 1000 | User cancelled the session |
| 2000 | Unauthorised request (invalid/expired token) |
| 2001 | Session not found |
| 2002 | Session expired (iOS only) |
| 2003 | SDK launched without a session token |
| 2004 | SDK launched without a session ID |
| 3000 | Yoti services unavailable |
| 3001 | Network error |
| 3002 | No network connection |
| 3003 | Network timeout |
| 4000 | Camera permission not granted |
| 4001 | Wrong document submitted |
| 5000 | Camera not found, file upload not allowed |
| 5002 | No more local tries for liveness flow |
| 5003 | SDK out-of-date, update required |
| 5004 | Unexpected internal error |
| 5005 | Document capture error |
| 5006 | Liveness capture error |
| 5008 | Unsupported configuration |
| 5009 | Storage error (Android only) |
| 6000 | Identity document dependency missing |
| 6001 | Face scan dependency missing |
| 6002 | Supplementary document dependency missing |
| 6003 | Face capture dependency missing |
| 7000 | Required documents not available |
For any questions or support, please contact our Support team. Once we have answered your question, we may contact you to discuss Yoti products and services. If you prefer not to be contacted about Yoti products, let us know.
See the licence here.