Natively support Face ID on iPhone X

In Xcode 9.1 beta 1 and the iPhone X simulator an alert appers saying:


This app was designed to use Touch ID and may not fully support Face ID.


I suppose that there should be some kind of Info.plist key to be added or an API to be called.


I tried calling

if (context.biometryType == LABiometryTypeFaceID) {
   NSLog(@"Supports Face ID");
}

Without success.


Bear in mind that Face ID is now working on the iPhone X simulator, however that alert still appears.

I'm interested to support Face ID nativeli and avoid displaying the alert to end users.


Any help is appreciated.

Replies

I also tried what you did. But same. I also got an alert saying “this app was designed to use touch id and may...” I guess we are missing something. or Maybe It’s not fully functional yet.

You need to add a new privacy key to your information property list (info.plist as it were):

`Privacy - Face ID Usage Description`

Thanks a lot!!

This solved the issue.

I no longer get this warning:

This app was designed to use Touch ID and may not fully support Face ID.

If you’re interested in this topic there’s a bunch of other useful info in this thread.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"