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, ); }, );