Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7193

Flutter app crash without error ( Android - Ios ) just in release mode

$
0
0

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));}

Viewing all articles
Browse latest Browse all 7193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>