PhoneGap Installation

From the root directory of your PhoneGap application, run the commands below to install the plugin. See the PhoneGap plugin documentation for more information.

  1. Replace the values in brackets with the configurations for your app and run the command to add the configured plugin.
    phonegap cordova plugin add appd-plugin-eum-mobile --variable APP_KEY="<#EUM_APP_KEY#>" --variable SCREENSHOTS_ENABLED=<true|false> --variable LOGGING_LEVEL=[0-6] --save
  2. (Optional) You can also disable or set the interaction capture mode (iOS/Android) and set the URL to test the network connectivity of Cordova iOS applications.
    The interaction capture mode is on by default, but you can disable it by setting the variable INTERACTION_CAPTURE_MODE to 0 or specify the desired capture mode for the platform (see the interaction mode values for iOS and Android in the table below).
    iOS
    Capture ModeValueDescription
    Capture None0No user interactions are captured.
    Button Pressed1Button presses are captured.
    Table Cell Selected2Table cell selections are captured.
    Text Field Selected4Text field selections are captured.
    Text View Selected8Text view selections are captured.
    All-1All user interactions are captured.
    Android
    Capture ModeValueDescription
    Capture None0 No user interactions are captured.
    Button Pressed1 Button presses are captured.
    Edit Text Selected2 Selection of edited text is captured.
    List Item Selected4Selection of list item is captured.
    All-1All user interactions are captured

    Setting INTERACTION_CAPTURE_MODE only controls capturing of webview interactions. If you set INTERACTION_CAPTURE_MODE to 0, interactions with webviews will no longer be captured. However, interactions with native UI elements, such as UI Buttons under iOS, will still be captured, as they always are captured by the underlying native agent for each platform.

  3. Build the mobile app:
    phonegap cordova build [android, ios]