Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access FaceID for new iPhone X?

Tags:

ios

iphone-x

iPhone X is coming out with introduced FaceID to unlock phone and make Apple Pay.

Can we access the API?

I know last time we have to wait until TouchID release to developer.

Is there any dateline when perhaps?

like image 230
HelmiB Avatar asked Sep 15 '17 04:09

HelmiB


People also ask

How do I unlock the Face ID on my iPhone X?

To turn this feature on or off, go to Settings, then tap Face ID & Passcode, then tap iPhone Unlock or iPad Unlock.

Why is my Face ID not available iPhone X?

When your iPhone's Face ID feature isn't working, resetting all your device settings might help. Go to Settings > General > Transfer or Reset iPhone > Reset > Reset All Settings. Once the process completes, set up Face ID again, and it should work perfectly now.

Why can't I set up Face ID on my new iPhone?

Your iPhone Face ID may not be working for several reasons, including: Your iPhone model doesn't support Face ID (the technology only works with iPhone X and later models). You need an iOS® update. Something is blocking the camera or your face.


2 Answers

It's actually already available in Xcode 9 in the same place TouchID functionality is found. Look at LocalAuthentication -> LAContext -> LABiometryType for example.

If you look at the documentation at a higher level, LAContext, the new API's can be currently found with a "Beta" label on them (presumably these will be removed as soon as Xcode 9 & iOS 11 are officially released).

like image 90
Michael Dautermann Avatar answered Sep 28 '22 07:09

Michael Dautermann


There are a comment and an answer here that each tell only part of the story, so let’s bring them together:


As noted by @Paulw11 in comments, the APIs for authenticating with Touch ID — LAContext canEvaluatePolicy to check for availability, evaluatePolicy to actually request authentication — work just the same for Face ID. You might notice that all of those APIs never actually mention Touch ID, just “biometrics” in the abstract... it’s almost as if Apple was thinking ahead when they released that API back in iOS 8.

Apple’s Craig Federighi confirmed this in a recent appearance on The Talk Show podcast. He says that he and other Apple employees carrying iPhone X have been running existing apps — bank apps, airline apps, etc — that use these APIs, and they “just work” with Face ID. The same API call just automatically invokes the new UI, except it’s usually faster because the user is probably already looking at the phone so they don’t have to do anything.


Now, as @MichaelDautermann’s answer notes, there are also new APIs for distinguishing Touch ID from Face ID: LAContext biometryType tells you which kind of biometrics the current device supports.

If the same APIs work for invoking both Touch ID and Face ID, why also the new thing? It’s so your app can talk about it in your UI. Think about all the bank and credit card and password manager and whatnot apps you’ve ever used — you log in to that app with a password, then afterward it asks you if you want to use Touch ID instead of your password next time. All of that is custom UI from those apps’ developers, so they’ll need to use this new API so their UI can correctly say “use Touch ID” or “use Face ID” depending on the current device.

like image 40
rickster Avatar answered Sep 28 '22 07:09

rickster