Bug in Local Authentication? LAContext.BiometryType does not return FaceId

KevelopKevelop NLMember ✭✭
edited November 2017 in Xamarin.iOS

I want to give my app support for Face ID besides Touch ID, but there seems to be a bug in the Local Authentication implementation of Xamarin.iOS
I have this simple property to return a human readable string of the kind of biometrics available on the device:

public string NameOfBiometricsService
                LAContext context = new LAContext();
                switch (context.BiometryType)
                    case LABiometryType.TouchId:
                        return "Touch ID";
                    case LABiometryType.TypeFaceId:
                        return "Face ID";
                        return "Not present";

But context.BiometryType returns LaBiometryType.None when it runs on an iPhone X or on a iPhone X simulator.
Am I doing something wrong here or is this a bug?

Edit: It is not returning LABiometryType.TouchId for devices with TouchID either!

Best Answer


Sign In or Register to comment.