mjwheatley / cordova-plugin-android-fingerprint-auth

A cordova plugin for fingerprint authentication using the hardware fingerprint scanner on devices running Android 6+
Apache License 2.0
168 stars 131 forks source link

unexpected behaviour by clicking back button on backup mode #41

Closed kas84 closed 7 years ago

kas84 commented 7 years ago

Hi, I was expecting that clicking on back button on this screen would take me back to the fingerprint scanner back again, instead it results cancelled the same way if I pressed "cancel". Is this okay? Shouldn't it go back to the previous screen so it doesn't break the back button behaviour?

screenshot_20161226-162355

(I was expecting to go back to this screen) screenshot_20161226-162533

mjwheatley commented 7 years ago

I'm not sure it should. The previous screen in this case was the calling Activity (the Cordova Webview, your app). This plugin presents a Dialog Fragment on top of the calling Activity. Whenever you make a selection from a dialog, the dialog is typically dismissed. In this case, the user chose to open the backup credentials Activity and the dialog was dismissed. So the only thing to go back to is your application. This is the expected behavior.