touch-id

Face ID evaluation process not working properly

我与影子孤独终老i 提交于 2019-11-30 21:14:34
I'm trying to get if Face ID or Touch ID succeeded in the function below func authenticate() -> Bool{ let context = LAContext() var error: NSError? guard context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) else { return false } var returnValue = false let reason = "Face ID authentication" context.evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, localizedReason: reason) { isAuthorized, error in guard isAuthorized == true else { return print(error) } returnValue = true print("success") } return returnValue } but even when it succeeds with this code it skips

iOS Touch ID for Web Development

我们两清 提交于 2019-11-30 18:48:23
问题 I am currently trying to figure out a way where I can build a responsive website, however once the website loads on an iOS Device I wanted to use the new iOS Touch ID api to allow members to login. I know it is possible to do such things using Native ofcourse and also Cordova (http://cordova.apache.org/) but I want it to work as an authentication system with nearly any web development code base. 回答1: There is a Apache Cordova plugin that gives you a simple Javascript API. Using it becomes a

See if Touch ID is enabled on iPhone 5s

ぃ、小莉子 提交于 2019-11-30 17:29:53
问题 I know the Touch ID on the iPhone 5S cannot be consumed by any other apps through the SDK, but I wanted to see if it was possible for an app to at least see if the Touch ID is enabled on the device. This can act as an additional security factor for an app to see if the Touch ID has been enabled on an iPhone 5S. I know MDM products can do this, is there a special API an app would need to use to determine this information? 回答1: The method you are looking for is LAContext 's canEvaluatePolicy

iOS 8 Touch ID error “User interaction is required.”

别等时光非礼了梦想. 提交于 2019-11-30 11:37:43
问题 I have been working on integrating Touch ID support into an app I am working on. It is however acting very inconsistent. One of the common issues I am seeing is on a fresh app launch it works as expected, but then on backgrounding the app, and bringing it to the foreground I am getting an error back from evaluatePolicy:localizedReason:reply: It does not even make a lot of sense (I never see the touchid alert) Error Domain=com.apple.LocalAuthentication Code=-1004 "User interaction is required.

touchIDLockout deprecated in iOS 11.0

帅比萌擦擦* 提交于 2019-11-30 08:12:22
When compiling my Application with Xcode 9 for IOS11 I get the following warnings: warning: 'touchIDLockout' was deprecated in iOS 11.0: use LAErrorBiometryLockout warning: 'touchIDNotEnrolled' was deprecated in iOS 11.0: use LAErrorBiometryNotEnrolled warning: 'touchIDNotAvailable' was deprecated in iOS 11.0: use LAErrorBiometryNotAvailable I'm using touchID but I'm not using touchIdLockout...cste and the touchID is working correctly. How can I remove these warnings? Edit (not by the original author): I tracked this down to a single cause. It's enough to reference LAError from the

Touch ID causing app to become non-responsive

一个人想着一个人 提交于 2019-11-30 06:51:14
I Added ios-8's new touchID API to my app. It usually works as expected, BUT when entering app while my finger is already on home-button - API's success callback is called but pop-up still appears on screen. after pressing CANCEL UI becomes non-responsive. I also encountered the same issue, and the solution was to invoke the call to the Touch ID API using a high priority queue, as well as a delay: // Touch ID must be called with a high priority queue, otherwise it might fail. // Also, a dispatch_after is required, otherwise we might receive "Pending UI mechanism already set." dispatch_queue_t

Face ID evaluation process not working properly

巧了我就是萌 提交于 2019-11-30 05:11:30
问题 I'm trying to get if Face ID or Touch ID succeeded in the function below func authenticate() -> Bool{ let context = LAContext() var error: NSError? guard context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) else { return false } var returnValue = false let reason = "Face ID authentication" context.evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, localizedReason: reason) { isAuthorized, error in guard isAuthorized == true else { return print(error) }

iOS 8 Touch ID error “User interaction is required.”

有些话、适合烂在心里 提交于 2019-11-30 02:20:54
I have been working on integrating Touch ID support into an app I am working on. It is however acting very inconsistent. One of the common issues I am seeing is on a fresh app launch it works as expected, but then on backgrounding the app, and bringing it to the foreground I am getting an error back from evaluatePolicy:localizedReason:reply: It does not even make a lot of sense (I never see the touchid alert) Error Domain=com.apple.LocalAuthentication Code=-1004 "User interaction is required." UserInfo=0x171470a00 {NSLocalizedDescription=User interaction is required.} I have tried presenting

Save data in Keychain only accessible with Touch ID in Swift 3

僤鯓⒐⒋嵵緔 提交于 2019-11-29 22:58:07
I'm working on a peace of code that should do the following: Store some data in Keychain. Get the data only if a user authenticates with Touch ID or Pass Code. I watched the Keychain and Authentication with Touch ID presentation and understood the following: If you set the right parameter while adding a new value in to Keychain, next time you'll try to get it out, the system will automatically show the Touch ID popup. I wrote some code, and my assumption doesn't work. This is what I have written: // // Secret value to store // let valueData = "The Top Secret Message V1".data(using: .utf8)!; //

Know which user logging into app depending on touchid in iOS

为君一笑 提交于 2019-11-29 16:37:24
In my app I am trying to detect which user is trying to log in using touchId. Is there any mechanism which can help me distinguish between users depending on touch Ids of users. I assume that you are only assuming 1 one user per device since touch id isn't really setup for multiple users on a single device. Since you already know which device your app is running on there would be no need to get this information from TouchID. 来源: https://stackoverflow.com/questions/34613951/know-which-user-logging-into-app-depending-on-touchid-in-ios