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

@awesome-cordova-plugins/fingerprint-aio Can't parse 'requireStrongBiometrics'. Default will be used. #4881

Open
marshall86 opened this issue Nov 25, 2024 · 2 comments

Comments

@marshall86
Copy link

`
private void executeIsAvailable(JSONArray args) {
boolean requireStrongBiometrics = new Args(args).getBoolean("requireStrongBiometrics", false);
PluginError error = canAuthenticate(requireStrongBiometrics);
if (error != null) {
sendError(error);
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P){
sendSuccess("biometric");
} else {
sendSuccess("finger");
}
}

Can't parse 'requireStrongBiometrics'. Default will be used.
org.json.JSONException: Value null at 0 of type org.json.JSONObject$1 cannot be converted to JSONObject
at org.json.JSON.typeMismatch(JSON.java:101)
at org.json.JSONArray.getJSONObject(JSONArray.java:527) at de.niklasmerz.cordova.biometric.Args.getArgsObject(Args.java:45)
at de.niklasmerz.cordova.biometric.Args.getBoolean(Args.java:20)
at de.niklasmerz.cordova.biometric.Fingerprint.executeIsAvailable(Fingerprint.java:65)
at de.niklasmerz.cordova.biometric.Fingerprint.execute(Fingerprint.java:57)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:146)
at com.getcapacitor.MessageHandler.lambda$callCordovaPluginMethod$2(MessageHandler.java:155)
at com.getcapacitor.MessageHandler.$r8$lambda$NhJ0d2egplsDIA6X_OJM4sa5L1w(Unknown Source:0)
at com.getcapacitor.MessageHandler$$ExternalSyntheticLambda2.run(Unknown Source:10)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.os.HandlerThread.run(HandlerThread.java:67)`

@MarianBeuther
Copy link

+1, it's also the same issue as #4577

@MaximBelov
Copy link
Contributor

This repo contains wrappers for Cordova plugins

Your issue related to the plugin
cordova-plugin-fingerprint-aio

https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/issues

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

3 participants