I'm trying to implement the fingerprint authentication in my android app.
I'm using this library: https://github.com/infinum/Android-Goldfinger which uses BiometricPrompt and it works really good.
The issue is that I need to use it in an activity that shows up on the lock screen.
In particular the activity is using these flags:
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD)
window.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED)
window.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON)
When the activity is started normally (not on the lock screen), the fingerprint authentication dialog pops up and works good. Instead when the activity is showed on lock screen the fingerprint authentication dialog doesn't show up.
I've read about the FingerprintManager that uses the old (and deprecated) APIs, which I'd like not to use.
Is there a way to apply those flags also on the BiometricPrompt dialog? or it is not permitted at all to show dialogs on lock screen?