FaceTec SDK Flutter Plugin Demo

This plugin provides easy access to the FaceTec SDK from a Flutter app using the Android or iOS platform. This plugin is created by SnapCommute Labs Pvt. Ltd. This plugin contains limited functionality. For full version of the plugin please send an email request to plugins@snapcommute.com. The full version has functionalities for enrollment, authentication, IDScan etc. as well as full customization options available through FaceTec SDK.

Note: This is only a demo plugin with minimum functionality and currently this plugin works with Device SDK verion 8.12.0

Installation

Download the complete code to a local folder and add the below in pubspec.yaml of the project you want to add the plugin

facetec_flutter_plugin_demo: path: ../

As provided in the example app, update your device key identifier provided in the FaceTec developer website.

File copy and modification

Since the FaceTec SDK files are large, it is not included in Flutter Pub folder. Please visit FaceTec Developer Website (dev.facetec.com) and download the sdk files and copy the relevant file to the root folder of this plugin.

For Android, there will be a .aar file inside the downloaded zip file (like zoom-authentication-.aar), which has to be copied to a 'libs' folder under the root folder. For iOS, there will be a folder named ZoomAuthentication.framework inside ZoomAuthentication-ios- folder, within the zip file, which has to be copied to the root folder.

Image files also needs to copied for the latest SDK to work properly. For Android copy the drawable-nodpi folder available in the sample app provided along with the android sdk download. For iOS copy the Assets.xcassets folder available in the sample app provided along with the iOS sdk download. Ensure you delete confilicting images like app icon etc.

Fos iOS, add the 'NSCameraUsageDescription' in info.plist for the camera permission screen to appear.

Functions available in the plugin

FacetecFlutterPluginDemo.initialize("ADD YOUR KEY HERE");

FacetecFlutterPluginDemo.verify;

FacetecFlutterPluginDemo.enroll("user_id");

FacetecFlutterPluginDemo.authenticate("user_id");

FacetecFlutterPluginDemo.idCheck("user_id");

FacetecFlutterPluginDemo.getEnrollmentStatus("user_id");

FacetecFlutterPluginDemo.deleteEnrollment("user_id");

FacetecFlutterPluginDemo.auditTrail;

FacetecFlutterPluginDemo.idScanImages;

FacetecFlutterPluginDemo.setServerUrl("sever_url");

FacetecFlutterPluginDemo.setPublicKey("public_key");

FacetecFlutterPluginDemo.setTheme("theme");

FacetecFlutterPluginDemo.getSdkStatus;

FacetecFlutterPluginDemo.getVersion;

Getting Started with Flutter

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Libraries

facetec_flutter_plugin_demo