This guide helps you integrate the DevRev SDK into your Cordova app.

Requirements

  • Cordova CLI 10.0.0 or higher.
  • Minimum deployment target Android SDK 24 or iOS 15.

Installation

To install the DevRev SDK, run the following command:

1cordova plugin add devrev/sdk-cordova

Set up the DevRev SDK

  1. Open the DevRev web app at https://app.devrev.ai and go to the Settings page.
  2. Under PLuG settings, copy the value under Your unique App ID.
  3. After obtaining the credentials, configure the DevRev SDK in your app.

The DevRev SDK must be configured before you can use any of its features.

The SDK will be ready for use once you execute the following configuration method:

1DevRev.configure(appID, successCallback, errorCallback)

Sample app

A sample app with use cases for the DevRev Cordova plugin is provided as part of our public repository. To set up and run the sample app:

1cd sample
2npm install
3cordova platform add android
4cordova platform add ios
1cordova run android

OR open platforms/android in Android Studio and run the app.

Built with