diff --git a/android/capacitor/src/main/java/com/getcapacitor/BridgeFragment.java b/android/capacitor/src/main/java/com/getcapacitor/BridgeFragment.java index f421059e10..02b1936b89 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/BridgeFragment.java +++ b/android/capacitor/src/main/java/com/getcapacitor/BridgeFragment.java @@ -76,6 +76,10 @@ protected void init(Bundle savedInstanceState) { loadConfig(this.getActivity().getApplicationContext(), this.getActivity()); } + public void addPlugin(Class plugin) { + this.initialPlugins.add(plugin); + } + /** * Load the WebView and create the Bridge */