Flutter

Lyrelog for Flutter

A thin Dart layer over the native SDKs: Dart errors nobody caught, native crashes, screens from a navigator observer that also works with go_router, and App Attest or Key Attestation underneath.

import 'package:flutter/widgets.dart';
import 'package:lyrelog/lyrelog.dart';

void main() {
  Lyrelog.start(const LyrelogConfiguration(
    // ingest-only: it can append events, never read them
    apiKey: 'lyr_ing_...',
  ));
  runApp(const MyApp());
}

Version 1.0.0. iOS 16 and Android 7.0 (API 24); compileSdk 36 and Kotlin 2.2 on Android.

What it does on Flutter

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 errorsDart errors nobody caught, and native crashes
  • On its ownHangsHangs on iOS, ANRs on Android 11+
  • On its ownScreensWith LyrelogNavigatorObserver, by route name
  • On its ownSessionsA new one after 30 minutes away
  • On its ownEnvironment, told apartThe native SDK's rule on each platform
  • On its ownEvents wait when offlineOn disk, up to 20 MB and 7 days
  • On its ownVerified eventsApp Attest on iOS, Key Attestation on Android

Flutter, in practice

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

  • iOS builds with Swift Package Manager only: there's no CocoaPods version.
  • Obfuscated builds: upload the --split-debug-info folder with the CLI and stacks read as your code.
  • On the web and desktop every call does nothing.
  • The Flutter 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.