Skip to main content

React Native Identity SDK Camera Permissions (2026 Guide)

The Didit React Native SDK opens the camera and triggers the OS permission prompt itself, as part of its capture steps. Your app adds the platform camera declarations and handles the blocked state.

React Native Identity SDK Camera Permissions (2026 Guide)

Contents

In this guide

Jump to the part you need.

This guide is for developers adding the Didit identity SDK to a React Native app, and for anyone planning that work. The outcome: the camera opens at the document and selfie steps, the operating system prompt appears when the SDK needs it, and a blocked camera has a way back. A full KYC check costs $0.33 and the SDK is free. The caveat: the OS owns the prompt, so the platform declarations are yours to add.

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

Camera permissions in the Didit React Native SDK at a glance
ItemWhat it means for your app
Package@didit-protocol/sdk-react-native from npm or yarn
Current version4.15.4, and it pins native 4.15.4
MinimumsReact Native 0.76+ on the New Architecture, iOS 13.0+, Android API 24+
Who shows the camera promptThe native SDK, as part of its capture steps. You do not write a permission request yourself
Platform setupThe camera usage declaration for each platform, listed in the React Native SDK guide
What you handleThe blocked state, where the OS refuses to prompt again
Price of a completed check$0.33 for a full KYC check
Free itemsSDKs, sandbox, workflow orchestrator, reusable KYC and the MCP server
Free credit$10 a month on the Free plan for organizations that sign up with a work email

Start free in the sandbox at business.didit.me, no sales call, and test the whole camera path before you bill anyone. Developers who want an assistant to wire the pieces can connect Didit to an AI assistant through the Didit MCP server. Unit prices live on the pricing page, and the product behind these checks is ID verification.

The outcome and the method we recommend

By the end you have a React Native app where a person taps your verify button, the SDK opens its verification screen, the camera comes up for the ID document and then for the liveness selfie, and both captures reach a decision you can read. If the person has blocked camera access, your screen tells them where to reopen it instead of failing silently.

The method: use the native React Native SDK, not the hosted flow inside a WebView, when the camera is central to the flow. Our docs put it plainly:

Native SDKs handle all the complexity of camera permissions, NFC reading, and liveness detection out of the box.

That sentence is the whole trick. You are not writing a permission library or a capture screen. The 4.15 releases of the React Native package (4.15.0, 4.15.1, 4.15.3 and 4.15.4) pin the matching native version and add no JavaScript API of their own. The camera screens, the prompt they trigger, the NFC reader and the liveness capture come from the native layer underneath. Your work is the platform setup, the session that gives the SDK something to run, and the blocked state.

Didit runs identity and fraud checks for 4,000+ companies across 220+ countries and 14,000+ document types. The SDK supports 54 capture and UI languages.

Prerequisites

  • A Didit organization. Create one at business.didit.me; the sandbox API key is enough to build and test.
  • A workflow with the features your camera steps need. The usual set is OCR, LIVENESS with face_liveness_method set to PASSIVE, FACE_MATCH and, if you screen people, AML. Save the workflow UUID.
  • React Native 0.76 or later on the New Architecture, an iOS deployment target of 13.0 or later, and Android minSdk 24 or later. NFC reading needs iOS 15 or later and is a separate $0.15 add-on.
  • A backend that can call the Create Session endpoint with your x-api-key. Keep the key server side.
  • A person with a phone in their hand. Test camera behaviour on physical devices.

