Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is NSFaceIDUsageDescription - Face ID Usage Description Info.plist key?

There is a new privacy NSFaceIDUsageDescription Info.plist key in the Xcode 9 GM where a developer supplies the usage description for the permissions alert. Does anyone have a link to docs on it? The plist view in Xcode summarizes it as:

Privacy - Face ID Usage Description

like image 814
Steve Moser Avatar asked Sep 19 '17 20:09

Steve Moser


People also ask

What is Face ID and Touch ID?

To use Face ID or Touch ID, the user must set up their device so that a passcode or password is required to unlock it. When Face ID or Touch ID detects a successful match, the user's device unlocks without asking for the device passcode or password.

How does Face ID authentication work?

On the Login screen, you will have the option to Enable Face ID. If you select the option and confirm the permissions to use this feature, Face ID starts detecting your face. If your face recognition fails, an appropriate message displays.

What is biometric authentication on iPhone?

iOS. Sticky Password supports fingerprint and facial authentication on iOS devices. You can unlock your password database on iOS smartphones and tablets using Touch ID or Face ID recognition.


2 Answers

Now further explained in the above mentioned forum (by an Apple employee) https://forums.developer.apple.com/message/265156:

Face ID requires adding a usage string with the key NSFaceIDUsageDescription (aka Privacy - Face ID Usage Description) to your app's Info.plist.

In the simulator, the Face ID permissions alert will show "This app was designed to use Touch ID and may not fully support Face ID" if that key is missing. On an actual device, your app will crash the same as if any other required usage string is missing.

like image 71
MichaelR Avatar answered Sep 27 '22 21:09

MichaelR


maybe I'm later to the party but you can fix this just by adding this

<key>NSFaceIDUsageDescription</key> <string>$(PRODUCT_NAME) Authentication with TouchId or FaceID</string> 

to Project-Info.plist

like image 33
Stefan Morcodeanu Avatar answered Sep 27 '22 20:09

Stefan Morcodeanu