diff --git a/src/components/notification-service.jsx b/src/components/notification-service.jsx index f73a1449..c0ff73d4 100644 --- a/src/components/notification-service.jsx +++ b/src/components/notification-service.jsx @@ -106,6 +106,11 @@ export default memo(function NotificationService() { }; }, []); + useLayoutEffect(() => { + if (navigator?.clearAppBadge) { + navigator.clearAppBadge(); + } + }, []); usePageVisibility((visible) => { if (visible && navigator?.clearAppBadge) { console.log('🔰 Clear app badge');