I want to integrate Biometric detection in my app. I want to check 2 condition before show the BiometricPromt authentication to the user:
- Detect the Biometric sensor/hardware available or not in the device.
- Detect any Biometric is enrolled or not in the device.
Have tried lots of SO answers like this but didn't solve my requirement. Whenever am trying to check for hardware using below method every time used to get BIOMETRIC_ERROR_NONE_ENROLLED status and even for checking the fingerprint enrolled or not getting the same status BIOMETRIC_ERROR_NONE_ENROLLED.
Is there any way to detect biometric hardware presence and user enrolment in the device there will get the respective status based on condition like BIOMETRIC_ERROR_NONE_ENROLLED and BIOMETRIC_ERROR_NO_HARDWARE? And will get the accurate status?