mantra_biometric 0.0.2 copy "mantra_biometric: ^0.0.2" to clipboard
mantra_biometric: ^0.0.2 copied to clipboard

outdated

Mantra biometric plugin is to enable the biometric based aadhaar authentication with registered device concept implemented by UIDAI.

mantra_biometric #

pub package

NOTE: we have tested this plugin with Mantra MFS100-Fingerprint-Sensor.

A Flutter plugin to enable the biometric based aadhaar authentication with registered device concept implemented by UIDAI. Supports Android,Web,Windows.

Platform Support #

Android iOS MacOS Web Linux Windows
✔️

Prerequisite #

INSTALLATION OF MANTRA MFS 100 driver and RD Service #

Android

Web, Windows

CONNECTING MANTRA MFS 100 to Computer #

  • Plug in the Biometric device
  • On first time initialization bottom right prompt will instruct to unplug and replug the device
  • After connecting the USB connector for Biometric device attached prompt is seen on bottom right of the screen
  • After successful connection to server Framework ready to use prompt shows up

Usage #

Example #

// Import package
import 'package:mantra_biometric/mantra_biometric.dart';

// Instantiate Object
final _mantraBiometricPlugin = MantraBiometric();

// To get device Information call following method
String output = await _mantraBiometricPlugin.getDeviceInformation() ?? "";

// To scan fingerprint call following method
/// `captureFingerPrint` method required pidOptions as paramter
// 
String wadh = "";
String pidOptions ="<PidOptions ver=\"1.0\"> <Opts fCount=\"1\" fType=\"2\" pCount=\"0\" format=\"0\" pidVer=\"2.0\" wadh=\"$wadh\" timeout=\"20000\"  posh=\"UNKNOWN\" env=\"P\" /> </PidOptions>";
String result = await _mantraBiometricPlugin.captureFingerPrint(pidOptions: pidOptions) ?? "";

Exceptions #

    import 'package:mantra_biometric/utils/mantra_plugin_exception.dart';
  • RDClientNotFound

    Throws if RD Services Client is not installed on device/computer

  • RDException

    Throws if you have pass wrong pidOptions parameter to captureFingerPrint Method.

Api Documentation #

6
likes
0
points
131
downloads

Publisher

verified publisherfluttercrew.dev

Weekly Downloads

Mantra biometric plugin is to enable the biometric based aadhaar authentication with registered device concept implemented by UIDAI.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, flutter, plugin_platform_interface, xml

More

Packages that depend on mantra_biometric

Packages that implement mantra_biometric