Android

Lyrelog for Android apps

A Kotlin library, callable from Java, with nothing beyond the Kotlin standard library. Crashes are written to disk the moment they happen and sent on the next launch, and Key Attestation proves events came from your signed app.

class MyApp : Application() {
    override fun onCreate() {
        super.onCreate()
        // an ingest key: it can append events, never read them
        Lyrelog.start(this, Configuration("lyr_ing_..."))
    }
}

Version 1.0.0. Android 7.0 (API 24). No OkHttp, coroutines or AndroidX.

What it does on Android

Start it and these come with it. Where the platform can't tell by itself, it's a call or a few lines, all in the guide.

  • On its ownCrashes and uncaught errorsUncaught exceptions, sent on the next launch
  • On its ownHangsANRs and native crashes, from Android's records (Android 11+)
  • A call or a few linesScreensLyrelog.screen, or automaticScreens names each Activity
  • On its ownSessionsA new one after 30 minutes idle
  • On its ownEnvironment, told apartDevelopment when the app is debuggable, else production
  • On its ownEvents wait when offlineOn disk, up to 20 MB and 7 days, never in a backup
  • On its ownVerified eventsKey Attestation, no Google account or Play Integrity

Android, in practice

What the guide says to keep in mind on this platform.

  • Upload each release's R8 mapping and native libraries with the CLI: stacks read as your code.
  • flush and stop wait: never call them on the main thread.
  • Nothing runs on a timer in the background.
  • The Android guide

See it with your own app's events

Sign up with GitHub, Google or Apple. Your organization starts on Free; move it to Pro whenever you want.