Closed robtoll closed 5 years ago
Perhaps the error is swallowed. Do you have a catch
clause, similar to this?
this.fingerprintAuth.available()
.then((result: BiometricIDAvailableResult) => {
console.log("doCheckAvailable result: " + JSON.stringify(result));
})
.catch(err => {
console.log("doCheckAvailable error: " + err);
});
If so , please run adb logcat
with the device attached, and look at the log when you run the available
function.
Hmm, yes - this works as a fallback, but I thought it was supposed to return an object that shows the available support - whether it is available or not. It's OK tho - I can use it in this way, I just have to code it a bit differently. Thanks
I was actually interested in the error you caught because indeed that’s not what’s supposed to happen.
Oh, sorry, I misunderstood! The error outputs a string "Device doesn't support fingerprint authentication" Thanks for your support Eddy
I'm testing on 3 Android devices, none of which have touchID functionality the function "fingerprintAuth.available()" doesnt return anything on a Sony Xperia - L1, Android 7.0 it works fine on a Sony Z3 (Android 6.01) and an HTC Sense (Android 4.4.2) Also works for my iPhone and iPad. Any ideas why Android 7.0 would have problems? Thanks