forked from eatvio/eatvio_app
feat: Implement glossary moderation, notifications, product modals, social authentication, and internationalization.
This commit is contained in:
@@ -47,9 +47,7 @@ class AppInitializer {
|
||||
);
|
||||
if (sl<AppConfig>().buildType == AppBuildType.prod) {
|
||||
try {
|
||||
await FirebaseMessaging.instance.requestPermission().timeout(
|
||||
const Duration(seconds: 5),
|
||||
);
|
||||
await FirebaseMessaging.instance.requestPermission().timeout(const Duration(seconds: 5));
|
||||
} catch (e) {
|
||||
// Разрешение не критично, продолжаем работу
|
||||
log('Failed to request Firebase messaging permission: $e');
|
||||
@@ -82,6 +80,10 @@ class AppInitializer {
|
||||
options.tracesSampleRate = 1.0;
|
||||
options.debug = false;
|
||||
}, appRunner: appRunner);
|
||||
FlutterError.onError = (details) async {
|
||||
if (kDebugMode) return;
|
||||
await Sentry.captureException(details.exception, stackTrace: details.stack);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user