Skip to content

Commit

Permalink
Adds missing error message case
Browse files Browse the repository at this point in the history
This PR adds the error message case BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED for canAuthenticate result handling.

https://developer.android.com/reference/android/hardware/biometrics/BiometricManager#canAuthenticate()
  • Loading branch information
SandroDahl authored Nov 17, 2022
1 parent 06989ea commit 92247ed
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public void isSensorAvailable(final ReadableMap params, final Promise promise) {
case BiometricManager.BIOMETRIC_ERROR_NONE_ENROLLED:
resultMap.putString("error", "BIOMETRIC_ERROR_NONE_ENROLLED");
break;
case BiometricManager.BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED:
resultMap.putString("error", "BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED");
break;
}

promise.resolve(resultMap);
Expand Down

0 comments on commit 92247ed

Please sign in to comment.