Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
cordova-plugin-ebw-fingerprint-aio
Advanced tools
Cordova plugin to use fingerprint authentication on Android and iOS
This plugin provides a single and simple interface for accessing fingerprint APIs on both Android 6+ and iOS.
<preference name="UseSwiftLanguageVersion" value="4.0" />
in your config.xmlTutorial about using this plugin with Ionic thanks to Paul Halliday
Install from NPM
cordova plugin add cordova-plugin-fingerprint-aio --save
If you want to set a FaceID description use:
cordova plugin add cordova-plugin-fingerprint-aio --variable FACEID_USAGE_DESCRIPTION="Login now...."
Use the release candidate for testing the latest fixes
You can use preview versions with the rc
tag on npm.
cordova plugin add cordova-plugin-fingerprint-aio@rc
Use this Github repo
Get the latest development version. Not recommended!
cordova plugin add https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio.git
Fingerprint.isAvailable(isAvailableSuccess, isAvailableError);
function isAvailableSuccess(result) {
/*
result depends on device and os.
iPhone X will return 'face' other Android or iOS devices will return 'finger' Android P+ will return 'biometric'
*/
alert("Fingerprint available");
}
function isAvailableError(error) {
// 'error' will be an object with an error code and message
alert(error.message);
}
Fingerprint.show({
description: "Some biometric description"
}, successCallback, errorCallback);
function successCallback(){
alert("Authentication successful");
}
function errorCallback(error){
alert("Authentication invalid " + error.message);
}
"<APP_NAME> Biometric Sign On"
null
"Authenticate"
(iOS' evaluatePolicy() requires this field)null
"Cancel"
"Use PIN"
"Use Backup"
(Because backup could be anything pin/pattern/password ..haven't figured out a reliable way to determine lock type yet source)true
remove backup option on authentication dialogue. Default: false
. This is useful if you want to implement your own fallback.true
previously saved secret will be loaded as a result of successful authentication.true
secret will be deleted when biometry items are deleted or enrolled-100
;-101
;-102
;-103
;-104
;-105
;-106
;-107
;-108
;-109
;-110
;-111
;-112
;-113
;Thanks to the authors of the original fingerprint plugins
Some code is refactored from their projects and I learned how to make Cordova plugins from their great plugins:
@EddyVerbruggen and @mjwheatley
Starting with version 3.0.0 the iOS and Android parts are written from scratch.
The project is MIT licensed: MIT.
FAQs
Cordova plugin to use fingerprint authentication on Android and iOS
The npm package cordova-plugin-ebw-fingerprint-aio receives a total of 0 weekly downloads. As such, cordova-plugin-ebw-fingerprint-aio popularity was classified as not popular.
We found that cordova-plugin-ebw-fingerprint-aio demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.