Repository navigation
[local_auth] "authenticate" with parameter "useErrorDialogs = true" does not open a dialog #96646
Copy link
Copy link
Closed
flutter/packages
#9981Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfound in release: 2.8Found to occur in 2.8Found to occur in 2.8found in release: 2.9Found to occur in 2.9Found to occur in 2.9has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: local_authPlugin for local authentificationPlugin for local authentificationpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
On Android devices when you try to authenticate with parameter useErrorDialogs = true and the device has hardware biometrics but it is not enrolled - the exception "not enrolled" appear but dialog for going to enroll does not.
On iOS devices it works as expected.
I make a simple project to test it: https://github.com/cyrax111/local_auth_test.
flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.0.1 21A559 darwin-x64, locale en-RU)
• Flutter version 2.8.1 at /Users/administrator/Documents/src/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (4 weeks ago), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/administrator/Library/Android/sdk
• Platform android-31, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] VS Code (version 1.63.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.32.0
[✓] Connected device (4 available)
• SM A730F (mobile) • 5200c47cb44d3569 • android-arm64 • Android 9 (API 28)
• iPhone 12 (mobile) • 084A7514-3F4F-4B7D-9ADB-75E7250DE761 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
• macOS (desktop) • macos • darwin-x64 • macOS 12.0.1 21A559 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 97.0.4692.71
• No issues found!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfound in release: 2.8Found to occur in 2.8Found to occur in 2.8found in release: 2.9Found to occur in 2.9Found to occur in 2.9has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: local_authPlugin for local authentificationPlugin for local authentificationpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Activity
[-][local_auth] "authenticate" with parameter "useErrorDialogs = true" does not open a dialog (useErrorDialogs)[/-][+][local_auth] "authenticate" with parameter "useErrorDialogs = true" does not open a dialog[/+]cyrax111 commentedon Jan 14, 2022
Tested on devices:
darshankawar commentedon Jan 14, 2022
@cyrax111
Do you get any error when the dialog doesn't open pertaining to
not enrolled? , I guess you are hitting this issue #45497cyrax111 commentedon Jan 17, 2022
@darshankawar I have got
not enrollederrorcyrax111 commentedon Jan 17, 2022
I think the issue is close to #45497 but not the same.
darshankawar commentedon Jan 18, 2022
Thanks for the update. Using the code sample provided and running it on S10 device, I do get the same behavior, ie the dialog to enroll does not open.
master, stable flutter doctor -v
15 remaining items
LueNC commentedon Sep 14, 2023
I am experiencing similar issues. If I have a pincode enabled but no biometrics it will show the dialog however if the pincode is not enabled it will not show the dialog.
chaitanya-penjri commentedon Dec 4, 2023
LulleBulle commentedon Aug 15, 2024
cuberob commentedon Aug 27, 2024
[local_auth] Adopt structured errors, and remove `useErrorDialogs` (f…
github-actions commentedon Nov 10, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[local_auth] Adopt structured errors, and remove `useErrorDialogs` (f…