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:

WkWebView Requirements

By default, the Cordova iOS platform command adds a version of cordova-ios that supports UIWebView. AppDynamics does not support UIWebView, so you must manually change this to WkWebView.
  1. Run the following command:
    CODE
    (ionic) cordova platform add ios
  2. Verify the log output returns:
    CODE
    Using WkWebView
  3. If the log output returns Using UIWebView, change it to Using WKWebView.

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:
    CODE
    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.
    CODE
    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:
    CODE
    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.
    CODE
    cordova plugin add --variable APP_NAME="new-app-name" <variable_list> appd-plugin-eum-mobile