xamarin-fingerprint icon indicating copy to clipboard operation
xamarin-fingerprint copied to clipboard

BiometricPrompt instance always maintained in the stack (Recent apps) in Android.

Open ganesanvelusamy opened this issue 3 years ago • 2 comments

I have implemented this plugin with two approaches, 1. Trying to authenticate my application whenever the application starts. 2. Minimize the application and resume it after some time (10 minutes)

Steps to reproduce

  1. Start the application and BiometricPrompt will open.
  2. Now minimize the application without doing authentication and relaunch it again from the recent apps.
  3. Now again minimize the application.
  4. View the recent apps and note that multiple instances of BiometricPrompt are maintained in the recent apps now.

Expected behavior

Duplicate instances of the BiometricPrompt should be removed from recent apps. Only one BiometricPrompt must be maintained at a time.

Actual behavior

Duplicate BiometricPrompts are maintained in the recent apps whenever minimizing the application without authenticating.

Crashlog

There is a crash log

Configuration

Version of the Plugin: 2.1.3

Platform: Android 10

Device: Android Simulators and Nokia 3.2

Another question:

Is there any way to programmatically close the BiometricPrompt(from the recent apps as well) when minimizing an application?

ganesanvelusamy avatar Mar 18 '21 15:03 ganesanvelusamy

Hi @ganesanvelusamy,

I'm the friendly issue checker. Thanks for using the issue template :star2: I appreciate it very much. I'm sure, the maintainers of this repository will answer, soon.

smsissuechecker avatar Mar 18 '21 15:03 smsissuechecker

Any update on this?

ganesanvelusamy avatar Apr 16 '21 09:04 ganesanvelusamy