temporary removed notifications

This commit is contained in:
Marton Kiss
2025-01-03 16:03:42 +01:00
parent ac3429f30f
commit 0a02d4e831
5 changed files with 979 additions and 979 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -104,7 +104,7 @@ class Startup {
user = await database.query.getUsers(settings);
// Set all notification categories to seen to avoid having notifications that the user has already seen in the app
NotificationsHelper().setAllCategoriesSeen(user);
// NotificationsHelper().setAllCategoriesSeen(user);
late FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin;
// Notifications setup
@@ -165,11 +165,11 @@ class Startup {
);
// Initialize notifications
await flutterLocalNotificationsPlugin.initialize(
initializationSettings,
onDidReceiveNotificationResponse:
NotificationsHelper().onDidReceiveNotificationResponse,
);
// await flutterLocalNotificationsPlugin.initialize(
// initializationSettings,
// onDidReceiveNotificationResponse:
// NotificationsHelper().onDidReceiveNotificationResponse,
// );
}
// if (Platform.isAndroid || Platform.isIOS) {
@@ -239,7 +239,7 @@ Future<void> initPlatformState() async {
if (!Platform.isIOS) return;
LiveActivityHelper().backgroundJob();
} else {
NotificationsHelper().backgroundJob();
// NotificationsHelper().backgroundJob();
}
BackgroundFetch.finish(taskId);
}, (String taskId) async {
@@ -279,7 +279,7 @@ void backgroundHeadlessTask(HeadlessTask task) {
if (!Platform.isIOS) return;
LiveActivityHelper().backgroundJob();
} else {
NotificationsHelper().backgroundJob();
// NotificationsHelper().backgroundJob();
}
BackgroundFetch.finish(task.taskId);
}