androidfingerprintandroid-fingerprint-apikeyguard

Android - is KeyguardManager necessary to use fingerprint?


Currently implementing a fingerprint authentication following this tutorial where a KeyguardManager is instanciated to :

[...] verify that a backup screen unlocking method has been configured (in other words a PIN or other authentication method can be used as an alternative to fingerprint authentication to unlock the screen).

Question : I was wondering if it was really necessary to have a KeyguardManager to use fingerprint authentication.

Thanks,


Solution

  • You cannot use Fingerprint authentication in standalone mode in your app, for instance register multiple users fingerprint on same device.

    When you use fingerprint authentication in your app, android check if user fingerprint match one of fingerprints register to unlock device.

    Fingerprints are only register in Settings Unlock Android, your app cannot do it.