Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identify biometric type from isAvailable() function #223

Closed
juicyapphk opened this issue Jan 22, 2020 · 4 comments
Closed

Identify biometric type from isAvailable() function #223

juicyapphk opened this issue Jan 22, 2020 · 4 comments
Labels
feature Request feature

Comments

@juicyapphk
Copy link

Feature Request

Feature Description

From current plugin version (v3.0.0) on Android, the isAvailable() function will only return either "biometric" (for Anroid P+) or "finger" (for older version) value.

Instead of "biometric" , is there any way we can identify whether the available biometric method is "Face Recognization" or "Fingerprint"?

Alternatively, will you consider separating the functions like:

  • From isAvailable() to: isFaceAuthAvailable() and isFingerprintAuthAvailable()
  • From show() to: showFaceAuth() and showFingerprintAuth()

Thanks for your great work!

@juicyapphk juicyapphk added the feature Request feature label Jan 22, 2020
@NiklasMerz
Copy link
Owner

I think there is now way in the Biometric Prompt API to determine which type is available.

See #179 (comment)
And https://issuetracker.google.com/issues/111315641

@exxbrain Correct me if I'm wrong.

@derek90
Copy link
Contributor

derek90 commented Apr 29, 2020

I'm not sure, but I'm assuming that if the platform is Android, 'biometric' will mean fingerprint (is there an android device with face recognition? I guess just iPhone has it)

@takhil
Copy link

takhil commented May 26, 2020

@NiklasMerz

I'm facing same issue with android 9 operating system(samsung s 9 model) which has both face id and touch id and device is prompting for face id but, when I use plugin version 1.7.0 works fine with touch id as authentication mode with plugin version 3.0.1 it is looking for face id.

Is there any thing need to be updated from my side to handle this or device functionality ?

FYI - I'm not seeing this on One plus devices with OS version 10.0 (oxygen) which has both touch and face id.

@NiklasMerz
Copy link
Owner

Please check out #303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request feature
Projects
None yet
Development

No branches or pull requests

4 participants