[MOD-2319] Android: Touch-ID - Improve Fingerprint error handling
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Critical |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2017-03-20T19:14:39.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | TouchID |
| Labels | n/a |
| Reporter | Rainer Schleevoigt |
| Assignee | Hans Knöchel |
| Created | 2017-01-08T17:31:36.000+0000 |
| Updated | 2018-08-06T17:37:00.000+0000 |
Description
For using of i18n I propose to export the integer error numbers
Additional Samsung devices produces
helpers (hints) for handling. Like this:
"Make sure that your finger covers the entire Home key" or
"Keep your finger on the Home key a little longer" or
"Make sure that the Home key is clean and dry, then try again"
PR: https://github.com/appcelerator-modules/ti.touchid/pull/25
{noformat} TouchId.authenticate({ reason : L("FingerprintMessage"), callback : function(e) { if (e.help) { Ti.UI.createNotification({ message : L(e.code) }).show(); console.log(e.help); } if (e.error) { Ti.UI.createNotification({ message : L(e.code) }).show(); console.log(e.error); } } }); {noformat}
Resolving ticket for now. The PR was not accepted due to missing developer support. Reopening when a PR is available.
Closing as invalid. If incorrect, please reopen.