martinkasa/capacitor-secure-storage-plugin

register plugin on Android

Closed this issue · 2 comments

In the documentation it states to include the plugin in the mainActivity as such:

@Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Initializes the Bridge
    this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
      // Additional plugins you've installed go here
      // Ex: add(TotallyAwesomePlugin.class);
      add(SecureStoragePlugin.class);
    }});
  }

However in the upgrade guide of capacitor 3 it states we no longer need to register plugins that way.

Is it still required to register this plugin in capacitor 3 or not?

Thanks, I missed that. I will try it and update the documentation.

Hi @martinkasa

Please update the doc. It gives an error if we'll add it like so: Running Gradle build - failed!
I can see still it is there. Thanks!