I am working on an app which would require Touch ID Authentication, so is there any way i can use Touch ID (fingerprint scanner) in the simulator ?
Also, please do share some kind of example code for using LocalAuthentication framework.
I am working on an app which would require Touch ID Authentication, so is there any way i can use Touch ID (fingerprint scanner) in the simulator ?
Also, please do share some kind of example code for using LocalAuthentication framework.
As of Xcode 7 the Simulator supports 'touchID'. Answer below contains further info.
As of the latest beta (6) there is no way to simulate a fingerprint scan on the simulator. To be honest I doubt this will be included even in later betas.
You will need to test on device.
To use the Authentication framework right now you need: * XCode 6 * iPhone 5s with iOS 8
The steps you need to perform are:
Find out whether the device supports fingerprint validation and whether a fingerprint is enrolled:
Validate a fingerprint only:
Validate a fingerprint or the device’s passcode depending on the user’s choice: This is a little beyond the scope of a question here, please find more information at: https://www.secsign.com/fingerprint-validation-as-an-alternative-to-passcodes/
In Objective c
In Swift
XCODE 7 beta supports testing the Touch ID Authentication in iPhone Simulator.You can try this for your testing.