Skip to main content

Metric Flutter SDK 2 Integration Guide

Overview

MetricWebviewSDK is a flutter package designed to facilitate token-based identity verification through the Metric Africa service. The SDK provides methods to initiate token verification and check the status of a verification token, as well as a Verification modal for displaying the verification process.


Features

  • Token Verification: Initiate token-based verification processes with configurable parameters.
  • Token Status Check: Retrieve the status of verification tokens.
  • Verification Modal: Seamless integration with a modal for user interactions.

Prerequisites

Before you begin, ensure your development environment meet the following requirements:

  • Flutter SDK - Version 1.17.0 or higher
  • Dart SDK - Version 3.6.0 or higher
  • Android SDK - Version 24 or higher

After these have been configured, ensure your camera permissions have been set in your info.plist and AndroidManifest.xml files in your iOS and android folders respectively.

iOS Permissions

<key>NSCameraUsageDescription</key>
<string>Camera access is required for verification</string>
<key>NSMicrophoneUsageDescription</key>
<string>Microphone access is required for verification</string>

Android Permissions

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />