New notifications not being received by the socket connection
I am using the listenNotificationReceive method from the @novu/headless package with react to listen for new notifications from my app. However, the method is not being called when I trigger notifications from my dashboard. To view new notifications, I'd have to manually call the fetch notifications method. Is there a way to fix this? Code snippets below
2 Replies
why you don't use a react package from novu ?
https://docs.novu.co/notification-center/client/react/get-started
it's already have all functionality and you can customize ui components inside
Novu
React Get Started - Novu
Learn how to add novu powered In-App notification center to your React app
@Femto Ace
Check out thes methods to listen new in-app notificatons:-
https://docs.novu.co/notification-center/client/headless/api-reference#listenunseencountchange
https://docs.novu.co/notification-center/client/headless/api-reference#listenunreadcountchange
Closing this post due to inactivity. Feel free to create a new post if you have any question or you are still facing issue