Hi! I have a problem with the plugin Local_auth. On a Samsung's device, like my S8+, I have enabled the face recognition biometric. The problem with it is that in my flutter app the local_auth plugin with the call: localAuth.getAvailableBiometrics() keeps detecting "fingerprint" instead of "face". I have identified the problem..
In the LocalAuthPlugin.java line 103-110:
if (Build.VERSION.SDK_INT >= 29) {
if (packageManager.hasSystemFeature(PackageManager.FEATURE_FACE)) {
biometrics.add("face");
}
if (packageManager.hasSystemFeature(PackageManager.FEATURE_IRIS)) {
biometrics.add("iris");
}
}
Actually, this is not a problem because this feature is really available for the API level 29. My problem is that Samsung added the face recognition their devices running on api 28 (in my case) so the face recognition cannot be added in the available biometrics.
Do you have a way to detect for the samsung's devices?
Thanks!
Logs
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.5, on Mac OS X 10.15 19A583, locale fr-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.39.2)
[✓] Connected device (1 available)
• No issues found!
Hi! I have a problem with the plugin Local_auth. On a Samsung's device, like my S8+, I have enabled the face recognition biometric. The problem with it is that in my flutter app the local_auth plugin with the call:
localAuth.getAvailableBiometrics()keeps detecting "fingerprint" instead of "face". I have identified the problem..In the LocalAuthPlugin.java line 103-110:
Actually, this is not a problem because this feature is really available for the API level 29. My problem is that Samsung added the face recognition their devices running on api 28 (in my case) so the face recognition cannot be added in the available biometrics.
Do you have a way to detect for the samsung's devices?
Thanks!
Logs