From aa91d7ce6bfa5c1b209978689b498d136c4b2ac9 Mon Sep 17 00:00:00 2001 From: Thomas SharedInbox Date: Thu, 14 May 2026 03:58:36 +0200 Subject: [PATCH] fix(U4): guard showNewMailNotification to Android-only to prevent DBus hang on Linux --- lib/core/services/notification_service.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/core/services/notification_service.dart b/lib/core/services/notification_service.dart index b4b3e11..dfcbb54 100644 --- a/lib/core/services/notification_service.dart +++ b/lib/core/services/notification_service.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:flutter_local_notifications/flutter_local_notifications.dart'; const _kChannelId = 'new_mail'; @@ -18,6 +20,7 @@ Future initNotifications() async { } Future showNewMailNotification(String accountEmail) async { + if (!Platform.isAndroid) return; await _plugin.show( accountEmail.hashCode & 0x7FFFFFFF, 'New mail',