Quickstart guide
Requirements
- Cordova 12.0 or later.
- Android: minimum API level 24.
- iOS: minimum deployment target 15.0.
- (Recommended) An SSH key configured locally and registered with GitHub.
Installation
To install the DevRev SDK, run the following command:
Set 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:
Sample app
A sample app with use cases for the DevRev SDK for Cordova has been provided as a part of our public repository. To set up and run the sample app, follow these steps:
Firebase configuration
To enable push notifications in the sample app, you need to set up your Firebase project and replace the provided dummy configuration files for both Android and iOS.
Push notifications
Android
iOS
- Go to the Firebase Console.
- Create a new project or select an existing one.
- Add an Android app (if not already added). Ensure the Package Name matches your Cordova app ID.
- Go to Project Settings and download the
google-services.json
file. - Replace the
samples/google-services.json
file with the downloaded file.
The provided configuration files contain dummy placeholder values and must be replaced with your actual Firebase project configuration files to ensure proper push notifications functionality.
Android
iOS
OR open platforms/android
in Android Studio and run the app.