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.
- 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
- (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
to0
or specify the desired capture mode for the platform (see the interaction mode values for iOS and Android in the table below).- iOS
-
Capture Mode Value Description Capture None 0 No user interactions are captured. Button Pressed 1 Button presses are captured. Table Cell Selected 2 Table cell selections are captured. Text Field Selected 4 Text field selections are captured. Text View Selected 8 Text view selections are captured. All -1 All user interactions are captured. - Android
-
Capture Mode Value Description Capture None 0 No user interactions are captured. Button Pressed 1 Button presses are captured. Edit Text Selected 2 Selection of edited text is captured. List Item Selected 4 Selection of list item is captured. All -1 All user interactions are captured
Setting
INTERACTION_CAPTURE_MODE
only controls capturing of webview interactions. If you setINTERACTION_CAPTURE_MODE
to0
, 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. - Build the mobile app:
phonegap cordova build [android, ios]