'How to identify if an error crashes the app in Flutter with Sentry
I'm tracking all my app crashes with Sentry and all errors are tracked successfully, but I still haven't found a way to identify if the error reported by Sentry is a common error or is crashing the app.
have someone found a way to do it?
Solution 1:[1]
Flutter apps don't crash that easily, since the unhandled callback swallows the exception. A Flutter app may crash tho if the crash happened in the Native layer, a (C, C++) code on Android or iOS), if that happens, you will see an "Unhandled" label on Sentry issues. If you want to filter all unhandled events on Flutter, You may be interested in this issue https://github.com/getsentry/sentry-dart/issues/456
Solution 2:[2]
In the Senter you can specify the level of errors to be sent. I suggest you read this part of the document Sentery for flutter.
Please visit this url (diagnosticLevel). Sentry Basic Options
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Manoel Neto |
Solution 2 | Esmaeil Ahmadipour |