Capacitor Full App - Ionic Angular
  • What is Capacitor Full App - Ionic Angular?
  • Understand the Frameworks
  • Template Highlights
  • Setup
    • Initial Setup
  • Running the app
  • Building App on device
  • Deploying app as PWA
    • Deploy PWA on Firebase
  • How to use this template
    • Two way to use this Template
  • Removing a Page / Component
  • Removing a plugin
  • Extra
    • Troubleshooting
    • FAQ
  • Changelog
  • Features
    • Startup Features
      • Layouts
      • Firebase
      • Addons
        • Globalization - Translation
        • Content Loaders
        • Custom Fonts
        • Infinite Scroll
        • Pull to Refresh
        • List Re-ordering
        • Date Time Pickers
        • Settings
      • Login & Signups
      • Sidemenu Layouts
      • Wordpress
        • How to integrate
      • Video Playlist
      • Grid and List Layouts
      • Chat Lists & Chat Pages
    • Pro Features
      • Pro Addons
        • AdMob
          • Integration
          • Setting up Google Admob
        • Music Player
        • Push Notifications
        • Local Notifications
        • Device
        • Clipboard
        • Social Login
        • In-App Browser
        • Sweet Alerts
        • Social Sharing
        • Google Places
        • Google Autocomplete
        • Image Cropper
      • Phaser Game Framework
      • WooCommerce
      • Payment Gateways
    • Others
      • Adding Icon and Splash
Powered by GitBook
On this page

Was this helpful?

Removing a plugin

How to remove a plugin in Ionic Capacitor app

PreviousRemoving a Page / ComponentNextTroubleshooting

Last updated 5 years ago

Was this helpful?

Installing plugin in Capacitor is a little different from Cordova. Since Cordova considers the platform code as build time asset, it compiles the platform every time a build is made.

Capacitor works differently. It compiles the platforms once, and further changes can be simply copied into the platforms using npx cap sync

Plugins are installed as npm or yarn package in Capacitor. Hence, to remove them,

  • You will have to remove the package from package.json and also remove it from node_modules using npm uninstall <packageName>

  • In case the package has already been copied to platforms, you will have to "undo" all the steps you did when attaching those packages / plugins to the platforms. E.g. When implementing Facebook Login in Capacitor, as detailed in our , You need to make few modifications in Android project using Android Studio

There are changes done in android/app/src/main/java/**/**/MainActivity.java, android/app/src/main/AndroidManifest.xml and android/app/src/main/res/values/strings.xml . All these changes need to be undone to remove all traces of the package from the project.

Check the details in our detailed for Facebook Login Plugin. A similar process will be needed for other plugins as well.

tutorial here
tutorial here