How to update a cordova plugin?

Hi
when I add a Cordova plugin to Ionic I use this code

ionic cordova plugin add cordova-plugin-inappbrowser
npm install @ionic-native/in-app-browser

To update the same plugin do I have to run these commands?

npm uninstall @ionic-native/in-app-browser
ionic cordova plugin rm cordova-plugin-inappbrowser
ionic cordova plugin add cordova-plugin-inappbrowser
npm install @ionic-native/in-app-browser

Or there is a simpler way?
When i update a plugin i have to update also the ionic-native wrapper?

Thank you very much

claudio

Nope, this is the correct way to update a plugin.

1 Like