From the course: Biometric Authentication for iOS in Swift

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Device owner authentication

Device owner authentication

From the course: Biometric Authentication for iOS in Swift

Start my 1-month free trial

Device owner authentication

- [Instructor] So now that we know the difference with these two policies, let's try deviceOwnerAuthentication and delete the WithBiometrics. So in this case, we should get the option for fallback to use the passcode. So I'll run it in the simulator. So far it looks the same. We'll go to the Hardware menu. And we're going to fail the Face ID the first time. And we get the Try Again and the Cancel. If we try again and fail, we get the Fallback. The Cancel will still throw us the errors it did before. We'll fallback today. It gives us the option to Enter the passcode. Now on the simulator, we can just type in anything. Hit Return and it comes in to our callback. And it was successful and everything is fine. So now we're allowing the user to authenticate themselves with the passcode or with biometrics. But let's try a phone that only supports Touch ID. So I'll come up here and run it on the iPhone 6. And it goes straight to the passcode. Now why is that? Well on the iPhone 6, we haven't…

Contents