Shri
Shri
Explore posts from servers
NNovu
Created by Shri on 11/9/2024 in #💬│support
novu.subscribers.getUnseenCount(<subscriber>, false) always returns 0
Hey folks, I found an issue where the novu.subscribers.getUnseenCount method always returns zero in the response when set to false even if there are unseen in-app notifications for the subscriber.
data: { data: { count: 0 } }
data: { data: { count: 0 } }
Alternatively running the same query with true shows the correct number of already read messages for the subscriber.
data: { data: { count: 89 } }
data: { data: { count: 89 } }
This bug is preventing me from setting the correct number of notifications in the badge for the app after triggering an in-app notification + a push notification with the unread count.
4 replies
NNovu
Created by Shri on 11/3/2024 in #💬│support
Need help with the following: Logo, set badge count and target URL
Hey @Dima Grossman, Thank you for responding to my previous messages. I think I have figured out a lot of pieces and Im so close to having Novu working perfectly! You guys have done an amazing job but I need just a little bit more help 🙂 - How do I set the logo for FCM notifications? Overrides per the docs isnt working. - How do I send the badge count in the notification data or payload and then have the service worker update the count on the device? Cant find any docs for this? - How do I set the target URL in the notification to point to a route in the web app? I followed the docs but it doesnt work. I have followed and read through all your documentation but none of them are working, Im not sure if its because Im using v2.0 or if the documentation is outdated. https://docs.novu.co/integrations/providers/push/fcm https://novu.co/blog/the-ultimate-guide-to-firebase-cloud-messaging-fcm/
7 replies
NNovu
Created by Shri on 10/31/2024 in #💬│support
useNewMessagesCount hook from CountProvider is not exposed
Hey folks! I can see Novu React components using the useNewMessagesCount hook from the CountProvider but it doesnt look like its exposed for us to use. Which means we cannot create the same "1 new notification" button in our custom inbox. If it is actually exposed can you please share how to import it and get the count? Any reason why these very useful set of hooks and the provider is not exposed and documented? https://github.com/novuhq/novu/blob/031881a51b24602695675811face304754ece0d0/packages/js/src/ui/components/Notification/NotificationList.tsx https://github.com/novuhq/novu/blob/031881a51b24602695675811face304754ece0d0/packages/js/src/ui/context/CountContext.tsx
5 replies
NNovu
Created by Shri on 10/30/2024 in #💬│support
Unable to use <InboxContent> and <Notifications> components
Hey folks! (cc: @Pawan Jain ) If I just use the Novu <Inbox> component all the events and actions for clicking on a notification etc. works as expected in the popover. If I use the <Bell> component in my header and either the InboxContent or Notifications component in my custom popover the notifications and all the UI elements render correctly but then none of the events and actions work anymore when clicked. I even tried using custom event handling but the handler never fires even if I just try to console.log(notification.id)
<InboxContent
onNotificationClick={(notification) => {
// your logic to handle notification click
console.log(notification.id) // DOES NOT WORK
}}
onPrimaryActionClick={(notification) => {
// your logic to handle primary action click
console.log(notification.id) // DOES NOT WORK
}}
onSecondaryActionClick={(notification) => {
// your logic to handle secondary action click
console.log(notification.id) // DOES NOT WORK
}}
<InboxContent
onNotificationClick={(notification) => {
// your logic to handle notification click
console.log(notification.id) // DOES NOT WORK
}}
onPrimaryActionClick={(notification) => {
// your logic to handle primary action click
console.log(notification.id) // DOES NOT WORK
}}
onSecondaryActionClick={(notification) => {
// your logic to handle secondary action click
console.log(notification.id) // DOES NOT WORK
}}
16 replies
NNovu
Created by Shri on 10/29/2024 in #💬│support
Studio does not connect to bridge app
No description
27 replies
NNovu
Created by Shri on 10/29/2024 in #💬│support
Selfhost - MongoServerError: cannot convert a oid to a value for comparison
No description
3 replies
NNovu
Created by Shri on 10/25/2024 in #💬│support
Configure Redis Sentinels
Hey Folks! In my production setup I have a 3 node Redis config with 1 master(read/write) and 2 replicas (read) and 3 Redis Sentinel nodes to handle failover and high availability. Looking at the docker compose file, I only see the option to provide a single Redis host but not a list of Sentinel hosts to connect to. How do I configure Redis Sentinels instead of connecting to a single host? My config matches example 2 here: https://redis.io/docs/latest/operate/oss_and_stack/management/sentinel/
3 replies