79202100

Date: 2024-11-19 04:40:22
Score: 1
Natty:
Report link

Your code is only checking face recognition/fingerprint capabilities of the device. That's why it's returning true because the device has face recognition/fingerprint support. Once the user register face recognition/fingerprint, you need to manually save the value, preferably to a sharedpreference file (if you want the value to persist even after the app is finished) and then access that value from sharedpreference file when you want to check whether Face recognition/fingerprint is registered or not. Your current code can't help you with that as it's only a basic way to check device capabilities regarding FR/FP. It's not designed to save app specific registration values

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: user27894462