Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Exception: java.lang.RuntimeException: Could not invoke ReactNativeFingerprintScanner.authenticate #167

Open
shubhnik opened this issue Jan 20, 2021 · 0 comments

Comments

@shubhnik
Copy link

shubhnik commented Jan 20, 2021

Getting this error on android
Screenshot 2021-01-20 at 4 44 03 PM

react-native-fingerprint-scanner: 4.0.0
code snippet:

FingerprintScanner.authenticate({
          description: "App",
          fallbackEnabled: true,
        })
          .then(() => {
            FingerprintScanner.release();
            setAuthenticated(true);
            setLockAuthenticating(false);
          })
          .catch((error) => {
            // When authentication fails
            if (error.name !== 'SystemCancel') {
              setStack('lock');
            }
            setLockAuthenticating(false);
            FingerprintScanner.release();
          });

What could we be doing wrong? Is there any use case that we aren't handling?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant