Update Cordova Agent Configurations

To update the configurations set when you first added the Cordova plugin to your application, the suggested practice is to remove the values for configuration values and then add new configuration values.

See the following examples:

Change the App Key

To change the app key for your Ionic or PhoneGap applications:
  1. Remove the old value for the variable APP_KEY with the remove command:
    cordova plugin remove --variable APP_KEY="old-app-key" appd-plugin-eum-mobile
  2. Add new value for the variable APP_KEY with the add command.Be sure to include the variables that you set when you first added the plugin (represented by <variable_list> below). For example, if you set REACHABILITY_HOST=http://example.com when you first added the plugin, you will need to reset the variable when running the add command again.
    cordova plugin add --variable APP_KEY="new-app-key" <variable_list> appd-plugin-eum-mobile

Change the App Name

To change the name of your Ionic or PhoneGap applications:
  1. Remove the old value for the variable APP_NAME with the remove command:
    cordova plugin remove --variable APP_NAME="old-app-name" appd-plugin-eum-mobile
  2. Add new value for the variable APP_NAME with the add command. Be sure to include the variables that you set when you first added the plugin (represented by <variable_list> below). For example, if you set REACHABILITY_HOST=http://example.com/ when you first added the plugin, you will need to reset the variable when running the add command again.
    cordova plugin add --variable APP_NAME="new-app-name" <variable_list> appd-plugin-eum-mobile