Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does firebase_crashlytics work when using try / catch in flutter?

If use try / catch my application will not crash. But I want when the catch block to work, it also sends error information to firebase crashlytics console.

like image 815
tbm98 Avatar asked Jan 01 '23 06:01

tbm98


1 Answers

I think solution are

  • Crashlytics.instance.log for log Single message, string.
  • Crashlytics.instance.recordError for log message error with stackTrace.
  • Crashlytics.instance.recordFlutterError for log message is generated by flutter framework
like image 80
tbm98 Avatar answered May 14 '23 06:05

tbm98