feat(android): isEnabled() check#351
Open
m1ga wants to merge 2 commits into
Open
Conversation
hansemannn
reviewed
Apr 10, 2026
Comment on lines
+162
to
+169
| - name: isEnabled | ||
| summary: Determines if the current state of the biometric authentication. | ||
| description: | | ||
| Will return `false` if the device has biometrics but they are disabled | ||
| platforms: [android] | ||
| since: "13.1.1" | ||
| returns: | ||
| type: Boolean |
Contributor
There was a problem hiding this comment.
This should be part of isSupported, as non-enabled and non-supported should both be handled as an error
Contributor
Author
There was a problem hiding this comment.
this way you can differentiate between: device doesn't have biometrics and "has it but disabled". So you can alert the user to enable it.
hansemannn
reviewed
Apr 10, 2026
Contributor
hansemannn
left a comment
There was a problem hiding this comment.
We should reuse the existing isSupported API, the rest looks fine. Do you know if this also addresses an issue where the missing fingerprint does not show the PIN code field as a fallback? Does Android support this in general? It popped up for our app, so I was curious if there is a way to do that.
Contributor
Author
|
I thought the system handles that automatically because all are allowed: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
isEnabled()that will show true/false if you have biometrics but they are disabledauthenticate()will call the error callback if biometrics are disabledti.identity-android-3.3.0.zip
Note:
authenticate()will currently also fail if the device has the feature disabled.isSupported()is still showing true because the devices HAS the features. TheisEnabled()will do the same checks asauthenticate()but won't show the dialog in case it is true. So you can use the check beforehand.