-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Struggling to find much documentation on correct way of catching Flutter app errors.
Here's what I have:
void main() async {
runZonedGuarded<Future<void>>(() async {
FlutterError.onError =
(details) => AppCenter.trackErrorAsync(details.exceptionAsString());
WidgetsFlutterBinding.ensureInitialized();
await AppCenter.startAsync(
appSecretAndroid: 'xx',
appSecretIOS: 'xxx',
enableCrashes: true, // Defaults to true
);
runApp(App());
},
(error, stackTrace) =>
Zone.current.handleUncaughtError(error, stackTrace));
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels