blutrixx / nativephp-biometric
NativePHP Mobile plugin: the phone's own fingerprint or face (Android BiometricPrompt), e.g. to unlock an app. Biometric.Available and Biometric.Authenticate.
Package info
github.com/joelnjoshkibona/nativephp-biometric
Language:Kotlin
Type:nativephp-plugin
pkg:composer/blutrixx/nativephp-biometric
Requires
- php: ^8.2
- nativephp/mobile: ^4.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-24 03:25:01 UTC
README
A NativePHP Mobile 4 plugin for the phone's own fingerprint (or face): Android's
BiometricPrompt, e.g. to unlock an app. Strong or weak biometrics only; the phone's screen PIN is not offered, so keep
your own PIN or password as the second way in.
Composer package: blutrixx/nativephp-biometric ยท Repo: joelnjoshkibona/nativephp-biometric
Installation
composer require blutrixx/nativephp-biometric
Then list Blutrixx\Biometric\BiometricServiceProvider in your app's NativeServiceProvider::plugins().
Use
There is no PHP API: an interface in the app's web view calls the bridge functions (POST /_native/api/call with
{ method, params }).
| Function | Params | Answer |
|---|---|---|
Biometric.Available |
{ available }: a fingerprint or face is enrolled that the app may use |
|
Biometric.Authenticate |
title, subtitle, cancel (the button's word) |
{ success: true }, { success: false, cancelled: true } or { success: false, error } |
Authenticate waits for the person (up to 60 seconds). Errors are unavailable, busy, timeout or Android's own
message; it never throws, so the caller can just fall back to its PIN.
Android: androidx.biometric:biometric:1.1.0, minimum SDK 26.