Search categories, packages and repositories

Package detailsv5.0.0

flutter_bugfender

Flutter plugin to enable Bugfender reporting (iOS, Android and web support).

AndroidiOSWeb
30-day downloads
2.1K
Likes
26
Pub points
140

Install package

flutter pub add flutter_bugfender

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Flutter Bugfender is a cross-platform plugin that integrates Bugfender's crash reporting and logging capabilities into Flutter applications for Android, iOS, and web. It enables developers to capture and send logs, errors, and device information in real time, aiding in debugging and performance monitoring. The plugin simplifies integration with minimal setup and supports both development and production environments. With centralized log management, it helps teams quickly identify and resolve issues across multiple platforms.

Use cases

  • Real-time crash reporting
  • Cross-platform debugging
  • Performance issue tracking
  • User session analysis
  • Error logging in production
  • Remote log access

Key features

  • Supports Android, iOS, and Web
  • Real-time log transmission
  • Device and environment context
  • Minimal configuration
  • Centralized dashboard access
  • Session replay capability

Suitable for

  • Mobile app developers
  • QA and testing teams
  • DevOps engineers
  • Product managers tracking bugs
  • Teams using Bugfender for analytics

Considerations

  • Requires Bugfender account and API key
  • Limited to Bugfender's backend ecosystem
  • Web support may have feature limitations
  • Additional network usage for log transmission
  • Not suitable for sensitive data without encryption

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_bugfender

A Bugfender Wrapper plugin (implementing native code) for Flutter Projects.

Note: This plugin was provided by the community, hence it is published "AS IS", our support might not always be able to help you.

Using the package

Edit pubspec.yaml and add add flutter_bugfender to dependencies:

dependencies:
  flutter:
    sdk: flutter
  flutter_bugfender: ^5.0.0

Then run flutter pub get (or ‘Packages Get’ in IntelliJ) to download the package.

Edit lib/main.dart and add an import:

import 'package:flutter_bugfender/flutter_bugfender.dart';

And wrap your runApp statement like this:

void main() {
  FlutterBugfender.handleUncaughtErrors(() async {
    await FlutterBugfender.init("YOUR_APP_KEY",
        enableCrashReporting: true, // these are optional, but recommended
        enableUIEventLogging: true,
        enableAndroidLogcatLogging: true);
    FlutterBugfender.log("hello world!");

    // Optional: capture network requests (disabled by default)
    await FlutterBugfender.setNetworkLoggingEnabled(true);
    await FlutterBugfender.setNetworkLoggingRequestObfuscationHandler(
      (url, headers, body) {
        final safeHeaders = Map<String, String>.from(headers);
        if (safeHeaders.containsKey('Authorization')) {
          safeHeaders['Authorization'] = '***';
        }
        return NetworkRequestData(url: url, headers: safeHeaders, body: body);
      },
    );

    runApp(new MyApp());
  });
}

Network logging notes:

  • Web: intercepts fetch and XMLHttpRequest.
  • iOS: captures URLSession traffic.
  • Android: enable via the API above; OkHttp/Ktor apps also need the Bugfender interceptor/plugin (android-okhttp / android-ktor). See the Android docs.
  • Use setNetworkLoggingRequestObfuscationHandler / setNetworkLoggingResponseObfuscationHandler to redact sensitive headers or bodies before they are logged.

Documentation

For information on how to use our SDK, you can check the documentation to configure your project.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.