Socket
Socket
Sign inDemoInstall

cordova-plugin-fingerprintplugin

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-plugin-fingerprintplugin

- Android


Version published
Weekly downloads
4
decreased by-73.33%
Maintainers
1
Install size
21.5 kB
Created
Weekly downloads
 

Readme

Source

FingerprintPlugin

Platforms
  • Android
Installation
npm i cordova-plugin-fingerprintplugin
cordova plugin add cordova-plugin-fingerprintplugin
Remove
ionic cordova plugin remove cordova-plugin-fingerprintplugin
Usage
// HAS
var pin = "pinAutenticazione";
cordova.plugins.FingerprintPlugin.has(pin, (hasPin) => {
    console.log("success",hasPin);
    if (hasPin === 'OK') {
        veryfyFingerPrint();
    } else {
        console.log("pin non impostato");
    }
}, console.error);

// VERIFY 
function veryfyFingerPrint (){

    cordova.plugins.FingerprintPlugin.verify(pin, (pin) => {

        console.log("success",a);
        if(this.myInfo.pin == a){
            this.viewCtrl.dismiss({
                auth:true
            }); 
            this.statusBar.show();
        }else{
            console.log("Pin errato");
            this.errorMessage = "Pin errato";
        }

    }, (err) => {

        if(err === "onAuthenticationFailed"){
            console.log("Impronta non riconosciuta, Riprova";
            setTimeout(veryfyFingerPrint.bind(this),900));
        } else if (err.indexOf("onAuthenticationHelp") > -1){
            console.log(a.split("onAuthenticationHelp ")[1]);
            setTimeout(veryfyFingerPrint.bind(this),900);
        } else  if (err.indexOf("onAuthenticationError") > -1){
            console.log(err.split("onAuthenticationError ")[1]);
        }

    });
    
}

//SAVE 
var inputPin = "1234";
cordova.plugins.FingerprintPlugin.save(pin,inputPin,console.log,console.error);

//DELETE
cordova.plugins.FingerprintPlugin.delete(pin,console.log,console.error);

Keywords

FAQs

Last updated on 12 Sep 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc