My App crash in just release mode ( never in debug mode ) .and I can't know the reason of that , I'm trying to add firebase crashlytics but after the app crashing there is no crash session on firebase console , so can any one help me ?
Future<void> main() async { runZonedGuarded<Future<void>>(() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(); // The following lines are the same as previously explained in "Handling uncaught errors" // FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterError; FlutterError.onError = (FlutterErrorDetails details) async { await FirebaseCrashlytics.instance.recordFlutterError(details); exit(0); }; runApp(MyApp()); }, (error, stack) => FirebaseCrashlytics.instance.recordError(error, stack));}