Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): blank notifications page after enabling notifications (#29232)

Santo Shakile5b50a55a47b
diff --git a/i18n/en.json b/i18n/en.json
index 830b5f915b..1587fde604 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -1507,6 +1507,9 @@
"notes": "Notes",
"nothing_here_yet": "Nothing here yet",
"notification_backup_reliability": "Enable notifications to improve background backup reliability",
+ "notification_enabled_list_tile_content": "Immich uses notifications for background backup. Manage them in your device settings.",
+ "notification_enabled_list_tile_open_button": "Open settings",
+ "notification_enabled_list_tile_title": "Notifications enabled",
"notification_permission_dialog_content": "To enable notifications, go to Settings and select allow.",
"notification_permission_list_tile_content": "Grant permission to enable notifications.",
"notification_permission_list_tile_enable_button": "Enable Notifications",
diff --git a/mobile/lib/widgets/settings/notification_setting.dart b/mobile/lib/widgets/settings/notification_setting.dart
index cbef5ea109..8b7c652925 100644
--- a/mobile/lib/widgets/settings/notification_setting.dart
+++ b/mobile/lib/widgets/settings/notification_setting.dart
@@ -48,6 +48,14 @@ class NotificationSetting extends HookConsumerWidget {
showPermissionsDialog();
}
}),
+ )
+ else
+ SettingsButtonListTile(
+ icon: Icons.notifications_active_outlined,
+ title: 'notification_enabled_list_tile_title'.tr(),
+ subtileText: 'notification_enabled_list_tile_content'.tr(),
+ buttonText: 'notification_enabled_list_tile_open_button'.tr(),
+ onButtonTap: () => openAppSettings(),
),
];