Show TOC

Adding the AppUpdate PluginLocate this document in the navigation structure

To install the AppUpdate plugin, use the Cordova command line interface.

Prerequisites

  • Set up the development environment.
  • Create your Cordova Project.
  • Add your OS platforms.

Context

Note

The AppUpdate plugin has dependencies on the Logon plugin, as well as some Cordova plugins. These are automatically added to your project when you add the AppUpdate plugin.

Procedure

  1. Add the AppUpdate plugin by entering the following at the command prompt, or terminal:

    cordova plugin add com.sap.mp.cordova.plugins.appupdate

  2. (Optional) Add the logger plugin if you wish to view the messages logged by the AppUpdate plugin.

    cordova plugin add com.sap.mp.cordova.plugins.logger

  3. (Optional) To see a list of installed plugins in your Cordova project, open a command prompt or terminal window, navigate to your Cordova project folder, and enter:
    cordova plugins
    The Cordova command line interface returns a JSON array showing installed plugins, for example:
    [ 'org.apache.cordova.core.camera',     
    'org.apache.cordova.core.device-motion',     
    'org.apache.cordova.core.file' ] 

    In this example, the Cordova project has the Cordova core Camera, Accelerator (device-motion), and File plugins installed.

  4. Modify the files in the Cordova project's www folder as appropriate for your project.
  5. Execute the following command to copy the files in the Cordova project's www folder to the platform directories:
    cordova prepare android
    cordova prepare ios 
  6. Use the Android IDE or Xcode to deploy and run the project.
    Note If you are using an iOS device, remember to add the "clienthubEntitlements" to the Keychain Groups in the Entitlement section in Xcode.