For Crash and Error Logging – there are several tools and services in Flutter that you could use. Here are some popular options.
Firebase Crashlytics
A powerful, widely-used tool for crash and error reporting. It provides detailed information about crashes, including device and app version details. If you are using any other of the features of firebase
- Authentication
- Database/Store
- Push Notifications
- etc
It is a no-brainer to also use also the crash reporting module. But, you also need to take into account the fast changing ways of Google. For up-to-date instructions – check out their latest (for now) tutorial: https://firebase.google.com/docs/crashlytics/get-started?platform=flutter
Sentry
An open-source error tracking system with extensive features, including real-time error notifications, customizable dashboards, and more. Check out the latest tutorials here https://pub.dev/packages/sentry_flutter
Bugsnag
A popular tool for error and crash reporting, providing detailed information about errors and crashes. Here is the plugin https://pub.dev/packages/bugsnag_flutter
New Relic
A comprehensive platform for application performance monitoring (APM), including crash and error logging. https://pub.dev/packages/newrelic_mobile
Conclusion
The first two tools have broader platform support. At the time of writing this article – the second two plugins are supported only on the mobile platforms – iOS and Android.
These tools help you:
- Detect crashes and errors in your app
- Identify the cause of these issues
- Track user behavior leading up to a crash or error
- Send notifications about critical issues
If you’ve designed your app properly – the logging in your code will be located at a minimal points in your code. The place for this in the sample app I’ve shared will be – in the Executor Wrapper: https://github.com/tomavelev/image_client
When choosing an error logging tool, consider factors like:
- Ease of integration into your Flutter project
- Customizability and configuration options
- Reporting features (e.g., dashboards, alerts)
- Pricing and support (free vs. paid)
Check out some of my Flutter PoC apps here: https://programtom.com/dev/product-category/technologies/flutter-apps/. They include experiments with variety of state management solutions, dependency injections and other packages.