Managing Cordova plug-ins

With MobileFirst Platform Command Line Interface (CLI), you can use any plug-in in the Cordova Plugin Registry. Third-party plug-ins are not supported by IBM®, therefore you use them at your own risk.

Procedure

  1. Change directories into your Cordova app. Run cd YourCordovaApp.
  2. Add a plug-in to your app. Run mfp cordova plugin add. For more information, see cordova plugin add.
  3. To update the assets for your plug-ins, run mfp cordova plugin update. For more information, see cordova plugin update.
  4. For Android platform only: If you require the Cordova camera plug-in, you must complete the steps in Preparing a project that uses the Cordova camera plug-in with the Android platform.

Results

Plug-ins are added and updated to your Cordova project.

What to do next

You can also list, remove, and search for plug-ins. For more information, see cordova plugin list, cordova plugin remove, and cordova plugin search.