EddyVerbruggen / nativescript-fingerprint-auth

:nail_care: 👱‍♂️ Forget passwords, use a fingerprint scanner or facial recognition!
MIT License
134 stars 33 forks source link

Android Custom UI Fingerprint detection stops working after suspending and resuming application while screen is showing #62

Closed narusevic closed 4 years ago

narusevic commented 4 years ago

Hello,

Devices: Samsung S7, OnePlus 5, Samsung S8 Platform: Nativescript 6 Angular Using custom Android UI Steps to reproduce:

  1. Start fingerprint authorization Custom Android UI
  2. Minimise application.
  3. Bring up application from suspended apps list.
  4. Application still shows fingerprint Custom Android UI, but when trying to authorize fingerprint, it does nothing. E.g. on OnePlus 5 fingerprint detector is also home button, so instead of detecting finger it just brings user to home screen (minimises app).

Expected behaviour: Screen detects fingerprint.

Alternative solution (Also, I don't see a way to do this): Be able to programatically cancel custom fingerprint screen on suspend.

If you have any suggestions or workarounds it would be appreciated. We need to use custom UI for Android

EddyVerbruggen commented 4 years ago

After much trial & error I think I've found a way. Will update this soon.

narusevic commented 4 years ago

After much trial & error I think I've found a way. Will update this soon.

Great!

EddyVerbruggen commented 4 years ago

Give 7.0.2 a try. It has a close() function you can try to call when the app gets suspended.