From 3d823fd20c6b132085de4ad55fc91308656b6c56 Mon Sep 17 00:00:00 2001 From: "J. A. Messias" Date: Thu, 12 Sep 2024 17:08:34 -0300 Subject: [PATCH] fix logs --- lib/backend/notifications/notification_service.dart | 3 --- lib/main.dart | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/backend/notifications/notification_service.dart b/lib/backend/notifications/notification_service.dart index d4efae7c..0f8c7a6c 100644 --- a/lib/backend/notifications/notification_service.dart +++ b/lib/backend/notifications/notification_service.dart @@ -18,8 +18,6 @@ Future onMessageReceived( Map payload, String? extra, String? handleClick) async { final localId = jsonDecode(payload['local']!)['CLI_ID']; - log('payload: $payload'); - log('extra: $extra'); switch (handleClick) { case 'visit_request': showDialog( @@ -49,7 +47,6 @@ Future onMessageReceived( 'Are you sure you want to approve this visit?', ), () async { - log("payload: $payload"); await answersRequest( context, payload['referencia'].toString(), diff --git a/lib/main.dart b/lib/main.dart index 500e1741..5e2cc196 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -54,9 +54,7 @@ Future foregroundHandleMessage(RemoteMessage message) async { payload: Map.from(message.data)); } -Future _backgroundHandleMessage(RemoteMessage message) async { - log('Handling a background message: ${message.messageId}'); -} +Future _backgroundHandleMessage(RemoteMessage message) async {} void main() async { await initializeApp(); @@ -92,7 +90,6 @@ class _AppState extends State { FirebaseMessaging.onMessage.listen(foregroundHandleMessage); FirebaseMessaging.onMessageOpenedApp.listen((RemoteMessage message) { - log(message.toMap().toString()); onMessageReceived(message.data, message.notification!.body, message.data['click_action']); });