Menu

Integration

Mobile SDKs

Flutter (idotta_sdk) and React Native (@idotta/react-native-sdk) run the same flow with native screens: document capture, NFC chip reading (ID card / passport) and active liveness. The session is created on your backend; only session_id + access_token reach the app. The packages are shared with you during onboarding (repository access or an archive).

Platform requirements

  • Android: CAMERA + INTERNET permissions, plus NFC for the NFC path (declare android.hardware.nfc with required="false" so phones without NFC can still install the app); minSdk 21+ for Flutter, 24+ for React Native
  • iOS: NSCameraUsageDescription; for NFC also the Near Field Communication Tag Reading capability, NFCReaderUsageDescription and com.apple.developer.nfc.readersession.iso7816.select-identifiers = A0000002471001 (the passport chip application); iOS 15.5+
  • React Native peer dependencies: react-native-vision-camera (4+), react-native-vision-camera-face-detector, react-native-worklets-core (with its Babel plugin), react-native-nfc-manager, @react-native-ml-kit/text-recognition, react-native-device-info; then pod install. Render the component full screen (for example in a Modal).

Flutter

Dart
import 'package:idotta_sdk/idotta_sdk.dart';

final result = await IdottaSdk.startVerification(
  context,
  baseUrl: 'https://api.idotta.com',
  sessionId: sessionId,  // from your backend
  token: accessToken,    // from your backend (valid 15 min)
  // options: const IdottaOptions(autoCapture: false, nfc: false),
);
// lang: 'fr' (optional) · baseUrl defaults to the value above
// result: null unless the outcome is final; result.status 'approved' | 'review' | 'rejected' | 'expired'

React Native

JavaScript
import { IdottaVerification } from '@idotta/react-native-sdk';

<IdottaVerification
  baseUrl="https://api.idotta.com"
  sessionId={sessionId}
  token={accessToken}
  // options={{ autoCapture: false, nfc: false }}
  onComplete={(result) => { /* final outcome: result.status 'approved' | 'review' | 'rejected' | 'expired' */ }}
  onCancel={() => { /* no final outcome yet: the user left, or a decision is still pending */ }}
/>

The SDK returns a result only when the outcome is final, as the panel shows it: approved, review (in review), rejected with no retries left, or expired (the session expired). The user leaving mid-flow, a rejection with retries left, a decision still pending, or a link that stopped working gives null / onCancel. Either way take the decision from the webhook or GET /v1/sessions/{id}; the result is for your screen.

Requirements: Flutter 3.44.2+ (Dart 3.12); React Native 0.73+.

The token is fixed when the SDK starts and is not refreshed. Create the session (or a new link with sdk-link) right before you launch it; after 15 minutes the SDK shows "expired" and you relaunch it with a new token.

Language: the lang parameter, then the device language, then your default_lang, then English.

Options (IdottaOptions, same names in both SDKs)

OPTIONDEFAULTWHAT IT DOES
autoCapturetrueCaptures the card by itself once it is detected and steady; off = shutter button only
cardDetectiontrueDetects the card in the frame
documentSketchtrueFaint outline showing which side to capture
nfctrueOffers the chip path when the phone and the document support it; otherwise photos
autoCaptureCountdown · autoCaptureDelayMstrue · 28003-2-1 before auto capture; delay once the card is steady (500–6000 ms)
livenessCountdown · livenessCountdownSecondstrue · 3Countdown before each head movement (1–10 s)
livenessHoldMs1600How long the face must stay in the oval before liveness starts (500–5000 ms)
livenessMoveTimeoutSeconds8Time allowed for each movement (4–30 s)
resultScreentrueShows our result screen; a rejection with retries left is shown anyway, because the retry happens in the SDK
languageSelectortrueLanguage picker in the corner
resultPollSeconds180How long to wait for the decision before showing "in review" (30–600 s)
collectDeviceId · deviceIdtrue · nullReads the OS device id (iOS identifierForVendor, Android ANDROID_ID) and sends it as X-Device-Id when your account uses device ids; or pass your own (16–128 characters, A–Z a–z 0–9 _ -). Declare it in your app's privacy labels; set collectDeviceId: false to stop reading it

Out-of-range numbers are clamped to the range. Passive liveness (liveness_mode: "passive") works in both SDKs.