So, I wanted to integrate Biometeric Dialog similar to that in my android app. I was following google android docs. Here's the Link to the documentation. But I think this is for fingerprint authentication only. How to get both icons in same dialog? if two things are registered on your phone? Are they using custom api for biometric?
Asked
Active
Viewed 939 times
1 Answers
1
This dialog will only Appear if you are using Android 9 or higher on a device that has face ID and both faceid and fingerprints are registered
But NOT on samsung devices with android 9.
this is the code needed to display it:
val biometricPrompt = BiometricPrompt.Builder(context)
.setTitle(title)
.setSubtitle(subtitleText)
.setDescription(description)
.setNegativeButton(negativeButton, executor!!, cancelListener)
.build()
biometricPrompt.authenticate(cancellationSignal, executor, BiometricCallback)

Lena Bru
- 13,521
- 11
- 61
- 126
-
ohh so this also works in case of suppose user has only registered faceid? then only face icon shows in same dialog? – Darpal Feb 14 '20 at 18:56
-
yes it does, and this is some text to fill the answer – Lena Bru Feb 14 '20 at 19:08