LAContext.biometryType always return none

Originator:jsambuo
Number:rdar://34857036 Date Originated:10/6/2017
Status:Closed Resolved:Duplicate
Product:iOS + SDK Product Version:11.1 (15B5066e)
Classification:Bug Reproducible:Always
 
Area:
Local Authentication Framework

Summary:
LAContext.biometryType always return none

Steps to Reproduce:
1. Get LAContext.biometryType for a device:
```
let myContext = LAContext()
switch myContext.biometryType {
case .none: print("None")
case .typeFaceID: print("FaceID")
case .typeTouchID: print("TouchID")
}
```
(Sample project: https://github.com/jsambuo/TestBiometryType)
2. Run on a simulator or device, and check the console.

Expected Results:
I should see "FaceID" in the console for the iPhone X simulator when Face ID is enrolled, and "TouchID" in the console for the iPhone 8 simulator when Touch ID is enrolled.

Actual Results:
"None" is printed.
Video: https://youtu.be/5ls4KwMNjRU

Version/Build:
Xcode 9.1 Beta (9B37)

Configuration:
iPhone X and iPhone 8 Plus Simulator.
I also see the same results for my iPhone 7 Plus (iOS 11.0.2)

Comments

A similar question was asked on Apple Dev Forums: https://forums.developer.apple.com/thread/89043


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!