diff --git a/lib/features/push_notification/presentation/notification/local_notification_manager.dart b/lib/features/push_notification/presentation/notification/local_notification_manager.dart index f236e1de7..1bdedaf7f 100644 --- a/lib/features/push_notification/presentation/notification/local_notification_manager.dart +++ b/lib/features/push_notification/presentation/notification/local_notification_manager.dart @@ -88,6 +88,8 @@ class LocalNotificationManager { final granted = await _isAndroidPermissionGranted(); if (!granted) { _notificationsEnabled = await _requestPermissions(); + } else { + _notificationsEnabled = granted; } } else { _notificationsEnabled = await _requestPermissions(); @@ -131,9 +133,6 @@ class LocalNotificationManager { EmailAddress? emailAddress, String? payload }) async { - if (!_notificationsEnabled) { - return; - } final inboxStyleInformation = InboxStyleInformation( [message?.addBlockTag('p', attribute: 'style="color:#6D7885;"') ?? ''], htmlFormatLines: true,