mantra_biometric

Last updated:

0 purchases

mantra_biometric Image
mantra_biometric Images
Add to Cart

Description:

mantra biometric

mantra_biometric #

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

Download Mantra RD Service application from playstore.

Web, Windows


Download RD service


Download Windows Driver
Run both exe files downloaded


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 #

To use this plugin, add mantra_biometric as a dependency in your pubspec.yaml file.

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>

copied to clipboard
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) ?? "";

copied to clipboard
Exceptions #
import 'package:mantra_biometric/utils/mantra_plugin_exception.dart';
copied to clipboard


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 #

RD Service APIs

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.