I am using local_auth: ^1.1.3 and using
await _localAuthentication.authenticate(
localizedReason: S.of(Get.context!).main_pass_view_body,
// "Please authenticate to complete your transaction",
androidAuthStrings: androidMessages,
iOSAuthStrings: iosMessages,
useErrorDialogs: true,
stickyAuth: true);
but I got this error when I call authenticate method :
PlatformException(NotAvailable, Required security features not enabled, null, null)
I expect, when user did not configure finger print on mobile ,when tapped on Authenticate button ,default biometric dialog open and user could do configuration on mobile phone but I got that error. It should open default biometric dialog to transfer user to configuration part of mobile, but I got error.
I also added <uses-permission android:name="android.permission.USE_BIOMETRIC"/> in manifest.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.4, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0-rc1)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.55.1)
[✓] Connected device (2 available)
! Doctor found issues in 1 category.
and flutter sdk
environment:
sdk: ">=2.12.0 <3.0.0"