[@nativescript/fingerprint-auth] verifyFingerprint() no longer works with N7 and Android
See original GitHub issueThe previous version the plugin was working on Android <10, but the latest version seems to be broken on Android when using NativeScript 7. Tested on Android 6 and 10.
Calling verifyFingerprint()
results in the following error:
Error in fingerprint-auth.verifyFingerprint: Error: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/security/identity/IdentityCredential;
Example:
fingerprintAuth.available().then(
function(avail) {
console.log(avail);
console.log(`Biometric ID available? ${avail.any}`); // => true
console.log(`Touch? ${avail.touch}`); // => undefined
console.log(`Face? ${avail.face}`); // => undefined
console.log(`Biometrics? ${avail.biometrics}`); // => true
if (avail.any) {
fingerprintAuth.verifyFingerprint(
{
title: 'Android title',
message: 'Scan your finger',
authenticationValidityDuration: 10,
useCustomAndroidUI: false
})
.then(() => {
console.log("Biometric ID OK")
})
.catch(err => console.log(`Biometric ID NOT OK: ${JSON.stringify(err)}`));
}
}
)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:15 (5 by maintainers)
Top Results From Across the Web
Sound Processor and App Compatibility
Note: Sound Check in the Nucleus Smart App is compatible with iPhone 7 and up, and with the same Android devices that support...
Read more >Nucleus Smart - Apps on Google Play
With the Cochlear™ Nucleus® Smart App you can control your Nucleus 7 Sound Processor directly from your compatible mobile device for a personalised...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Issue got solved in here https://github.com/NativeScript/plugins/tree/main/packages/biometrics
switching plugin from fingerprint-auth to @nativescript/biometrics fixed it for us