Questions tagged [lacontext]

LAContext allows to request authentication from users through passphrases or biometrics. It is part of Apple's Local Authentication framework.

LAContext allows to request authentication from users through passphrases or biometrics. It is part of Apple's Local Authentication framework.

24 questions
1
vote
1 answer

Add "Double-Click to Continue" option with FaceID

In my app I use the Apple's FaceID to confirm some actions. I want to insert an additional step before the FaceID request is presented. This because the FaceID appears immediately and the user doesn't have the time to read what he's going to…
Taglia
  • 107
  • 1
  • 10
1
vote
0 answers

Authentication from app before LAContext

I working on app in which I want to integrate Local Authentication from app, I used LAContext and working fine successfully. As we know passcode was with iPhone from beginning and LAContext Introduced from iOS8. I want to know how can we use…
Aleem
  • 3,173
  • 5
  • 33
  • 71
1
vote
1 answer

Is Touch ID "Try Again" alert view's title customizable?

I've seen that the first time the Touch ID dialog is displayed, the name of the app is shown by default, and that the subtitle can be set as localizedReason. What about setting a completely custom String as title? Is it possible to change the "Try…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
1
vote
1 answer

iOS hide Touch ID after view controller disappears

I show Touch ID in my Passcode View Controller (it's presented as modal view controller) by context.evaluatePolicy(LAPolicy.deviceOwnerAuthenticationWithBiometrics, localizedReason: message But sometimes I need to dismiss Passcode View Controller…
Paul T.
  • 4,938
  • 7
  • 45
  • 93
1
vote
0 answers

crash at 'canEvaluatePolicy' in osx 10.12.1

I use the following code to authenticate user in my application let mycontext = LAContext() let authenticatonString = "" var authError :NSError? = nil if #available(OSX 10.12, *) { if…
Bhargavi
  • 515
  • 4
  • 14
0
votes
1 answer

Under what conditions does LAContext.biometryType return .none?

I try this function to get device's available biometry type. The first time I enter the screen I call this function and get nil. Then I redirect to another page and come back. The this function can get the value. func checkOptionBio() ->…
0
votes
0 answers

Test auth failure with FaceID and TouchID on Simulator

I want to test faceId/touchId mechanism in my app. I have following: func auth(){ let context = LAContext() var error: NSError? if context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) { var reason:…
Evgeniy Kleban
  • 6,794
  • 13
  • 54
  • 107
0
votes
1 answer

Touch-id finger code for users migrating from iOS8

In iOS9 the context.evaluatedPolicyDomainState functionality has been introduced. This gives a 'value' for the registered fingers. In iOS8 this functionality was not available. What happens for users who have registered their fingers in iOS8, and…
Vincent
  • 4,342
  • 1
  • 38
  • 37
-2
votes
1 answer

Is possible use only TouchID?

I'm adding biometric to my application but I want only use Touch ID, I want's use Face IS. Is it possible? Or using canEvaluatePolicy I have to use compulsory both? I'm using this code, but I can't see one way to do…
user3745888
  • 6,143
  • 15
  • 48
  • 97
1
2