iOS Face ID/Thumbprint Keychain Access

Hi

Does anyone know if it’s possible to use Face ID or Thumbprint to retrieve saved ID details in Keychain?

Thanks very much

Chris

These two things aren’t necessarily connected. TouchID/FaceID are just a way to know that the owner of the device is right there. Accessing the keychain is up to you and your app.

Can you be more specific about what you want to do? For instance, is this for a login screen?

Thanks Greg. Yes, a login were I currently store the hashed username & password locally, but I’d like the device to save and find the details in the Keychain so the login either populates with the details or moves on to the next view…

For the moment you’ll need to use declares for this. The tricky part is that the success/fail messages for touch/Face ID don’t fire on the main thread, so you actually have to receive the info, store it in a simple data type and fire a timer so that you’re accessing the data in a way that won’t crash your app.

I’m sure that one of the iOS declare libraries has an example.

Thanks Greg. I’ll keep investigate - I don’t seem to be able to see an example in iOS Declares. Thanks for your help :slight_smile:

Are you trying to have the iPhone auto-complete a username and password that was stored from a web page?

Such as credentials from your website that would be retrieved in your app?

Thanks Jeremie. No, not from a web site. It would originate from the user tying the same username and password in the same app

Chris there’s code for Keychain access in, I think, iOSKit. I’ve been using it successfully for years (note that it does not work in the iOSSimulator). @Antonio Rinaldi has an excellent little class for biometrics — both FaceID and TouchID — on his website at https://www.falcosoftware.com/xojo

Cheers Jason. I’ll give it a try. Thanks very much.