Skip to main content

Native Identity Verification SDKs for iOS, Android, Flutter, RN

Didit ships native KYC SDKs for iOS, Android, React Native and Flutter, all at 4.15.4. Your backend creates the session, the SDK runs capture, a webhook returns the decision. Full KYC is $0.33.

Native Identity Verification SDKs for iOS, Android, Flutter, RN

Contents

In this guide

Jump to the part you need.

Native identity verification fits teams shipping an iOS, Android, React Native or Flutter app who want the camera, NFC chip and liveness step handled on the device instead of in a browser. We publish four official SDKs, all at version 4.15.4, and a full KYC check costs $0.33. The caveat: the SDK presents the flow, your backend still creates the session and receives the decision.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Didit native verification SDKs, all at version 4.15.4, read November 26, 2026
PlatformDistribution and packageMinimum versionNFCGuide
iOSSwift Package Manager, CocoaPods (DiditSDK)iOS 13.0+, iOS 15.0+ for NFCYesiOS SDK guide
AndroidMaven custom repo, me.didit:didit-sdkAPI 23+ (Android 6.0)YesAndroid SDK guide
React Nativenpm or yarn, @didit-protocol/sdk-react-nativeRN 0.76+ on the New Architecture, iOS 13.0+ / Android API 24+YesReact Native guide
Flutterpub.dev, didit_sdkFlutter 3.41+, Dart 3.11+, iOS 13.0+ / Android API 23+YesFlutter guide
Web (JS)npm, @didit-protocol/sdk-web 0.4.0Any modern browserNoWeb SDK guide

Start free in the sandbox at business.didit.me, no sales call. If you want an AI assistant to write the first integration pass, connect Didit through the MCP server.

The outcome and the method we recommend

The outcome is one verification session: your backend creates it, and the SDK presents the verification UI inside your app. The person scans an ID document, completes liveness and a 1:1 face match on the device, and your backend receives a decision that contains the parsed document data, the liveness result, the face match and the fraud signals for that session.

Use a native SDK with a session created by your backend. Our docs classify WebView as a fallback only, because a WebView loses NFC chip reading, camera optimisation and the biometric integration. The native SDKs handle camera permissions, NFC reading and liveness detection, so you do not rebuild capture logic per platform. The same flow runs on all four mobile platforms through platform-specific SDK implementations: Swift on iOS, Kotlin on Android, and the React Native and Flutter wrappers that pin the native releases. The hosted verification flows are A/B tested and optimized for completion, speed and security.

4,000+ companies run verification on Didit, and the SDKs, the Workflow Orchestrator, reusable KYC and the MCP server carry no licence fee. You pay per completed check.

A walkthrough of the screens a person sees during a Didit KYC verification
What the person sees during verification, the same steps the native SDKs present on iOS, Android, React Native and Flutter.

Prerequisites

  • A Didit account with an API key. The key travels in the x-api-key header and stays on your server.
  • A workflow UUID (workflow_id) from /v3/workflows/. A KYC workflow creates user verification sessions; a KYB workflow creates business verification sessions on the same endpoint.
  • An HTTPS endpoint on your backend for the webhook, plus the destination signing secret from the Business Console.
  • The platform minimums in the table above: iOS 13.0+, Android API 23+, React Native 0.76+ or Flutter 3.41+.
  • Native SDK 4.10.0 or later if you verify people covered by Illinois, Texas or Colorado biometric law. Below 4.10.0 the consent step cannot be shown.

Steps

  1. Add the package for your platform. Installation instructions for each: iOS, Android, React Native, Flutter.

    # iOS, Swift Package Manager
    https://github.com/didit-protocol/sdk-ios
    
    # iOS, CocoaPods
    pod 'DiditSDK'
    
    # Android, custom Maven repository
    maven { url "https://raw.githubusercontent.com/didit-protocol/sdk-android/main/repository" }
    me.didit:didit-sdk:4.15.4
    
    # React Native
    npm install @didit-protocol/sdk-react-native
    
    # Flutter, pub.dev
    didit_sdk
  2. Create the session from your backend with the documented POST https://verification.didit.me/v3/session/ request.

    curl -X POST https://verification.didit.me/v3/session/ \
      -H "x-api-key: $DIDIT_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "workflow_id": "DIDIT_WORKFLOW_ID",
        "vendor_data": "internal-user-id",
        "callback": "https://myapp.com/done"
      }'
  3. Hand the session_token to the SDK and start the flow. In every mobile SDK the call is DiditSdk.startVerification(token: session_token). Never ship the API key to the app. Pass the returned session_token to the mobile SDK. On React Native, startVerification and startVerificationWithWorkflow both exist, and from 4.15.3 the Android call waits until the app is back in the foreground and always settles.

  4. Let the flow finish. The person captures the document, runs liveness, and matches the selfie to the portrait. The native SDK handles camera permissions for the capture flow.

  5. Verify and process the webhook. Read the raw body first, verify X-Signature-V2 (HMAC-SHA256 over the sorted canonical JSON) with your destination secret, check that X-Timestamp is within 300 seconds, then parse the body and return 2xx. Accept a match on the -Previous header during a secret rotation.

  6. Fetch the full record when you need every field, with GET https://verification.didit.me/v3/session/{session_id}/decision/.