Step by step

  1. Create the workflow. Send POST https://verification.didit.me/v3/workflows/ with a label, workflow_type set to kyc, and the features above. Persist the returned workflow.id. The camera steps inside the SDK are driven by this workflow. A workflow's configured steps determine which captures the SDK runs. Include the documented liveness or face-match steps when you need a selfie.

    curl -X POST https://verification.didit.me/v3/workflows/ \
    -H "x-api-key: $DIDIT_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "workflow_label": "Standard KYC",
    "workflow_type": "kyc",
    "features": [
      {"feature": "OCR"},
      {"feature": "LIVENESS", "config": {"face_liveness_method": "PASSIVE"}},
      {"feature": "FACE_MATCH"},
      {"feature": "AML"}
    ]
    }'
  2. Run the platform setup checklist. None of this is a Didit API call, and the React Native SDK guide walks through each item against your project:

    • Add @didit-protocol/sdk-react-native with npm or yarn.
    • Confirm React Native 0.76 or later on the New Architecture, iOS 13.0 or later and Android API 24 or later.
    • Add the camera usage declaration the guide gives for iOS and for Android. The guide names the exact files and keys, because those change between React Native versions and we keep them there.
    • Rebuild and run on a physical device before you touch the session code.
  3. Create the session from your backend. This is the runnable request the SDK will open, and it comes straight from our docs:

    curl -X POST https://verification.didit.me/v3/session/ \
    -H "x-api-key: $DIDIT_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"workflow_id": "$WORKFLOW_ID", "vendor_data": "user-42", "callback": "https://myapp.com/kyc/return"}'

    Keep session_id, url and session_token. If your application has allowed domains set, an http or https callback must be on one of those origins or creation fails with a 400. A custom scheme such as myapp://kyc is always accepted, which is what you want for a mobile return path.

  4. Open the SDK from your screen. Call startVerification (or startVerificationWithWorkflow) when the person taps your verify button. You do not request the camera yourself: the SDK asks for it as part of its capture steps, which is what out of the box means here. React Native 4.15.3 fixed both calls on Android: if the app is sent to the background, the call now waits until the app is back in the foreground before opening the verification screen, and always settles.

  5. Send the covered-state fields when they apply. If you already know the person lives in Illinois, Texas or Colorado, or you collected biometric consent yourself, pass it at session creation so the consent step sits before the first face capture:

    {
      "workflow_id": "YOUR_WORKFLOW_ID",
      "vendor_data": "user-42",
      "user_state": "US-IL",
      "biometric_consent": {
        "given_at": "2026-10-13T09:12:00Z",
        "text_version": "consent-v3"
      }
    }
  6. Read the decision. Call GET https://verification.didit.me/v3/session/{session_id}/decision/ or subscribe to the status.updated webhook. The V3 shape returns plural arrays: id_verifications[], liveness_checks[], face_matches[]. Never assume the singular V2 fields.

Camera screen guiding a person to frame an ID document
The ID document step is the first capture the SDK runs, so this is the screen a person is on when the camera comes up.

What Didit documents, and what is general mobile guidance

Two kinds of statement appear on this page, and it helps to keep them apart when you plan the work.

  • From our docs: the package name, version and minimums from the SDK availability table, the 4.15.x release notes, the Create Session fields, the decision arrays, the biometric consent behaviour and the status enum. Every one of those can be checked against the native SDK overview.
  • General mobile guidance: that iOS and Android each require a camera usage declaration before an app may open the camera, and that a person who denies the prompt can be sent to the system settings screen. That is how the two operating systems behave, not a Didit setting, so follow each platform's own documentation for the exact syntax.

We keep the platform specifics in one place so they do not go stale here: the React Native SDK guide.

Expected output

The Create Session call returns a session object. The three fields you act on are session_id, which you store against the user, url, the hosted link for a browser fallback, and session_token. Opening the SDK with that session is what puts the camera on screen.

Once the person finishes, the decision carries a status per step from the same enum everywhere: Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired. Camera work shows up in two places in that payload: id_verifications[] for the document capture and liveness_checks[] for the selfie, each with its own warnings[] array.

Selfie capture screen with the face inside the capture frame
The liveness selfie is another camera capture in the verification flow.

Inputs and outputs

