Skip to main content

Adaptive Age Estimation for Mobile with Didit Flutter SDK

How Didit's Flutter SDK adds age estimation to mobile apps: facial analysis, configurable liveness detection and a document fallback.

Adaptive Age Estimation for Mobile with Didit Flutter SDK

Contents

In this guide

Jump to the part you need.

Seamless Mobile IntegrationDidit's Flutter SDK provides a robust and easy-to-integrate solution for age estimation directly within mobile applications, ensuring a smooth user experience on both iOS and Android platforms.

AI-Powered Accuracy and LivenessEstimate age from a selfie with facial analysis, combined with passive and active liveness detection to counter spoofing attacks.

Configurable Age Verification WorkflowsImplement flexible age verification rules, including minimum age thresholds and automatic fallback to ID verification for borderline cases, adapting to diverse regulatory needs.

Didit's Developer-First ApproachDidit gives developers a modular, API-driven platform with no setup fees.

The Growing Need for Age Verification in Mobile Apps

In today's digital landscape, mobile applications span a vast array of services, from gaming and social media to e-commerce and financial platforms. Many of these services, by law or policy, require users to be of a certain age. Age rules are not only about avoiding legal penalties; they are about protecting minors, maintaining brand reputation, and fostering a responsible online environment. Traditional age verification methods, such as manual document checks, are often cumbersome, slow, and not well-suited for the fast-paced mobile user experience. This is where adaptive age estimation technologies become invaluable.

For developers, integrating robust age verification without compromising user experience or development timelines is a significant challenge. The solution must be accurate, secure, and seamlessly integrate into existing mobile frameworks. Didit's Age Estimation, especially when deployed via its Flutter SDK, addresses these needs by providing an AI-native, developer-first approach to age verification.

How AI-Powered Age Estimation Works

Didit's Age Estimation technology utilizes advanced facial analysis and machine learning algorithms to accurately estimate a user's age from a selfie or live video feed. The result is an estimate, not proof of age. Estimates near your threshold can fall on either side of it, so send that band to a document check. The core of this technology lies in its ability to analyze facial features, textures, and other biometric markers that correlate with age.

Crucially, age estimation is paired with sophisticated liveness detection to prevent fraud. Didit offers both passive and active liveness checks:

  • Passive Liveness: Verifies that the user is a real, living person without requiring any specific actions from them, analyzing subtle movements and reflections.
  • Active Liveness (e.g., 3D Action & Flash): Guides the user through a series of actions (like turning their head or blinking) or uses flashing lights to confirm liveness and defend against sophisticated spoofing attempts, such as deepfakes or high-resolution photo/video attacks.

Age estimation and liveness detection run together, so an age never comes back without a liveness score. The system generates a detailed report, including the estimated age, liveness score, and any potential warnings like LOW_LIVENESS_SCORE or AGE_BELOW_MINIMUM, allowing applications to make informed decisions.

Building Adaptive Workflows with Configurable Settings

One of the key advantages of Didit's Age Estimation is its flexibility and configurability. Businesses can tailor the verification process to meet their specific requirements and risk profiles. For instance, applications can set a strict minimum age requirement (e.g., 18 or 21) and configure how the system responds when the estimated age falls below this threshold.

Key configurable options include:

  • Age Threshold: Define the precise minimum age users must meet.
  • ID Verification Fallback: For borderline cases or when age estimation confidence is low, the system can automatically initiate a fallback to Didit's ID Verification, requesting the user to present an official document like a driver's license or passport. This ensures comprehensive coverage and higher assurance when needed.
  • Liveness Score Thresholds: Configure review and decline thresholds for liveness scores. Sessions with scores below the review threshold can be flagged for manual review, while those below the decline threshold can be automatically rejected.
  • Duplicate Face Detection: Set similarity thresholds to detect POSSIBLE_DUPLICATED_FACE instances, preventing users from creating multiple accounts.

This adaptive approach allows businesses to balance user convenience with the need for stringent security and compliance, creating dynamic verification workflows that respond intelligently to varying levels of risk.

Integrating Age Estimation with Didit's Flutter SDK

For mobile developers, integration ease is paramount. Didit's Flutter SDK simplifies the process of embedding advanced age estimation capabilities into any Flutter application. The SDK provides a Dart API that wraps native iOS and Android SDKs, ensuring optimal performance and access to device-specific features like NFC verification for ePassports/eIDs.

Integrating Didit's Age Estimation via the Flutter SDK involves:

  1. Adding the didit_sdk package to your Flutter project.
  2. Configuring platform-specific settings for iOS and Android.
  3. Creating a verification session on your backend using Didit's API, which returns a session token.
  4. Passing this session token to the Flutter SDK to initiate the age estimation flow within your mobile app.

The SDK handles the entire user-facing flow, including capturing the necessary biometric data (selfies, video for liveness) and securely transmitting it to Didit's backend for processing. Developers receive a comprehensive JSON report containing the age_estimation value, liveness status, and any applicable warnings, allowing for seamless integration into their application's logic. This developer-first approach, coupled with an instant sandbox and public documentation, makes Didit a leading choice for mobile identity verification.

Store signal first, your own check second

Google Play and Apple can return an age range for a user, so read that first and stop if it is enough for the feature and for the law that applies. If it is not shared, only declared or not available, an own check can follow: see what to do when the age signal is missing. The answers Google Play returns are in the Play Age Signals API guide. Keep the store's signal out of the session you start with a vendor.

How Didit Helps

Didit stands out as the premier solution for adaptive age estimation and identity verification due to its AI-native, modular architecture, and developer-first philosophy. Our platform offers a comprehensive suite of identity primitives, including Age Estimation, Passive & Active Liveness, and ID Verification, which can be composed into custom workflows tailored to your exact needs. Didit’s modular design allows you to plug-and-play identity checks, ensuring you only use what you need, when you need it.

We believe in making robust identity verification accessible. Age Estimation costs $0.10 per check, as listed on the pricing page, with no setup fees. With Didit, you gain an AI-native platform that automates trust and orchestrates risk globally, all through clean APIs or a no-code Business Console. Which check a feature needs depends on the law that applies to it: gambling and alcohol rules often ask for more than an estimate.

Ready to Get Started?

Want to see age estimation in your app? Get a demo.

Prefer to try it yourself? Start free in the Business Console.

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

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

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.