Changes

Jump to: navigation, search

An Android Biometric Authentication Tutorial

29 bytes added, 15:59, 16 January 2019
no edit summary
This chapter provides both an overview of biometric authentication and a detailed, step by step tutorial that demonstrates a practical approach to implementing biometric authentication within an Android app project.
== An Overview of Biometric Authentication Authentication ==
The key biometric authentication component is the BiometricPrompt class. This class performs much of the work that previously had to be performed by writing code in earlier Android versions, including displaying a standard dialog to guide the user through the authentication process, performing the authentication and reporting the results to the app. The class also handles excessive failed authentication attempts and enforces a timeout before the user can try again.
The method then checks that the user has biometric authentication permission enabled for the app before using the package manager to verify that fingerprint authentication is available on the device.
<htmlet>androidstudio32</htmlet>
== Configuring the Authentication Callbacks ==

Navigation menu