Closed Ahmadre closed 3 years ago
Also note:
I setup Android correctly and this is my MainActivity:
package de.kds.app
import android.os.Bundle
import io.flutter.embedding.android.FlutterFragmentActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant
class MainActivity: FlutterFragmentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
}
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
super.configureFlutterEngine(flutterEngine)
GeneratedPluginRegistrant.registerWith(flutterEngine)
}
}
After some research the error here explains everything:
But when I use local_auth and check if device is supported and canCheckBiometrics it works and it's saying that face recognition is available :( .
Just the write method is not working....
I don't quite understand what the error code you linked to is related to this problem - the error you pasted did not mention HW_NOT_PRESENT
. It sounds like the plugin did not use an activity as context 🤔️
I'll might try this tomorrow.. after all i finally got an android phone with face unlock 😅️
It's this: I/BiometricPrompt(19463): onError: 12, 0
But that doesn't explain properly why the write is failing :/
Thanks for your help tomorrow :)
I should've used the BiometricStorage().canAuthenticate()
earlier :D
I only used the one from local_auth, but BiometricStorage().canAuthenticate()
is functioning much better!
Samsung Tab A7 is only using a "Fake"-Face recognition.
Solved :). Thank you!!!
The
_storageFile.write(...)
method works perfectly for iOS and Android (with fingerprint), but on Android devices with face recognition I am getting this, when trying to write to store:Environment: