Strictly speaking, ti.androidfingerprintalert is actually an Alloy widget, but it still counts as a good entry in our featured modules series.
Once you’ve downloaded the zip and unpacked it into the
app/widgets folder, update the
config.json to add the dependency. Then, drop it into any view:
<Widget id=“androidFingerprint” src=“ti.androidfingerprintalertdialog” />
Using something like ti.identity, you can invoke a fingerprint scan and then use the
.show() method to show the dialog. There’s some neat methods to update the alert when it’s up on the state of the fingerprint scan, so
.failure() will update the animation / dialog accordingly, and you can then use
.hide() to remove it when no longer needed.
It’s an awesome widget that works as-is with Ti.Identity or other modules like https://github.com/appcelerator-modules/ti.touchid without any modification. In fact, I added it to a project today in minutes and it worked great!
Check out the repo here.