diff --git a/lib/backend/notifications/notification_service.dart b/lib/backend/notifications/notification_service.dart index f99e8f99..617dc2f0 100644 --- a/lib/backend/notifications/notification_service.dart +++ b/lib/backend/notifications/notification_service.dart @@ -53,21 +53,11 @@ class NotificationService { static Future onActionReceivedMethod( ReceivedAction receivedAction) async { - // debugPrint('onActionReceivedMethod'); - // final payload = receivedAction.payload ?? {}; - // if (payload['navigate'] == 'true') { - // locator().navigateToWithParams(notificationRoute, {'title': payload['title']!, 'body': payload['body']!}); - // } final payload = receivedAction.payload ?? {}; final extra = receivedAction.body; final handleClick = payload['click_action']; final localId = jsonDecode(payload['local']!)['CLI_ID']; - // try { - // localId = jsonDecode(payload['local']!)['CLI_ID']; - // } catch (e) { - // localId = payload['local']['CLI_ID'].toString(); - // } log('payload: $payload'); log('extra: $extra'); @@ -311,24 +301,17 @@ class NotificationService { break; } - log("onActionReceivedMethod"); // showAlertDialog(AppState().context!, 'Test', 'Test', () async {}); } static Future onNotificationCreatedMethod( - ReceivedNotification receivedNotification) async { - log('onNotificationCreatedMethod'); - } + ReceivedNotification receivedNotification) async {} static Future onNotificationDisplayedMethod( - ReceivedNotification receivedNotification) async { - log('onNotificationDisplayedMethod'); - } + ReceivedNotification receivedNotification) async {} static Future onDismissActionReceivedMethod( - ReceivedAction receivedAction) async { - log('onDismissActionReceivedMethod'); - } + ReceivedAction receivedAction) async {} static Future show({ required final String title,