The document capture screen with the camera frame over an ID card
The document capture screen the native SDK renders, with the camera and framing handled by the SDK.

Expected output

Session creation returns the identifiers you pass around your own app.

{
  "session_id": "uuid",
  "session_token": "jwt",
  "verification_url": "https://verify.didit.me/...",
  "status": "Not Started"
}

The webhook then carries the identifiers, the status and, once the session reaches a decision or review state, the decision object.

{
  "event_id": "uuid",
  "session_id": "uuid",
  "status": "Approved",
  "webhook_type": "status.updated",
  "environment": "live",
  "vendor_data": "your-internal-user-id",
  "decision": { }
}

Statuses are exact, case-sensitive strings: Not Started, In Progress, Approved, Declined, In Review, Awaiting User, Resubmitted, Expired, Abandoned and Kyc Expired, which uses a single capital K. Match them as strings, never as a prefix.

The liveness result panel for a verification session in the Didit Business Console
The liveness evidence stored with the session, the same data the webhook and the decision endpoint return.

Failure cases and recovery

Common failures in a native SDK integration and what to do
What you seeWhyRecovery
400 on create: callback must be on one of the application's allowed domainsThe callback origin is not on the allowed domains listUse an allowed https origin, or a custom scheme such as myapp://, which is always accepted
400 on session_expiration_timeValue outside 3600 to 2419200 seconds, or not a whole numberResend inside the bounds, or omit the field and inherit the workflow setting
401, 403 or 404 on the decision callInvalid key, key without read:sessions, unknown session, or a session from another applicationFix the key or privilege; a 404 also fires for a session that belongs to a different application
Webhook signature check failsTimestamp older than 300 seconds, or the body was re-encoded before hashingHash the raw bytes, recompute with the destination secret, accept -Previous during rotation
Status ExpiredThe person never opened the link before the TTL ran outCreate a new session and send the new link
Status AbandonedThe person started but did not finish in timeCreate a new session and send its new link
Status DeclinedOne or more checks failedRead the warnings in the decision, then request a resubmission only if the problem is fixable
Status In ReviewAutomated checks raised warnings that need a personA reviewer approves, declines or requests a resubmission in the Console
nfc_verifications[].is_nfc_skipped is trueRead skip_reason: USER_SKIPPED, DOCUMENT_WITHOUT_CHIP, CHIP_CERTIFICATE_UNAVAILABLE, DEVICE_WITHOUT_NFC, INTEGRATION_WITHOUT_NFC_ACCESS, MRZ_KEY_UNAVAILABLE or JPKI_UNAVAILABLEIf it is INTEGRATION_WITHOUT_NFC_ACCESS, the app was built without NFC access; rebuild with the NFC variant
biometric_consent.status is pending with reason BIOMETRIC_CONSENT_UNSUPPORTED_SDKThe SDK is below 4.10.0 or does not report its versionUpgrade to 4.10.0 or later

Inputs and outputs

What you send to the create-session call and what comes back
FieldDirectionMeaning
workflow_idInput, requiredStable workflow UUID; its type decides KYC or KYB
vendor_dataInput, recommendedYour stable identifier for the person or business; used for duplicate detection
callbackInputWhere the flow returns the person; Didit appends the session id and status
languageInputISO 639-1 code for the verification UI
contact_detailsInputPre-fills phone or email steps, optionally sends notification emails
tags, metadataInputUp to 10 tags for console filtering; arbitrary JSON echoed back
user_stateInputWhere the person lives, which drives the biometric consent step in Auto mode
session_idOutputThe handle for the decision call and for support
session_tokenOutputThe JWT the mobile SDK starts with
verification_urlOutputThe hosted URL, useful for a web fallback or a deep link
statusOutputThe session state, one of the ten exact strings

Billing is per completed check from prepaid credit. In a native flow the paid parts are the checks the workflow runs, not the SDK call.

Published unit prices that apply to a native KYC flow, November 26, 2026
StepPrice (USD)
ID document verification$0.15 per check
Passive liveness$0.10 per check
Face match 1:1$0.05 per check
Device and IP analysis$0.03 per check
Full KYC, those four together$0.33 per check
NFC chip reading, add-on$0.15 per check
Active liveness, instead of passive$0.15 per check
Face search 1:N$0.05 per search
AML screening$0.20 per check
SDKs, Workflow Orchestrator, reusable KYC, MCP serverFree

Two boundaries are not billing items. The first is the sandbox: sessions created there are free and unlimited, and sandbox scenarios reproduce outcomes with no real personal data. The second is a review. When a session lands in In Review, a person opens it in the Console and approves, declines or requests a resubmission. That is a decision a reviewer makes, not a step your app triggers, so build your app to wait on the webhook rather than polling for an answer.

