Comments (2)
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';
}
from cordova-plugin-keychain-touch-id.
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?
from cordova-plugin-keychain-touch-id.
Related Issues (20)
- Add NSFaceIDUsageDescription for iOS HOT 3
- Command `save`: unable to make `userAuthenticationRequired` work HOT 4
- isAvailable not returns touch on Android
- Touch ID not available show after several times input wrong fingerprint
- Selecting "Enter Password" immediately fails on ios HOT 2
- Add Backup option
- Abandoned Plugin HOT 16
- How we need to set maxAttempts length for android??
- :app:processDebugResources/project/app/src/main/res/layout/fingerprint_dialog_content.xml:37: AAPT: error: resource drawable/ic_fp_40px (aka com.phonegap.helloworld:drawable/ic_fp_40px) not found. /project/app/src/main/res/layout/fingerprint_dialog_content.xml:37: error: resource drawable/ic_fp_40px (aka com.phonegap.helloworld:drawable/ic_fp_40px) not found. error: failed linking file resources. Failed to execute aapt
- Calling 'save' on iPhone X returns a null error HOT 1
- faceID for android HOT 5
- Attempt to invoke virtual method 'boolean android.hardware.fingerprint.FingerprintManager.isHardwareDetected()' on a null object reference HOT 1
- Face Touch Id veritification on android
- Error in Success callbackId: TouchID1143937401 : ReferenceError: value is not defined HOT 2
- passcode not showing after FACEID failed on Iphone 11
- In iOS 13 when use save method why fingerprint prompt not shows? HOT 1
- New release please?
- Face ID not working on iPhone XS HOT 2
- Licensing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-keychain-touch-id.