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

fingerprint-auth.available: TypeError: Cannot read property 'isHardwareDetected' of null #73

Open
cloudhx opened this issue Jan 15, 2020 · 4 comments

Comments

@cloudhx
Copy link

cloudhx commented Jan 15, 2020

When running my app on a new Android 9 device (previously running on Android 7 without this problem), it reports the following error:

fingerprint-auth.available: TypeError: Cannot read property 'isHardwareDetected' of null

Method isHardwareDetected was added in API level 23 and deprecated in API level 28 which is Android 9 Pie, I was thinking this might be an issue for API level 28 and later versions.

@TPham92
Copy link

TPham92 commented May 6, 2020

Any updates on this issue?

@Pandishpan
Copy link

I'm experiencing the same issue on Android 9, Phone Model SM-A105FN (PPR1.180610.011) (this model doesn't have a fingerprint sensor?)

Uncaught (in promise): TypeError: Cannot read property 'isHardwareDetected' of null
TypeError: Cannot read property 'isHardwareDetected' of null

However, I can't replicate the same issue on a phone with the same Android version but with a fingerprint sensor. I think this is happening if the phone doesn't have a fingerprint sensor and the API level is 28 or higher.

@cloudhx
Copy link
Author

cloudhx commented May 24, 2020

Thanks @Pandishpan I think it makes sense, I will check my devices and also see if there is a way to catch the exception in this case.

@erjdriver
Copy link

erjdriver commented May 24, 2020

+1.

Phone is without fingerprint sensor but with faceid.

The error seems to be in fingerprint-auth.android.js - a simple check for fingerprintManager not being undefined would fix the issue.

I assume that the android version of the plugin doesn't support face-id - because I don't see any code related to it.

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

4 participants