Worked cost example

Take one month with 20,000 completed full KYC checks from a mobile app, where 2,000 of those people used an e-passport and read the chip. NFC chip reading is an optional $0.15 add-on to the document check and is priced on its own line, separate from the $0.15 ID document verification.

  • Full KYC at list price: 20,000 x $0.33 = $6,600.00
  • NFC chip reading, 2,000 checks: 2,000 x $0.15 = $300.00
  • Total at list price: $6,600.00 + $300.00 = $6,900.00

On the Scale plan every Didit price is 10% lower: $0.33 x 0.90 = $0.297 and $0.15 x 0.90 = $0.135.

  • Full KYC: 20,000 x $0.297 = $5,940.00
  • NFC chip reading: 2,000 x $0.135 = $270.00
  • Usage: $5,940.00 + $270.00 = $6,210.00, plus the $299.00 monthly fee, with the $350.00 monthly credit applied to that usage first

Compare that with no platform changes: the Free plan gives $10.00 of credit a month to organizations that sign up with a work email and charges the same list prices after that. Full price list on didit.me/pricing.

React Native and Flutter specifics

React Native requires the New Architecture, with React Native 0.76 or later as the documented minimum, and Android API 24 or later on the Android side. It also needs a development build, not Expo Go, because the SDK is a native module; the Expo config plugin is documented in the React Native guide.

Both wrappers are thin by design. React Native 4.15.4 and Flutter 4.15.4 pin native 4.15.4 and add no JavaScript or Dart API, so any change to capture or NFC behaviour arrives with the pinned native release. Update the wrapper to update the underlying iOS and Android code. Flutter ships on pub.dev as didit_sdk. Install guides for both, plus the iOS and Android native guides, are linked in the table at the top of this page.

For a coding agent that should write the first pass, the documented route is the integration prompt, which asks the tool to recommend an approach and then wire the session, the SDK call and the webhook. Product detail sits on identity verification.

Sources

Next step: open the sandbox at business.didit.me and create a workflow. There is no sales call. Run a sandbox session and inspect the webhook and decision response.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Frequently asked questions

What is native identity verification?

Native identity verification runs the ID capture, liveness and face match inside the app on the device, through an SDK written for that platform, instead of loading a browser page. Didit publishes native SDKs for iOS, Android, React Native and Flutter, all at version 4.15.4, and each supports NFC chip reading.

Should I use the native SDK or a WebView?

Use the native SDK. Didit's documentation marks WebView as a fallback only, because a WebView loses NFC chip reading, camera optimisation and the biometric integration. Use a WebView or the hosted verification_url only when no native SDK exists for the platform you ship.

Which platforms have an official Didit SDK?

Didit ships iOS (Swift Package Manager and CocoaPods), Android (Maven, me.didit:didit-sdk), React Native (@didit-protocol/sdk-react-native), Flutter (didit_sdk on pub.dev) and a JavaScript web SDK at 0.4.0. All four mobile SDKs are at 4.15.4 and support NFC.

How much does one native KYC check cost?

A full KYC check is $0.33: ID document verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03. NFC chip reading is a $0.15 add-on per check. The SDKs, the Workflow Orchestrator and the MCP server carry no fee.

Does the React Native SDK work in Expo Go?

No. The React Native SDK is a native module, so you need a development build and the documented Expo config plugin. React Native 4.15.4 requires React Native 0.76 or later on the New Architecture.

How does my backend learn the verification result?

Your backend creates the session with POST /v3/session/ and later receives a status.updated webhook whose envelope carries the session id and status, with the decision object attached once the session reaches a decision. For the full record, call GET /v3/session/{session_id}/decision/ and branch on session_kind first.

What happens if a user starts verification and never finishes?

The session moves to Abandoned, and to Expired if the person never opened the link at all. In both cases the fix is a new session with a new link, not a retry on the old one.

What are the minimum OS versions?

iOS 13.0, with iOS 15.0 required for NFC passport reading; Android API 23 (Android 6.0), with ML auto-detection on API 24 and later; React Native 0.76 or later; Flutter 3.41 with Dart 3.11. React Native additionally needs Android API 24 or later.

How do I test native verification without real documents?

Use the sandbox. Sandbox sessions are free and unlimited, and scenarios from the sandbox catalog reproduce outcomes such as a decline or an AML hit so you can test each branch of your app. On live applications the sandbox scenario field is rejected with 400.

Does Didit handle biometric consent for Illinois, Texas or Colorado?

Yes, on native SDK 4.10.0 or later. In Auto consent mode, a session created with user_state in Illinois, Texas or Colorado asks for explicit consent before the first face capture. An older SDK cannot show the step, and the decision reports BIOMETRIC_CONSENT_UNSUPPORTED_SDK.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.