From 17bf3abfe121676e59ea154ec966f19232253081 Mon Sep 17 00:00:00 2001 From: Matt Netkow Date: Mon, 18 May 2020 07:16:35 -0500 Subject: [PATCH] docs(cordova-migration): Add cordova plugin uninstall details (#2935) --- .../cordova/migrating-from-cordova-to-capacitor.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/site/docs-md/cordova/migrating-from-cordova-to-capacitor.md b/site/docs-md/cordova/migrating-from-cordova-to-capacitor.md index 2551899c4..2634eb14e 100644 --- a/site/docs-md/cordova/migrating-from-cordova-to-capacitor.md +++ b/site/docs-md/cordova/migrating-from-cordova-to-capacitor.md @@ -80,6 +80,15 @@ Some plugins may not match functionality entirely, but based on the features you Note that any plugins that are [incompatible or cause build issues](/docs/cordova/known-incompatible-plugins) are automatically skipped. +### Remove Cordova Plugin + +After replacing a Cordova plugin with a Capacitor one (or simply removing it entirely), uninstall the plugin then run the `sync` command to remove the plugin code from a native project: + +```bash +npm uninstall cordova-plugin-name +npx cap sync [android | ios] +``` + ## Set Permissions By default, the entire initial permissions requested for the latest version of Capacitor are set for you in the default native projects for both iOS and Android. However, you may need to apply additional permissions manually by mapping between `plugin.xml` and required settings on iOS and Android. Consult the [iOS](/docs/ios/configuration) and [Android](/docs/android/configuration) configuration guides for info on how to configure each platform.