I need for my app to login using TouchId, but I don't want the user to select or fallback into Password option. In other words I'd like to hide the 'Enter Password' label in the figure below. Thanks.
No. You need to enter a passcode in order to set up Touch ID and you will be required to enter the passcode every once in awhile -- one example is that you will need to enter the passcode rather than Touch ID every time you power the phone on after it has been powered off.
Remove Touch IDTap on the first fingerprint listed. Tap Delete Fingerprint. Tap < Touch ID & Passcode to return to the previous screen. Repeat these steps for any other fingerprints listed.
This is important because a strong passcode or password forms the foundation for how a user's iPhone, iPad, Mac, or Apple Watch cryptographically protects that user's data.
Tap the Settings icon on your Android device and tap Lock screen and security. Scroll down and tap Screen lock type. Add your fingerprint — follow the instructions on your screen and go through the wizard. You'll be prompted to lift and rest your finger on the home button several times.
The answer is "Yes".You can hide the "Enter password"...
Try the following code snippet,
var LocalAuthentication = LAContext()
LocalAuthentication.localizedFallbackTitle = "" // Add this line
if LocalAuthentication.canEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, error: &errorMsg){
Add this line before checking for the policy....
LocalAuthentication.localizedFallbackTitle = ""
Hope this might help you..
As far as I know there is no way to hide the password option. Although you can use the device passcode as the fall back.
Please note that the terminology "Passcode" and "Password" refers to different thing in TouchID integration.
"Password" is used for LocalAuthentication approach for integrating TouchID and refering to the applications password as fallback method.
While "Passcode" is referring to the passcode to unlock the device and authenticate purchase in app store.To use the method, you have to store some information to the device's keychain and retrieve it via Touch ID authentication.
See more about these two approaches here
iOS 9 Edit
Based on this answer, iOS 9 provide a new option to hide the passcode option.
For iOS 9, two new policies have been added that do not fallback to passcode. These policies are kSecAccessControlTouchIDAny and kSecAccessControlTouchIDCurrentSet
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With