---
title: "Flutter crash reporting without Firebase — bugd.one"
description: "Capture, group and get notified about Dart and Flutter errors automatically — with the bugd.one Flutter SDK, EU-hosted, no Firebase project needed."
url: https://bugd.one/guides/flutter-crash-reporting?lang=en
language: en
updated: 2026-11-22
type: guide
author: Eduard Ditler
alternate_de: https://bugd.one/guides/flutter-crash-reporting
alternate_en: https://bugd.one/guides/flutter-crash-reporting?lang=en
---
Guide · Last updated: 2026-11-22

# Flutter crash reporting without Firebase

Capture, group and get notified about Dart and Flutter errors automatically — with the bugd.one Flutter SDK, EU-hosted, no Firebase project needed.

Language: [Deutsch](https://bugd.one/guides/flutter-crash-reporting)

> **In short**
>
> - With the bugd.one Flutter SDK a single call is enough: `BugdoneCrashCapture.runWithCapture(() => runApp(...), release: '1.4.2')`.
> - It captures **Dart and Flutter errors**: `FlutterError.onError`, `PlatformDispatcher.instance.onError` and uncaught errors in the `runApp` zone — **no native crashes** (engine, plugins, NDK).
> - In debug builds capturing is off until you set `enabledInDev: true`; the SDK detects the environment (`development`/`production`) through `kDebugMode`.
> - No Firebase required, data stored in the EU (Cloudflare D1/R2 under EU jurisdiction). Free 7-day trial.

Flutter already gives you every hook you need to catch errors — `FlutterError.onError` and `PlatformDispatcher.instance.onError` — what is missing is a place where they are collected, grouped and reported. Many teams reach for Firebase Crashlytics. If you do not want a Firebase project or want to keep your data in the EU, bugd.one does the same job: errors arrive grouped in the dashboard, and a new crash type reaches your phone as a web push.

## Prerequisites

- A bugd.one account (the free trial is enough to try it) and a project. You find the **publishable key** (`bk_live_…`) under **Project → Settings**. It is safe to ship in your app.
- Flutter 3.10 or newer, targeting Android, iOS or desktop. The SDK uses `dart:io` to send events, so **Flutter Web is not supported by the SDK**; for web use the [browser crash reporter](https://bugd.one/guides/javascript-error-tracking?lang=en) or the REST approach below with `package:http`.
- The bugd.one Flutter SDK as source code (folder `bugdone`). It is not published on pub.dev. If you prefer not to add third-party code, use the section [Without the SDK: plain REST](#without-the-sdk-plain-rest).

![Project settings with API key and allowed domains](https://bugd.one/screenshots/docs-api-key.webp)
*Project → Settings: this is where you find the API key (bk_live_…) and set the allowed domains.*

## Step by step

### Step 1: Add the SDK as a local package

Put the SDK folder next to your app, for example in `packages/bugdone`, and add it as a path dependency:

```yaml
# pubspec.yaml
dependencies:
  flutter:
    sdk: flutter
  bugdone:
    path: packages/bugdone
```

Then run `flutter pub get`. The package pulls in `url_launcher`, `http` and `image_picker` — you only need those for the optional report form, not for crash capture itself.

### Step 2: Configure the SDK at startup

`Bugdone.configure` must run **before** crash capture, because sending reads the key and host from that configuration. Without configuration, captured errors are dropped.

```dart
import 'package:flutter/material.dart';
import 'package:bugdone/bugdone.dart';
import 'package:bugdone/bugdone_crash.dart';

void main() {
  Bugdone.configure(
    projectKey: 'bk_live_YOUR_PROJECT_KEY',
    // optional: environment: 'staging',  // otherwise detected via kDebugMode
  );

  BugdoneCrashCapture.runWithCapture(
    () => runApp(const MyApp()),
    release: '1.4.2',      // your app version, shown on each crash
    enabledInDev: false,   // true = also capture debug builds (as "development")
  );
}
```

`runWithCapture` installs three error sources at once: `FlutterError.onError` (framework errors, for example while building widgets), `PlatformDispatcher.instance.onError` (asynchronous errors outside the framework) and a `runZonedGuarded` zone around `runApp`. A previously set `FlutterError.onError` handler keeps being called.

### Step 3: Own main() logic? Use install() instead of runWithCapture

If you already build `main()` yourself with `runZonedGuarded` or a custom bootstrap, install only the global handlers:

```dart
Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  Bugdone.configure(projectKey: 'bk_live_YOUR_PROJECT_KEY');
  BugdoneCrashCapture.install(release: '1.4.2');
  // … your bootstrap (Firebase-free initialization, DI, …)
  runApp(const MyApp());
}
```

`install()` covers `FlutterError.onError` and `PlatformDispatcher.instance.onError`. For errors in a zone you created yourself, forward them from its `onError` with `BugdoneCrashCapture.captureException(error, stack)`.

### Step 4: Report handled errors yourself

Not every error is a crash. Errors you handle in a `catch` but still want to see are reported manually — optionally with context:

```dart
try {
  await checkout(cart);
} catch (error, stack) {
  BugdoneCrashCapture.captureException(error, stack, {'feature': 'checkout'});
  showErrorSnackbar();
}

// Without an exception, for example for unexpected states:
BugdoneCrashCapture.captureMessage('Cart empty during checkout');
```

### Step 5: Test it

Add a deliberate error, such as a button with `onPressed: () => throw StateError('Test crash')`, and run the app in release or profile mode (`flutter run --release`). In debug mode, temporarily set `enabledInDev: true`. The SDK collects errors for up to 5 seconds (or 10 events) and then sends them — shortly afterwards the crash appears in the dashboard under **Crashes**.

![Crash detail with origin (app, environment, version, device, page) and key figures](https://bugd.one/screenshots/docs-crash-origin.webp)
*Crash detail: origin at a glance, plus occurrences, affected users, first seen and release.*

### Step 6: Set up environments and notifications

Every event carries an environment. By default `kDebugMode` means `development`, profile and release builds mean `production`. For staging builds, set the value explicitly, for example with `--dart-define`:

```dart
// flutter run --release --dart-define=BUGDONE_ENV=staging
const env = String.fromEnvironment('BUGDONE_ENV');
Bugdone.configure(
  projectKey: 'bk_live_YOUR_PROJECT_KEY',
  environment: env.isEmpty ? null : env, // null = automatic
);
```

Everything except `production` appears in the dashboard with a DEV marker but triggers **no emails, webhooks or Slack/Discord/Teams messages**. You can enable web push for development events per device. While an app is not released yet, switch on **development mode** in the project — then the whole project stays quiet.

![Crash list filtered by the “Development” environment with DEV and Live + DEV markers](https://bugd.one/screenshots/docs-crash-env.webp)
*“Development” filter in the crash list: DEV = only seen in development so far, Live + DEV = seen in both.*

## What gets captured

| Field | Content |
| --- | --- |
| Message | `error.toString()`, max. 2,000 characters |
| Type | runtime type, e.g. `StateError`, `FlutterError` |
| Stack trace | first 30 lines, max. 8 KB |
| Platform | `flutter` |
| Environment | `development` or `production` (or your own value) |
| Release | the value from `release:` |
| Device | operating system and version, e.g. `Flutter android …` (max. 80 characters) |
| Context | source (`FlutterError`, `PlatformDispatcher`, `zone`), library, your own context |

bugd.one groups identical errors using a fingerprint (type, message, top stack frames). You see occurrences, first and last seen, release and environment. If a crash you marked as fixed occurs again, bugd.one reopens it as a **regression**. The SDK itself already sends identical errors only once within 60 seconds.

## Limits and notes

> **What the Flutter SDK cannot do**
>
> - **No native crashes:** crashes of the Flutter engine, of platform plugins (Kotlin/Java, Swift/Objective-C) or in native C/C++ code are not captured. For JVM crashes in the native part of your Android app there is the [Android SDK](https://bugd.one/guides/android-crash-reporting-without-crashlytics?lang=en).
> - **No offline buffer:** if the device is offline, the event is dropped. Nothing is cached on disk.
> - **No Dart symbolication:** with `--obfuscate` or `--split-debug-info` stack traces are unreadable; bugd.one does not symbolicate Dart stacks (source maps exist for JavaScript only).
> - **Affected users:** the SDK sends no user ID. The “affected users” figure only fills if you send crashes via REST with `user_id`.
> - **No Flutter Web** with the SDK (it uses `dart:io`).

Development events count toward the quota as well (Pro: 10,000 crash events per 30 days and project). For each crash fingerprint and IP, at most 10 events per hour are counted — further ones only raise the group's counter.

## Without the SDK: plain REST

You do not want third-party source code in your project? Then Flutter's own hooks and one HTTP call to `POST /api/v1/crashes` are enough. This also works in Flutter Web because it uses `package:http` instead of `dart:io`:

```dart
import 'dart:convert';
import 'dart:ui';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;

const _bugdoneKey = 'bk_live_YOUR_PROJECT_KEY';
const _release = '1.4.2';

String _cut(String s, int max) => s.length > max ? s.substring(0, max) : s;

Future<void> reportCrash(Object error, StackTrace? stack) async {
  try {
    await http.post(
      Uri.parse('https://bugd.one/api/v1/crashes'),
      headers: {'X-API-Key': _bugdoneKey, 'Content-Type': 'application/json'},
      body: jsonEncode({
        'message': _cut(error.toString(), 2000),
        'stack': _cut((stack ?? StackTrace.current).toString(), 50000),
        'type': error.runtimeType.toString(),
        'platform': 'flutter',
        'release': _release,
        'environment': kDebugMode ? 'development' : 'production',
      }),
    );
  } catch (_) {
    // offline: drop
  }
}

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  FlutterError.onError = (details) {
    reportCrash(details.exception, details.stack);
    FlutterError.presentError(details);
  };
  PlatformDispatcher.instance.onError = (error, stack) {
    reportCrash(error, stack);
    return true;
  };
  runApp(const MyApp());
}
```

Optionally send a `user_id` — best a hash of your own user ID. bugd.one additionally pseudonymizes the value with a per-project HMAC key and uses it to count affected users. Required fields are `message`, `stack` and `platform`; the full description is in the [API reference](https://bugd.one/api-reference.md) and the [OpenAPI specification](https://bugd.one/openapi.json).

## Further reading

- [Crash reporting in the documentation](https://bugd.one/docs#crash-reporting): reading a crash, environments, source maps
- [Mobile integration](https://bugd.one/docs#mobile): the report form (`/embed`) for bug reports from your users
- [bugd.one vs. Firebase Crashlytics](https://bugd.one/guides/firebase-crashlytics-alternative?lang=en): when Crashlytics is the better choice

## Frequently asked questions

**Does bugd.one also capture native crashes in Flutter apps?**
No. The Flutter SDK captures Dart and Flutter errors (FlutterError.onError, PlatformDispatcher.onError and errors in the runApp zone). Crashes of the Flutter engine, of platform plugins written in Kotlin/Swift, or of NDK code are not captured.

**Why do I not see crashes from my debug build?**
In debug builds (`kDebugMode`) capturing is off by default. Set `enabledInDev: true` in `runWithCapture` and the errors show up in the dashboard with the environment `development` — without triggering emails or webhooks.

**Do I need a Firebase project or Google services?**
No. The SDK sends errors over HTTPS straight to bugd.one. There is no dependency on Firebase or Google Play Services.

**Is the SDK available on pub.dev?**
No, the bugd.one Flutter SDK is available as source code and is added as a local package (`path:` dependency). Alternatively you can send errors without any SDK to `POST /api/v1/crashes` — an example is in this guide.

**What does it cost?**
Pro (€9.90/month) includes 10,000 crash events per 30 days and project, Team (€29.90/month) 100,000 — all prices include VAT. New accounts try Pro free for 7 days.

## Related guides

- [Set up React Native crash reporting](https://bugd.one/guides/react-native-crash-reporting?lang=en) — Capture unhandled JavaScript errors in React Native apps automatically: setup, environments via __DEV__, source maps and what is not captured.
- [Android crash reporting without Crashlytics](https://bugd.one/guides/android-crash-reporting-without-crashlytics?lang=en) — Capture Kotlin/JVM crashes in Android apps without Firebase: Bugdone.configure, enableCrashCapture, environments and limits (no NDK, no ANR).
- [bugd.one vs. Firebase Crashlytics: comparison](https://bugd.one/guides/firebase-crashlytics-alternative?lang=en) — An objective comparison of bugd.one and Firebase Crashlytics: cost, data processing, native crashes, platforms and user feedback — with sources, as of October 2026.

## Up and running in two minutes

Create an account, add a project, paste your key — all Pro features free for 7 days, no credit card required.

[Try free for 7 days](https://bugd.one/login) · [Read the docs](https://bugd.one/docs) · [All guides](https://bugd.one/guides?lang=en)

---

bugd.one — https://bugd.one/guides/flutter-crash-reporting?lang=en · Overview for AI agents: [llms.txt](https://bugd.one/llms.txt) · API: [openapi.json](https://bugd.one/openapi.json)
