Cordova

UXCam Cordova SDK Installation & Quick Start

npm versionnpm version

Cordova Integration

  1. Add UXCam to your project

    cordova plugin add cordova-uxcam
  2. Call this method on onDeviceReady(). Your App-key is available from UXCam dashboard.

    UXCam.optIntoSchematicRecordings() //To enabled session video recording on iOS 
    UXCam.startWithKey("App-key from UXCam", success, failure) //returns current session url

Ionic Integration

  1. Add UXCam to your project

    ionic cordova plugin add cordova-uxcam
  2. On your file, AppComponent.ts, add the following line under imports

    declare var UXCam:any;
  3. Call this method on platform.ready(). Your App-key is available from UXCam dashboard.

    UXCam.optIntoSchematicRecordings() /* To enable session video recording on iOS */ 
    UXCam.startWithKey("App-key from UXCam")

Capacitor Integration

  1. Add UXCam to your project

    Npm install cordova-uxcam
  2. On your file, AppComponent.ts, add the following line under imports

    declare var UXCam:any;
  3. Call this method on platform.ready(). Your App-key is available from UXCam dashboard.

    UXCam.optIntoSchematicRecordings() /* To enable session video recording on iOS */ 
    UXCam.startWithKey("App-key from UXCam")

🚧

OkHttp Error

If you are getting the following message: Failed resolution of: Lokhttp3/Callback; - Please follow this steps:

  1. Go to Platforms > Android > App > build.gradle and add the following dependency:
  2. implementation("com.squareup.okhttp3:okhttp:4.9.3")

This should solve the problem and the integration should be completed.

👍

That completes the integration process.

Your session will be shown on the dashboard within a few seconds after the app goes in the background. You can optionally use the API'es for customizations such as identifying users from your database with UXCam, tagging sessions or hiding sensitive views.


What’s Next