From 12cbfc9e2c745f88082de23c9a171642129c226a Mon Sep 17 00:00:00 2001 From: Stephanie Wong Date: Fri, 26 Apr 2024 10:34:11 -0700 Subject: [PATCH] comment out notification recieved listener --- .../(BottomTabNavigation)/AllCases/index.tsx | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/app/(BottomTabNavigation)/AllCases/index.tsx b/src/app/(BottomTabNavigation)/AllCases/index.tsx index 147ec3ff..dfe4a52b 100644 --- a/src/app/(BottomTabNavigation)/AllCases/index.tsx +++ b/src/app/(BottomTabNavigation)/AllCases/index.tsx @@ -84,22 +84,22 @@ function CasesScreen() { }); } - notificationListener.current = - Notifications.addNotificationReceivedListener(notification => { - const updateId = notification.request.content.data.updateId; - const debugString = - 'NotificationRecieved: ' + - notification + - ', ' + - notification.request + - ', ' + - notification.request.content + - ', ' + - notification.request.content.data; - console.log(debugString); - setNotificationResponse(debugString); - router.push(`/AllCases/Updates/UpdateView/${updateId}`); - }); + // notificationListener.current = + // Notifications.addNotificationReceivedListener(notification => { + // const updateId = notification.request.content.data.updateId; + // const debugString = + // 'NotificationRecieved: ' + + // notification + + // ', ' + + // notification.request + + // ', ' + + // notification.request.content + + // ', ' + + // notification.request.content.data; + // console.log(debugString); + // setNotificationResponse(debugString); + // router.push(`/AllCases/Updates/UpdateView/${updateId}`); + // }); responseListener.current = Notifications.addNotificationResponseReceivedListener(response => { @@ -121,9 +121,9 @@ function CasesScreen() { }); return () => { - Notifications.removeNotificationSubscription( - notificationListener.current!, - ); + // Notifications.removeNotificationSubscription( + // notificationListener.current!, + // ); Notifications.removeNotificationSubscription(responseListener.current!); };