FingerprintSensor Extension

DISCLAIMER:
This extension wasn't created nor is it endorsed by App Inventor or MIT.
This extension was created by me @Ken for the users of App Inventor and it's distributions to use free of charge.

This Extension will allow you to use Fingerprint Authentication in your app.
It requires Android OS 6.0 API23 or newer to run and of course a device with a Fingerprint Sensor.

Note:
Currently this extension is not able to run in the Companion so you'll need to build a .apk to use it.

Special Thanks to the following Users for Beta Testing this for me:
@Taifun, @Peter, @TIMAI2, @Vyankatesh, @nandu_aeer, @Point, @Boban, @Kangris

I created this extension on CodeEditor, make your own extensions here:
https://editor.appybuilder.com/login.php

Screenshot_20191029-102934_Chrome

Blocks:

Screenshots:





.aia & .aix:
FingerprintSensor.aia (33.7 KB)

com.appybuilder.kennicholsandroid.FingerprintSensor.aix (13.8 KB)

36 Likes

Awesome! :+1::+1::+1::+1::+1::+1::+1:

7 Likes

Awesome! Extension Sir @Ken :star_struck:

Can you add block getUserId and getSignature :thinking: this make Graet :grin:

Please explain, why this is needed?

1 Like

This extension is great. I tested it on my cell phone (Xiaomi A1) and it works excellent.

Thanks

3 Likes

Hi Ken, I tested the aia on my Samsung A8 Mobile and it works fine. Good work!

2 Likes

Impressive! :clap: :clap: :clap:

2 Likes

Thanks Ken

Hello,

I 'd like to include this FingerprintSensor extension in my new project.

Thanks and kind regards,
Rik.

2 Likes

The .aia & .aix are in the first post.

I added the .aix to the first post.

5 Likes

aun funciona?
lo probé en samsung j7

saludos

Does your device have a fingerprint sensor?
See also this topic

Taifun

no tengo ningún aplicativo con huellas dactilares será porque mi equipo ya es antiguo es un J7
de samsung probare con otro equipo que no este dentro de la lista mencionada

¡Lo extraño es que todos los bloqueos ocurren solo en dispositivos Samsung!

galaxia j7 57%
SM-J327P 9%
Galaxia A5 7%
SM-G532F 7%
Galaxia J5 1%
Galaxy S6 Borde 1%

saludos

see this answer

it seems to be, a fix is necessary for Samsung devices

The Problem was caused by calling

fingerprintManager.hasEnrolledFingerprints()

I fixed it by adding a call to check for hardware before:

fingerprintManager.isHardwareDetected()
    && mFingerprintManager.hasEnrolledFingerprints()

Checking for fingerprints without the hardware available seems to cause this exception on some devices.

Taifun

1 Like

Moto G60s under Android 12.
all had worked fine before Android was updated to 12

I get this error message:

Runtime Error
Must have android.permission.USE_BIOMETRIC permision.: Neither user 10336 nor current process has android.permision.USE_BIOMETRIC.

Any ideas?

Thanks in advance,
David

It looks like the extension needs an update... unfortunately @Ken is busy with real life...

As workaround you can modify the manifest and add the permission nanually...

Here is a guide

Taifun

Thanks Taifun for your fast answer.

The Companion works like Frankenstein: every time i make changes it presents me with the dialog with the error, but then it resumes in the following processes.

Final program APK works fine.

Cheers, David