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

var serviceName = (biometryType === "face") ? "Face ID" : "Touch ID" #58

Open
MatthewPringle opened this issue Sep 27, 2018 · 2 comments

Comments

@MatthewPringle
Copy link

MatthewPringle commented Sep 27, 2018

For those who care, on Android such as the S8 where it has fingerprint and face biometrics, it returns "OK" rather than "face" or "touch"

@Lirianna
Copy link

For those who care, on Android such as the S8 where it has fingerprint and face biometrics, it returns "OK" rather than "face" or "touch"

Hi @MatthewPringle,

Thank you for your comment. It really helped me 👍 Do you have a solution for Android phone, where it returns "OK"? I want to open the face authentication window, when both face and touch is enabled. Right now, it opens touch when the biometryType === "OK".

I have tried to write var serviceName = (biometryType === "OK") ? "Face ID" : "Touch ID" just to debug this issue, but the device still opens the touch authentication window 😞

Any suggestions?

@MatthewPringle
Copy link
Author

Hey @Lirianna I just default to saying "Biometric ID" where I can't get which service the phone is going to provide. At least that way the user doesn't see the words "Touch" or "Face" when I dont know which one will be presented to the user.

/* Touch ID */
if ( this.get( 'type' ) === 'touch' ) {
    return 'Touch ID';

/* Face ID */
} else if ( this.get( 'type' ) === 'face' ) {
    return 'Face ID';

/* Biometric ID */
} else {
    return 'Biometric ID';
}

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

No branches or pull requests

2 participants