Fingerprint AIO

Contents

Use simple fingerprint authentication on Android and iOS. Requires Cordova plugin: cordova-plugin-fingerprint-aio. For more info about plugin, vist: https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio

https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio

Ionic Fingerprint AIO插件的安装(Installation)

ionic cordova plugin add cordova-plugin-fingerprint-aio npm install @ionic-native/fingerprint-aio

Ionic Fingerprint AIO插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Fingerprint AIO插件的用法(Usage)

import { FingerprintAIO } from '@ionic-native/fingerprint-aio';

constructor(private faio: FingerprintAIO) { }

...

this.faio.show({
    clientId: 'Fingerprint-Demo',
    clientSecret: 'password', //Only necessary for Android
    disableBackup:true,  //Only for Android(optional)
    localizedFallbackTitle: 'Use Pin', //Only for iOS
    localizedReason: 'Please authenticate' //Only for iOS
})
.then((result: any) => console.log(result))
.catch((error: any) => console.log(error));