Facial Authentication in Xamarin Android

SnapADragon 1 Reputation point
2020-12-21T13:01:49.397+00:00

I am trying to add an option in my Xamarin Android application to authenticate using Face registered in the Android settings.
I already have Fingerprint Authentication implemented but I can't seem to find any API exposed by Xamarin for Facial Authentication. And the API exposed by native Android seems to handle Biometric Authentication in general, and does not expose a separate API for Facial Authentication.

Does anyone have more information on this?

Please note that I am not looking for Facial Recognition - All the solutions I have found so far talks about Recognition and not Authentication.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
    2020-12-22T07:54:55.823+00:00

    Hello,

    Welcome to Microsoft Q&A!

    From Android 10 (API level 29) we can use AndroidX Biometric Library to authenticate , the library does not expose a separate API for Facial Authentication because it is not responsible for targeting specific form-factors . If a device supports facial biometrics, then you will see a prompt for facial authentication; if your device supports fingerprint biometrics, then you will see a prompt for fingerprint authentication; and so on.

    Please check details

    https://medium.com/androiddevelopers/migrating-from-fingerprintmanager-to-biometricprompt-4bc5f570dccd
    https://android-developers.googleblog.com/2019/10/one-biometric-api-over-all-android.html

    Thank you.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments