cordova-plugin-fingerprint-aio icon indicating copy to clipboard operation
cordova-plugin-fingerprint-aio copied to clipboard

Samsung s8 - Backup always returns BIOMETRIC_DISMISSED

Open Johnny2528 opened this issue 4 years ago • 3 comments

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.

cordova-info.log

          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));
              }

Johnny2528 avatar Aug 12 '20 21:08 Johnny2528

Are you sure you are using the right optionalParameters?

kendyl93 avatar Aug 18 '20 13:08 kendyl93

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.

Response in different devices.txt

Johnny2528 avatar Aug 19 '20 22:08 Johnny2528

Sounds like a device specific issue

NiklasMerz avatar Dec 10 '20 18:12 NiklasMerz