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
CallLerix.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
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 declaresandroid:supportsRtl="true".
The accent colour is your theme’s colorPrimary; override it:
lerix_* string by defining a string resource with the same name
in your app.
NPS survey
debugMode, Logcat says why a survey was skipped and when it is next due.
Analytics
$first_open,$session_start/$session_end,$app_updateand a$screen_viewper 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.
tracknever throws. Invalid events and properties are dropped and logged indebugMode.
Call
Lerix.setUser after sign-in. Analytics
then counts the person across devices, and you can reply to their feedback by
push.Breadcrumbs
The last 50 breadcrumbs are attached to feedback. Screen changes are added automatically.navigation, log, http, ui, custom (the default).