DevRev SDK for Cordova
Quickstart guide
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:
npm install @devrev/sdk-cordovaSet up the DevRev SDK
- Open the DevRev web app at https://app.devrev.ai and go to the Settings page.
- Under Plug settings, copy the value under Your unique App ID.
- 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:
DevRev.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:
cd sample
npm install
cordova platform add android
cordova platform add ioscordova run androidOR open platforms/android in Android Studio and run the app.
- Open platforms/ios/Podfileand ensure it contains:
platform :ios, '15.0'- Install dependencies:
cd platforms/ios
pod install- Run the app:
cordova run iosOR open DevRevSDKSample.xcworkspace in Xcode and run the app.