mjwheatley / cordova-plugin-android-fingerprint-auth

A cordova plugin for fingerprint authentication using the hardware fingerprint scanner on devices running Android 6+
Apache License 2.0
168 stars 131 forks source link

Can you please provide more information #1

Closed rakeshpalivela closed 8 years ago

rakeshpalivela commented 8 years ago

Hi, I need some more information about this plugin. Like, do we need to add any libraries for this? Compatible with which Android devices..? etc.

mjwheatley commented 8 years ago

This plugin uses the Android 6.0 APIs made available in SDK 23. You need to set your targetSdkVersion and compileSdkVersion to 23 and use buildToolsVersion 23.0.2

This plugin is compatible with devices running Android 6.0 and above that have a hardware fingerprint scanner. You should call FingerprintAuth.isAvailable(isAvailableSuccess, isAvailableError); to check if the plugin is available before trying to show the fingerprint authentication dialog.

I recommend using the cordova-plugin-device and wrapping the isAvailable() call inside a conditional to check the platform and version.

if (device.platform === "Android" && device.version.startsWith("6.")) {
    FingerprintAuth.isAvailable(isAvailableSuccess, isAvailableError);
}
rakeshpalivela commented 8 years ago

@mjwheatley Thanks for your reply. The above information will help me to configure.