You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
webView.post(() -> webView.evaluateJavascript("alert('Error unable to load javascript to inject. Please contact mSupply Support for assistance.')", null));
37
52
}
38
53
}
39
54
40
55
StringgeneratePluginScript() {
41
56
// TODO make sure this is only injected for pages in native bundle
42
57
// There is no way to get the full list of plugins from bridge, use 'debug' and
43
58
// see what plugins to add
44
-
List<PluginHandle> pluginList = Arrays.asList(
45
-
bridge.getPlugin("NativeApi"),
46
-
bridge.getPlugin("Keyboard"),
47
-
bridge.getPlugin("WebView"),
48
-
bridge.getPlugin("BarcodeScanner"),
49
-
bridge.getPlugin("Preferences"),
50
-
bridge.getPlugin("KeepAwake"),
51
-
bridge.getPlugin("App"),
52
-
bridge.getPlugin("Printer")
53
-
);
59
+
60
+
// This function needs to run after plugins are registered, so can't be part of the constructor as order doesn't appear to be consistent.
0 commit comments