danielsogl / awesome-cordova-plugins

Native features for mobile apps built with Cordova/PhoneGap and open web technologies. Complete with TypeScript support.
https://danielsogl.gitbook.io/awesome-cordova-plugins/
Other
2.41k stars 2.43k forks source link

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

Open marshall86 opened 6 days ago

marshall86 commented 6 days ago

` 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 commented 6 days ago

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

MaximBelov commented 1 day ago

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