From 43ce50fe70a84cd05623c4b629e18aa500b544b9 Mon Sep 17 00:00:00 2001 From: Gauvain Date: Wed, 15 Jul 2026 10:50:47 +0200 Subject: [PATCH] fix(notifications): drop deprecated handler flags and payload logging (#1805) Co-authored-by: lance chant <13349722+lancechant@users.noreply.github.com> --- app/_layout.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/_layout.tsx b/app/_layout.tsx index ed6a5beec..d3e6fd5d9 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -85,7 +85,8 @@ configureReanimatedLogger({ if (!Platform.isTV) { Notifications.setNotificationHandler({ handleNotification: async () => ({ - shouldShowAlert: true, + shouldShowBanner: true, + shouldShowList: true, shouldPlaySound: true, shouldSetBadge: false, }), @@ -350,9 +351,12 @@ function Layout() { notificationListener.current = Notifications?.addNotificationReceivedListener( (notification: Notification) => { + // Log only the title — serializing the whole notification touches + // the deprecated dataString getter (deprecation warning) and dumps + // noisy payloads into the console. console.log( - "Notification received while app running", - notification, + "Notification received while app running:", + notification.request.content.title, ); }, );