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

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 #

Flutter Web Support #

Please add the following snippet to your web/index.html inside <head></head> in your Flutter project.

<script src="./assets/packages/mantra_biometric/assets/mantra.js" defer></script>

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 #

5
likes
130
points
69
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)

Documentation

API reference

License

MIT (license)

Dependencies

collection, flutter, flutter_web_plugins, js, plugin_platform_interface, xml

More

Packages that depend on mantra_biometric