codenameone / FingerprintScanner

Support for fingerprint scanning/TouchID in Codename One mobile applications
https://www.codenameone.com/
4 stars 9 forks source link

Allow using a custom message for FingerPrint reason message #1

Closed diamondobama closed 7 years ago

diamondobama commented 7 years ago

Rather than the default message of "Authenticate for server login" which may not be the case sometimes, developer can now add a custom message to be shown to user when prompting for fingerprint input.

Also added the same message to the Dialog that is shown for Android and changed the FingerPrint icon color to orange.

codenameone commented 7 years ago

Shouldn't we also include a version that doesn't take a "reason" for API compatibility?

codenameone commented 7 years ago

I'm not sure that will work. I only meant to change that in the user facing code with a default string. Not in the native code which is hidden from the user. Method overloading in the native interfaces might cause an issue.

So if someone included the library and updates it he won't get a compilation error and it will work with a reasonable message.

codenameone commented 7 years ago

Great thanks!