Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TouchId without Passcode feature

Tags:

swift

ios8

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.

TouchId with Passcode option

like image 444
Giuseppe Roberto Rossi Avatar asked Mar 11 '15 21:03

Giuseppe Roberto Rossi


People also ask

Can you use Touch ID without passcode?

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.

How do I get rid of Touch ID and passcode?

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.

Why do you need passcode for Touch ID?

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.

How do you use a fingerprint instead of password?

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.


2 Answers

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..

like image 175
Legolas Avatar answered Oct 18 '22 23:10

Legolas


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

like image 4
Summer Avatar answered Oct 18 '22 22:10

Summer