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',