Questions tagged [localauthentication]

This tag should be used for questions related to the LocalAuthentication framework provided in iOS and macOS.

87 questions
3
votes
1 answer

LAContext().biometryType returns .none on iPhone X

I'm facing a problem with CoreAuthentication. I have called canEvaluatePolicy:error: as the documentation ask for but the result is always .none. fileprivate let biometricsType: SecurityBiometrics = { var error: NSError? let…
Kevin Machado
  • 4,141
  • 3
  • 29
  • 54
3
votes
2 answers

Is it possible to authenticate using only the passcode, even device has touch id capability in ios, swift

I want to authenticate only using the PassCode even device has the Touch ID Feature. I'm using .deviceOwnerAuthentication evaluate policy method. when I use this, If user has enrolled touch id --> alway ask for touch id If use hasn't enrolled…
caldera.sac
  • 4,918
  • 7
  • 37
  • 69
2
votes
0 answers

"expo-local-authentication" Authentication unsuccessful "missing_usage_description"

Here's a copy of my app.json requesting permission and providing description enter image description here and when run I face this message. enter image description here await authenticateAsync({ disableDeviceFallback: true, …
2
votes
0 answers

Unable to authenticate using Flutter local_auth plugin

I am using the Flutter local_auth plugin, biometrics works fine but Pincode/pattern doesn't provide authentication. I found if I remove my fingerprints from my mobile then Pincode and pattern authentication works but I need to input 2 times. The…
2
votes
1 answer

how to close the application on clicking cancel in local auth and also when maximum tries exceeds in flutter

I'm new in flutter. I wanted to create an application with local biometrics I have used local auth and i need to have help with close the application on the click of cancel button in local_auth, close the application when maximum tries are…
2
votes
2 answers

PlatformException(no_fragment_activity, local_auth plugin requires activity to be a FragmentActivity., null) in flutter

I am trying add Figureprint authentication using local_auth package of flutter i used same example given that package here it is. And i am getting this error I/flutter (27676): PlatformException(no_fragment_activity, local_auth plugin requires…
ReX
  • 121
  • 11
2
votes
2 answers

Unable to get error code for LAErrorAuthenticationFailed in IOS FaceID

Im trying to create an app with Face id feature. But when I try to handle the error codes, i can only catch the LAErrorUserCancel. I was unable to catch other error codes such as LAErrorAuthenticationFailed. [context…
2
votes
1 answer

LocalAuthentication issue

I have an app where the user can authenticate either with TouchID / FaceID (if Available, enrolled and enabled) or with passcode. All those options can be set in the settings of the app and are stored in UserDefaults. Once the app loads, it checks…
Dani
  • 3,427
  • 3
  • 28
  • 54
2
votes
1 answer

Touch ID Local Authentication produces Thread 12: EXC error

Currently, I have the following code in place. if localAuthenticationContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &authError) { …
Arnav GUPTA
  • 295
  • 1
  • 2
  • 17
2
votes
1 answer

ios Face Id LocalAuthentication , localizedReason not working

[laContecxt evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:@"My Reason to be displayed on face id prompt" reply:^(BOOL success, NSError *error) { if (success) { …
2
votes
0 answers

iOS - Asks Passcode/TouchID after user accept the call for Video Call?

I am working with a project requires VOIP and video call. Right now, I implemented the PushKit for initialising CallKit. I would like to ask the user for Passcode/TouchID (because after the user accepts the call, it will navigate application to…
Le Trong Triet
  • 101
  • 1
  • 10
1
vote
1 answer

How to detect Local Authentication permission state haven't triggered in Swift?

I am implementing biometric login into my iOS app in Swift, and I have use this API : var permissions = context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics,error: &failureReason) to check whether biometric is supported. It is working…
WCY
  • 23
  • 4
1
vote
0 answers

Flutter local_auth , I want to get fingerprint signature so I can encrypt it with password

Is there a way to obtain a unique fingerprint signature of the user using the local_auth package (Flutter/Dart) so that I can encrypt it along with a password and store it? (Reference: https://pub.dev/packages/local_auth/example)
kpatel23
  • 23
  • 6
1
vote
1 answer

How do I use local auth and bar code scanner in the same flutter project?

I building a flutter app that scans bar codes and also uses biometric auth in it. The problem is for package local_auth MainActivity.kt should be like import io.flutter.embedding.android.FlutterFragmentActivity; public class MainActivity extends…
1
vote
0 answers

Flutter decide between fingerprint and pattern

I have to add local authentication to the flutter app. Found great solutions local_auth which is easy to integrate. authenticated = await auth.authenticate( localizedReason: 'Let OS determine authentication method', …
Tologon
  • 83
  • 1
  • 5