What you send when creating the session and what comes back
Field or callDirectionWhat it does
workflow_id (UUID, required)You sendChooses the steps, so it decides whether the camera opens at all
vendor_dataYou sendYour stable user identifier; echoed back and used for duplicate detection
callbackYou sendReturn URL; Didit appends ?verificationSessionId={session_id}&status={status}
user_stateYou sendA code such as US-IL that triggers the biometric consent step before the first face capture
biometric_consentYou sendConsent you already collected; recorded with trigger customer_collected
Camera grant itselfDevice onlyHandled by the OS and the SDK; it never travels to Didit as a field
session_id, url, session_tokenDidit returnsIdentifiers for the SDK and for the hosted fallback
id_verifications[], liveness_checks[], face_matches[]Didit returnsPer-step results on the decision, each with status and warnings
Business Console session detail showing a liveness check result
The session detail in the Business Console shows the liveness result the SDK captured, so you can confirm the camera path end to end.

Failure cases and recovery

Camera and session failures you will meet, and the fix
FailureWhat you seeRecovery
No camera usage declaration on iOSThe app terminates when the camera is reachedAdd the declaration the React Native SDK guide lists for iOS, rebuild, test on a physical device
No camera permission declared on AndroidThe capture step cannot open the cameraAdd the declaration the guide lists for Android and rebuild
Person denies the promptThe camera never opens for that stepIf the OS no longer presents a prompt, explain what the camera is for and direct the person to the app's settings screen
App backgrounded during startVerification, Android, before 4.15.3The call did not settle and the screen never openedUpgrade to 4.15.3 or later
Missing API key403 {"detail": "You do not have permission to perform this action."}Send x-api-key from your backend
Wrong, revoked or expired key401Issue a new key in the console
Invalid workflow_id400 on session creationUse the UUID returned by /v3/workflows/
Callback outside your allowed domains400, callback must be on one of the application's allowed domainsAdd the origin, or use a custom scheme such as myapp://
Native SDK below 4.10.0 in a covered stateDecision shows biometric_consent.status as pending with reason BIOMETRIC_CONSENT_UNSUPPORTED_SDKUpgrade to native 4.10.0 or later
No credits leftHTTP 403 on the APITop up or move to a plan with credit
Device with no working camera feedThe capture step cannot completeTest camera behaviour on physical hardware

One more recovery path matters for camera refusals. If a person will not grant camera access to your app, the hosted flow can run in a browser, the Web SDK or a WebView, and it shows the biometric consent step in all three. Treat it as a fallback for the few devices where the native path is closed, not as the default, because the native SDK uses the camera directly.

What you pay for, and where review starts

Nothing about the permission prompt is billable. Billing is based on completed checks, paid from prepaid credit, and the pricing terms list the exceptions, including some no-match database lookups and retries that are billable even though nothing was verified. Read those terms before you model volume: the pricing page and pricing in the docs.

  • Full KYC check: $0.33 per completed check, which is ID document verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03.
  • Active liveness instead of passive: $0.15. NFC chip reading: $0.15 add-on. AML screening in the same workflow: $0.20.
  • Free on every plan: SDKs, sandbox testing, the workflow orchestrator, reusable KYC and the MCP server.
  • Plans: Free with $10 of monthly credit for work-email sign-ups, Growth at $99 a month with $115 of credit and 4% off every Didit price, Scale at $299 a month with $350 of credit and 10% off, Enterprise from $15,000 a year. Plan eligibility and credit terms follow the live pricing page and the business terms: monthly credit does not roll over, and top-ups last 12 months.

The review boundary sits on the Didit side of the API, not on the camera. A step that lands in In Review, or a document check carrying DOCUMENT_LIVENESS_NOT_COMPUTED, needs a human decision: route it to your manual review queue instead of approving it, and handle it according to your own review process.

The other boundary is legal. We show the biometric consent step and record the answer, and you decide whether your journey meets the biometric law that applies to you, with your counsel. The biometric consent page explains the triggers.

Worked cost example

Take 10,000 completed full KYC checks in a month, and assume 1,000 of those people also read an NFC passport chip. The camera permission itself adds nothing. Every figure below is a published unit price from the feed dated November 26, 2026.

At list price: 10,000 x $0.33 = $3,300.00 for the checks. 1,000 x $0.15 = $150.00 for NFC. Total $3,450.00.

