Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expanding on CheckSupport #20

Open
briananderson1222 opened this issue Sep 21, 2016 · 1 comment
Open

Expanding on CheckSupport #20

briananderson1222 opened this issue Sep 21, 2016 · 1 comment

Comments

@briananderson1222
Copy link

Since this is the only plugin i've come across that provides some sort of LocalAuthentication wrapper curious if the checkSupport method could be somewhat expanded to check for general device authentication that could potentially cover this use case: http://stackoverflow.com/questions/21337563/programmatically-detect-whether-ios-passcode-is-enabled-or-not. In my particular use case I would like to know if any sort of security (passcode, touchid) has been implemented on the device.

@briananderson1222
Copy link
Author

@leecrossley I can add a PR for this if this functionality would be desired. Just would want to know what the syntax would look like:
touchid.checkSupport(successCallback, notSupportedCallback, anySecurity:boolean); where if anySecurity is true we check for LAPolicyDeviceOwnerAuthentication else we assume we are only looking for LAPolicyDeviceOwnerAuthenticationWithBiometrics

I know it doesn't completely fall within the title of this plugin, but could be a useful feature for anyone else hoping to leverage the LocalAuthentication framework without having to build out a whole separate plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant