question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[@nativescript/fingerprint-auth] verifyFingerprint() no longer works with N7 and Android

See original GitHub issue

The 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:open
  • Created 2 years ago
  • Reactions:2
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sosclercommented, Jan 9, 2022
0reactions
r0nnebergcommented, Aug 11, 2022

switching plugin from fingerprint-auth to @nativescript/biometrics fixed it for us

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found