2

I have started migrating to BiometricManager part of Android 29. We have a requirement to display a different icon for face or Fingerprint depending upon device support. Even the following code returns true on Pixel 4 though Face recognition is available.

 PackageManager pm = context.getPackageManager();
 pm.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)
Bulu
  • 1,351
  • 3
  • 16
  • 37

1 Answers1

0

The following blog post walks you through implementing the Biometrics Library. If you follow the instructions, then your app should work with all form-factors without you having to do anything (whether fingerprint, face, iris, etc.).

Essentially, with the new library, UI is no longer the concern of developers. The library will detect whether a device uses face or fingerprint and will display the appropriate UI to the user.

You may also find this blog post useful.

Isai Damier
  • 976
  • 6
  • 8
  • This doesn't work. There is no way to differentiate between fingerprint vs biometric – Bulu Jan 17 '20 at 02:42