On Growth, with every Didit price 4% lower and $115.00 of monthly credit: 10,000 x $0.3168 = $3,168.00. 1,000 x $0.144 = $144.00. Usage subtotal $3,312.00. Add the $99.00 monthly fee: $3,411.00. Subtract the $115.00 credit: $3,296.00.

Sandbox runs are free and unlimited, so the entire permission path can be tested before any of those numbers start moving.

Sources

The next step is the one that settles the question: open business.didit.me, create a sandbox organization with no sales call, and run the document and selfie steps on a physical phone today.

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

Does the Didit React Native SDK ask for camera permission itself?

Yes. The native modules inside @didit-protocol/sdk-react-native open the camera and trigger the operating system prompt as part of their capture steps, so you do not write the request call. You still add the camera usage declaration for each platform, because neither iOS nor Android shows a prompt without one. The React Native SDK guide lists those declarations; you also own the blocked state.

Which React Native, iOS and Android versions does the SDK support?

The package is at 4.15.4 and pins native 4.15.4. It needs React Native 0.76 or later on the New Architecture, iOS 13.0 or later, and Android API 24 or later. NFC reading additionally needs iOS 15 or later and costs an extra $0.15 per check.

What happens if a person blocks the camera?

If the OS no longer presents a prompt, explain the issue and direct the person to the app's settings, where camera access can be switched back on. If the person leaves instead, the session can end as Abandoned, and billing is based on completed checks, with the exceptions listed in the pricing terms.

How much does a camera-based verification cost?

A full KYC check is $0.33 per completed check: ID document verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03. Active liveness costs $0.15 instead of passive at $0.10, NFC chip reading adds $0.15, and AML screening adds $0.20. The camera permission prompt itself is never billed, and the SDK is free.

Can I test the camera flow for free?

Yes. Sandbox testing is free and unlimited on every plan, and organizations that sign up with a work email get $10 of credit a month on the Free plan, with eligibility and credit terms set by the live pricing page. Sandbox scenarios and magic values let you reproduce approvals, declines and review outcomes without real identity documents.

Why does my app crash when the camera opens on iOS?

In most cases the app has no camera usage declaration, and iOS terminates an app that reaches the camera without one. Add the declaration the React Native SDK guide lists for iOS with one plain sentence about scanning the ID and taking the selfie, rebuild, and test on a physical device rather than a simulator. Camera behaviour on a simulator does not match a phone.

Do I need a newer SDK for biometric consent in Illinois, Texas or Colorado?

Yes. The consent step before the first face capture needs native SDK 4.10.0 or later, and the React Native releases that pin native 4.10.0 or later include it. On an older SDK the session still runs, and the decision reports biometric_consent.status as pending with reason BIOMETRIC_CONSENT_UNSUPPORTED_SDK.

What changed in React Native 4.15.3 for the camera flow?

It fixed startVerification and startVerificationWithWorkflow on Android: when the app is sent to the background, the call waits until the app is back in the foreground before opening the verification screen, and always settles. The 4.15.4 and 4.15.3 React Native releases pin the matching native version and add no JavaScript API of their own.

What does the decision return after the camera steps?

The decision returns per-step results as plural arrays: id_verifications[] for the document capture, liveness_checks[] for the selfie and face_matches[] for the comparison, each with a status from the shared enum and its own warnings. Read it with GET https://verification.didit.me/v3/session/{session_id}/decision/ or from the status.updated webhook. Do not assume the singular V2 fields.

How do I reproduce a declined liveness result in the sandbox?

Create the session with a sandbox_scenario slug from the sandbox catalog at GET /v1/sandbox/scenarios/, and the scenario's bundled values reproduce that outcome. Sandbox scenarios are rejected with 400 on live applications.

Is the hosted flow a valid fallback when the camera is blocked in the app?

Yes. Didit's hosted flow in a browser, the Web SDK or a WebView also shows the biometric consent step, so the person can finish verification outside the app. For routine camera capture we still recommend the native SDK, because it uses the device camera directly rather than going through a WebView.

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.