Values of status from getNativeBiometricsStatus(). Read them from cordova.tsauth.BIOMETRICS_STATUS.
| Member | Value |
|---|---|
AVAILABLE | "available" |
NOT_ENROLLED | "notEnrolled" |
NOT_AVAILABLE | "notAvailable" |
PERMISSION_DENIED | "permissionDenied" |
LOCKED_OUT | "lockedOut" |
UNKNOWN | "unknown" |
type on the same result is faceID, touchID, or opticID on iOS, and biometric on Android. The plugin can also return none.
const bio = await cordova.tsauth.getNativeBiometricsStatus();
if (bio.status === cordova.tsauth.BIOMETRICS_STATUS.AVAILABLE) {
await cordova.tsauth.authenticateNativeBiometrics(username, challenge);
}