Skip to main content

simple_error_reporter 3.0.0 copy "simple_error_reporter: ^3.0.0" to clipboard
simple_error_reporter: ^3.0.0 copied to clipboard

A Flutter package for reporting errors to a backend server with rate limiting and deduplication.

3.0.0 - 2026-10-23 #

  • Bumped simple_https_service constraint to ^3.0.0. No API changes in this package. Note that simple_https_service 3.0.0 includes a breaking change: CertificatePinner now rejects certificates outside their validity period by default (pass checkValidity: false to keep the previous behavior). It also added DER support with automatic format detection (PEM / DER).

2.1.0 - 2026-10-23 #

  • Bumped simple_https_service constraint to ^2.1.0.
  • Added securityContext parameter to ErrorReporterForNative.init and ErrorReporterForNative.reportError. It is passed to HttpsServiceForNative. Use UtilSecurityContext of simple_https_service to trust a self-signed certificate while keeping normal TLS verification (recommended). If the certificate's SAN cannot be fixed (e.g. the server's IP changes), CertificatePinner can be used with badCertificateCallback.
  • Improved the doc comment of badCertificateCallback in ErrorReporterForNative with a security warning, following simple_https_service.
  • Updated README and example/main.dart: added a section on self-signed certificates, and updated the example to use the newly available securityContext.
  • Added the required appName to the ErrorReporterForNative().init example in example/main.dart.

2.0.0 - 2026-05-27 #

  • BREAKING: The appName parameter is now required in ErrorReportObj. This change allows a single backend to receive errors from multiple applications. Consequently, the appName argument is also required when initializing ErrorReporter and ErrorReporterForNative.

1.0.3 - 2026-05-15 #

  • Bumped simple_https_service constraint to ^2.0.0 to follow the upstream package's 2.0.0 release. No API changes in this package. Note that simple_https_service 2.0.0 added the EnumServerResponseStatus.cancelled value; this package's send path (response.resultStatus != EnumServerResponseStatus.success) treats a cancelled response as a send failure and invokes onSendFailure, which is the intended behavior for error reporting.

1.0.2 - 2026-05-04 #

  • Redeploy to fix pub.dev scores affected by a static analysis outage.

1.0.1 - 2026-05-03 #

  • Fixed circular import: error_reporter.dart and error_reporter_for_native.dart now import error_report_obj.dart and error_reporter_config.dart directly instead of the barrel file.
  • Added dartdoc comments to all public API members (allowReporting field, ErrorReportObj fields).

1.0.0 - 2026-05-03 #

  • Initial release as a standalone package, extracted from simple_jwt_manager.
  • ErrorReporter: Automatic and manual error reporting for web and native platforms.
  • ErrorReporterForNative: Error reporting for native platforms with self-signed certificate support.
  • ErrorReportObj: Data object representing the error payload sent to the server.
  • ErrorReporterConfig: Singleton for independent retry control without affecting the global RetryConfig in simple_https_service.
  • Rate limiting: configurable max reports per time window to prevent error loops.
  • Duplicate filtering: prevents sending the same error multiple times (up to 1000 recent errors).
  • allowReporting flag for consent-based reporting control.
  • onSendFailure callback for handling send failures.
  • Automatic error catching via FlutterError.onError and PlatformDispatcher.instance.onError.

Breaking changes from simple_jwt_manager #

  • ErrorReportObj.timestamp is now sent in UTC ISO 8601 format (e.g. "2026-05-03T03:00:00.000Z"). Previously, the local device time without timezone information was used.
0
likes
160
points
235
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package for reporting errors to a backend server with rate limiting and deduplication.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter, simple_https_service

More

Packages that depend on simple_error_reporter