This tag should be used for questions related to the LocalAuthentication framework provided in iOS and macOS.
Questions tagged [localauthentication]
87 questions
0
votes
1 answer
The condition for choosing the type of authentication does not work
I can’t get a value about supporting any type of authentication using this code:
import SwiftUI
import LocalAuthentication
struct SecurityOption: View {
let context = LAContext()
var body: some View {
Form {
if…

Дмитрий Лисин
- 162
- 3
- 13
0
votes
0 answers
On changing device's time and date to an older time, the local authentication gives a system cancel error
I'm using local authentication in my app but I've observed this strange behavior in my app when I change the device's time and date in the settings app and return to my app and press this button, the LAContext() gives me an error
Misbehaving…

Omair Ahmed
- 119
- 1
- 10
0
votes
1 answer
iOS CocoaTouch - LocalAuthentication Framework : What Significance and Use of _ErrorType defined Code Enum In LAError
I was trying to understand the usage and significance of the typealias marked for code enum declared in the LAError class for the LocalAuthentication framework provided for iOS SDK. I have marked the same in the screenshot attached.
What is the…

rajkr
- 51
- 1
- 4
0
votes
1 answer
How to handle error cases in Biometric authentication for iOS in Xamarin?
if (context.CanEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, out AuthError)){
var replyHandler = new LAContextReplyHandler((success, error) => {
this.InvokeOnMainThread(()=> {
if(success)
{
…

subin272
- 733
- 6
- 24
0
votes
1 answer
App Protection Workflow using Face ID / Touch ID
I have successfully added Biometrics to my app, so that users can use Touch ID / Face ID to unlock and use the app.
Right now, I want to implement immediate lock once user leaves the application (applicationWillResignActive), and thus requires…

Harry Ng
- 1,070
- 8
- 20
0
votes
1 answer
Is LAContext evaluateAccessControl not supported in the simulator?
When I try calling evaluateAccessControl on an LAContext in the iOS simulator I get an LAError with the localizedDescription: "This call is not supported in Simulator" (code -1000).
Is evaulateAccessControl simply not supported in the simulator?
For…

mluisbrown
- 14,448
- 7
- 58
- 86
0
votes
0 answers
Why doesn't the LocalAuthentication offer both touchID and passcode?
I want it so when I call this:
context.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: reason) { (success, error) in
the UIAlertController that pops up offers an option to the user to select either TouchID or Passcode, and in the…

Jay
- 2,591
- 1
- 16
- 28
0
votes
1 answer
UITextField Password Autofill Confirmation
I've been playing around with UITextField's password autofill feature for logging into my backend, and as of yet I've been unable to find a way to actually confirm or validate that the user has authenticated via TouchID to access their passwords.…

David Strauss
- 13
- 3
0
votes
1 answer
How to customise the .deviceOwnerAuthentication view controller?
My latest app update was rejected due to the passcode view controller being too similar to that used by Apple.
But, I use the system provided view for the passcode. I don't know how to customise it. How do I do this?
Here is some code I use to…

Khoury
- 411
- 1
- 4
- 21
-1
votes
1 answer
Restrict user for specific type of Biometric Authentication?
Hy,
I want to develop an app in which users are first restricted for fingerprint authentication and after fingerprint authentication, users will be restricted to face id authentication.
But when I use Local_auth.authenticate it gives the option to…

Saad Mehmood
- 26
- 5
-1
votes
3 answers
From where to call Touch ID logic?
I am a newbie to iOS. I am trying a local authentication framework in the app. My app flow is like when a user opens App he can able to see the splash screen, then if he is a new user he will redirect to the login screen and then to the dashboard…

sagarchavan
- 187
- 3
- 14
-1
votes
1 answer
How to activate login only when app is quit?
I have a login system in my app. The code is like this:
func showLoginView() {
if !isAuthenticated {
performSegue(withIdentifier: "loginView", sender: self)
}
}
@objc func appWillResignActive(_ notification : Notification) {
…

Arnav GUPTA
- 295
- 1
- 2
- 17