diff --git a/lib/backend/notifications/notification_service.dart b/lib/backend/notifications/notification_service.dart index cf29f510..3bdad855 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: context, ref: 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']); });