NativeScript

UXCam NativeScript SDK Installation & Quick Start

npm versionnpm version

Follow the instructions below for the integration on iOS and Android

SDK Installation

  1. To add UXCam to your project

    tns plugin add nativescript-uxcam
  2. Import the UXCam plugin code at the top of your App Component file:

    import {NSUXCam} from 'nativescript-uxcam';
  3. Then start the UXCam system from inside you component code. Your App-key is available from UXCam dashboard.

    NSUXCam.optIntoSchematicRecordings(); // Add this line to enable iOS screen recordings
    NSUXCam.startWithKey("App-Key"); // Add this line after NSUXCam.optIntoSchematicRecordings();

Here are some examples of where the SDK should start if using Angular or Vue with your Nativescript project:

NSUXCam.optIntoSchematicRecordings(),
NSUXCam.startWithKey("App-Key"),

  new Vue({
    render: (h) => h("frame", [h(Home)]),
  }).$start();
NSUXCam.optIntoSchematicRecordings(); 
NSUXCam.startWithKey("App-Key"); 

@Component({
  selector: 'ns-app',
  templateUrl: './app.component.html',
})
export class AppComponent {}

👍

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