androidx.Biometrics library - setOnCancelListener for cancellation signal not working, onAuthenticationError being called randomly
Here's what I'm experiencing -
I call the biometrics function as soon as the app launches.
So, as soon as the prompt is displayed, the onAuthenticationError gets called. Don't know why, but seems useful in solving the issue.
The listener in cancellationSignal doesn't get called when I press the prompt's cancel button.
touching outside the prompt dismisses the prompt. But, not without calling the onAuthenticationError function again.
The device I am using is a Huawei nova 3 with android 9.0. I...