[local_auth] [android] Non-biometrics authentication gives NotAvailable on Android 10 #147453
Labels
e: OS-version specific
Affects only some versions of the relevant operating system
p: local_auth
Plugin for local authentification
P2
Important issues not at the top of the work list
package
flutter/packages repository. See also p: labels.
platform-android
Android applications specifically
team-android
Owned by Android platform team
triaged-android
Triaged by Android platform team
What package does this bug report belong to?
local_auth
What target platforms are you seeing this bug on?
Android
Have you already upgraded your packages?
Yes
Dependency versions
pubspec.lock
Steps to reproduce
I try to use local_auth with a Zebra TC26BK phone.
At security / screen lock, there are only Swipe, Pattern, PIN and Password options on this phone.
I set my screen lock to PIN method, and tried with Pattern also.
I setup my project with FlutterFragmentActivity() and added android.permission.USE_BIOMETRIC to the manifest, according to the documentation Android Integration section.
auth.canCheckBiometrics works good, gives me FALSE.
auth.isDeviceSupported() returns TRUE, so the queries working good.
But when I try to authenticate, with
final didAuthenticate = await auth.authenticate(localizedReason: 'please log in', options: const AuthenticationOptions(biometricOnly: false));
, I getPlatformException(NotAvailable, Security credentials not available., null, null)
.The PIN screen never appears, and I cannot login with PIN to my application.
I tried with the Plugin example app, and it gives me the same result:
How can I resolve this problem?
Expected results
Have a PIN screen.
Actual results
No PIN screen appears, only
PlatformException(NotAvailable, Security credentials not available., null, null)
.Code sample
example code in your repository.
Screenshots or Videos
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: