No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to add plugins in capacitor android

    CLI
    1
    1
    250
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      donvie last edited by

      Register the plugin in com.companyname.appname.MainActivity#onCreate

      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
      
          List<Class<? extends Plugin>> additionalPlugins = new ArrayList<>();
          // Additional plugins you've installed go here
          // Ex: additionalPlugins.add(TotallyAwesomePlugin.class);
          additionalPlugins.add(SmsManagerPlugin.class);
      
          // Initializes the Bridge
          this.init(savedInstanceState, additionalPlugins);
      }
      1 Reply Last reply Reply Quote 1
      • First post
        Last post