Skip to main content
Requires lerix 1.3.0 or later. For what each module does and what you see in the dashboard, read Feedback, NPS surveys and Analytics.

Setup

Call Lerix.initialize() from Application.onCreate(), as in Installation. Analytics starts on its own: Activities are tracked through the application’s lifecycle callbacks, so there is nothing to add to each screen. Two optional parameters configure these modules:
MyApplication.kt
The SDK declares its own feedback Activity through manifest merging, so there’s nothing to add to your AndroidManifest.xml.

In-app feedback

The current screen is captured before the UI appears, with PixelCopy on Android 8+ so maps and video are included. The flow is message, labels, screenshots (tap one to draw on it with 4 colours, 3 pen sizes, undo and redo; Add screenshot captures another screen), email, then a review with Show details. Screens that set FLAG_SECURE are never captured. result is a LerixFeedbackResult(submitted, id, clientId). id is null while the feedback is still queued.

Options

Labels, the email mode and the screenshot mode come from the dashboard. Override them for one call:

Shake to report

Hide sensitive views

Your own UI

Language, dark mode and colours

The UI ships in English and Arabic and follows the system light or dark mode. Layouts mirror in Arabic when your app declares android:supportsRtl="true". The accent colour is your theme’s colorPrimary; override it:
Override any lerix_* string by defining a string resource with the same name in your app.

NPS survey

The SDK shows the survey only when this install is due (see When the survey is shown). In debugMode, Logcat says why a survey was skipped and when it is next due.

Analytics

  • $first_open, $session_start / $session_end, $app_update and a $screen_view per resumed Activity (its class name) are recorded automatically.
  • With Jetpack Compose or a single-Activity app, call Lerix.screen() when your destination changes.
  • A process started in the background (an FCM data message, a service) isn’t counted as an app start or a session.
  • track never throws. Invalid events and properties are dropped and logged in debugMode.
Call Lerix.setUser after sign-in. Analytics then counts the person across devices, and you can reply to their feedback by push.
The last 50 breadcrumbs are attached to feedback. Screen changes are added automatically.
Categories: navigation, log, http, ui, custom (the default).