Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results



cordova plugin add cordova-plugin-webengage --fetch

For iOS platform, perform the below steps:

  1. Download the SDK file here. Extract the downloaded zip file. In the extracted zip there would be two directories - xc7 and xc8. If you are using XCode 7 use the Webengage.framework within the xc7 directory. For Xcode 8 and above use the one in xc8. Save the appropriate Webengage.framework it in a location on your computer.

  2. Select the name of the project in the project navigator. The project editor appears in the editor area of the Xcode workspace window.

  3. Click on the General Tab at the top of project editor.

  4. In the section Embedded Libraries click on + button. It will open up the file chooser for your project. Open WebEngage.framework and select Copy if needed option. This will copy the framework to your project directory.

  5. Below Embedded Libraries, there is Linked Frameworks and Libraries click the + button and add the following frameworks:

  1. Go to 'Build Settings' tab on the top of the project editor. Search for Other Linker Flags option.
    Add -lsqlite3 and -ObjC under it.
  1. Enable Push Notifications
    If you are on XCode 8, you need to add Push Notification as a capability. Select the project in the navigator > Go to Capabilities > Enable Push Notifications. Refer to the screenshot below:


To install WebEngage for your Cordova App, you'll need to take three basic steps.

  1. Add global configuration to the plugin's we_config.xml file.

  2. Add platform specific configuration to we_config.xml file

  3. Initialise the plugin.

Add Global Configuration

Open we_config.xml file within the plugins\cordova-plugin-com-webengage directory inside your app's root directory. All global configuration goes under the config tag.

  1. licenseCode: Obtain your license code from the header title of the Account Setup section of your WebEngage dashboard and paste it within the licenseCode tag.
  1. debug (optional) : Debug logs from SDK's are printed if the value of this tag is true. Default value of this tag is false.

Platform specific Configuration


All android specific configuration goes under the android tag under the global config tag.

packageName: Insert your complete android application package name with packageName tag.



In iOS there is no mandatory configuration required for the app. For advanced configuration, check the Other Configurations section.

Initialise the plugin

In your onDeviceReady callback call:

onDeviceReady: function() {

Additional WebEngage options and callbacks to be 
registered here before calling webEngage.engage()