cordova-plugin-fingerprint-aio
cordova-plugin-fingerprint-aio copied to clipboard
Samsung s8 - Backup always returns BIOMETRIC_DISMISSED
In Samsung Galaxy s8 - Android OS version 9.0, when we use backup in fingerprint-aio, it always returns BIOMETRIC_DISMISSED in error callback function even-though we enter the correct pin.
It should return to success callback function if the entered backup pin is correct.
Attached Cordova info log to refer about the project configuration.
function authenticate() {
if (typeof window.Fingerprint != 'undefined') {
window.Fingerprint.isAvailable(function (res) {
window.Fingerprint.show({
title: "Biometric plugin",
clientId: "Fingerprint-Demo",
clientSecret: "clientSecret",
fallbackButtonTitle:"use Backup",
disableBackup: false,
secret: "secret",
loadSecret: true
}, successCallback, errorCallback);
}, function(err){
alert("auth Error not available");
});
}
}
function successCallback(){
alert("Authentication successfull");
}
function errorCallback(err){
alert("Authentication invalid " + JSON.stringify(err));
}
Are you sure you are using the right optionalParameters?
Yes I tried with multiple combinations (including with and without clientId and clientSecret based on new and old documentations) there is no behaviour change.
Added to that we have tested it in different devices with face recognition on and off and observed different behaviour for the same app. Please check the attached document for more details.
Sounds like a device specific issue