Skip to content

Commit 2f16003

Browse files
committed
Remove biometric auth trigger on app launch
The handleLaunchActions method no longer triggers biometric authentication on app launch. This simplifies the launch process and removes plugin-specific logic from the Playground class.
1 parent 417c1de commit 2f16003

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

app/src/main/java/mgks/os/swv/Playground.java

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,7 @@ private void configurePlugins() {
8888
/**
8989
* Handles actions that should run once on app launch.
9090
*/
91-
private void handleLaunchActions() {
92-
// Trigger Biometric Auth on Launch if configured
93-
runPluginAction("BiometricPlugin", plugin -> {
94-
Map<String, Object> config = SmartWebView.getPluginManager().getPluginConfig("BiometricPlugin");
95-
if (config != null && (boolean) config.getOrDefault("authOnAppLaunch", false)) {
96-
// We need to cast to the specific plugin type to call its methods.
97-
// This is safe because runPluginAction already confirmed the plugin exists.
98-
// We need to find a way to do this without a direct import.
99-
// The best way is to have a generic "execute" method on the plugin interface.
100-
// For now, let's just trigger it via JS as a workaround.
101-
Log.d(TAG, "Triggering Biometric Auth on launch.");
102-
new Handler(Looper.getMainLooper()).postDelayed(() ->
103-
webView.evaluateJavascript("if(window.Biometric) { window.Biometric.authenticate(); }", null), 500);
104-
}
105-
});
106-
}
91+
private void handleLaunchActions() {}
10792

10893

10994
private void runAllDiagnostics() {

0 commit comments

Comments
 (0)