Skip to content

Commit 17bf3ab

Browse files
authored
docs(cordova-migration): Add cordova plugin uninstall details (#2935)
1 parent cacecb4 commit 17bf3ab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

site/docs-md/cordova/migrating-from-cordova-to-capacitor.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ Some plugins may not match functionality entirely, but based on the features you
8080

8181
Note that any plugins that are [incompatible or cause build issues](/docs/cordova/known-incompatible-plugins) are automatically skipped.
8282

83+
### Remove Cordova Plugin
84+
85+
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:
86+
87+
```bash
88+
npm uninstall cordova-plugin-name
89+
npx cap sync [android | ios]
90+
```
91+
8392
## Set Permissions
8493

8594
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.

0 commit comments

Comments
 (0)