Paweł T.
NNovu
•Created by Samyak on 6/23/2024 in #💬│support
Setting custom queryKey in useFetchNotifications
hey @Samyak 👋
Unfortunately the
useFetchNotifications
hook doesn't take to the account the query
prop when it's building it's internal query key 😦
There is another way that you can consider for fetching the read
and all
notifications separately with using stores
aka "feeds", here is a doc: https://docs.novu.co/notification-center/client/react/multiple-tabs.
But I'm not sure if it will cover your case since it requires switching the "current store" with setStore
function ref: https://docs.novu.co/notification-center/client/react/api-reference#usenotifications.9 replies
NNovu
•Created by DennisK on 5/17/2024 in #💬│support
Does invoking a new Novu client hold a open connection?
hey @DennisK! 👋
You don't have to use the singleton pattern to wrap the Novu client instance, because it's just the simple stateless "proxy" to our REST APIs.
However if you would like to use the
@novu/headless
package to build the custom Notification Center UI, then it's recommended in that case, because of the WS connection that we establish in the background.8 replies
NNovu
•Created by Kedar on 3/11/2024 in #💬│support
High number of mongo atlas connections?
@Kedar if it goes up to 500 (which is default) it means that the env variables were not picked up by code, probably not propagated
37 replies
NNovu
•Created by Nao Ohira on 1/31/2024 in #💬│support
Better proxy support
If we can answer whether this will be part of the enterprise plan, then we will know where we can put this request. cc @Dima Grossman
7 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
I mean with the tag
latest
80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
can you try with the latest image then?
80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
you have to exec into the worker container that is the one that is sending the messages... look over this path
node_modules/@novu/application-generic/node_modules/@novu/fcm/build/module/lib
and the file will be called fcm.provider.js
80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
And you dont accidentially running another docker container with an older version?
80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
Maybe its about firebase sdk, because I was using 9
80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
Which version of docker images are you using?
80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
also, it works for me well on the Novu Cloud (prod) 🤷♂️
80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
you have to look over the
node_modules/@novu/fcm
in the container80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
If you mean by running the Novu locally then the code that you mentioned here is the right place: https://discord.com/channels/895029566685462578/1197599228336287874/1199713354802020372
80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
I don't know what I can suggest here, I created the app a couple of minutes ago and with that configuration, it works for me.
80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
Have you tried to generate a new token? and update the subscriber with it?
80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
Interesting 🤔 I'm not sure what might be wrong, but when the
overrides.fcm.type = "data"
then it should not send the notification
field from what I see in the code. I'm not sure how it's possible that you still see it.80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
I'm not sure what you are saying but in the above image I don't receive the
notification
property and that code works well.80 replies
NNovu
•Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
Ok, got it. When you set the
"type": "data"
then the message will be sent as a "data notification" meaning the payload
will be included in the data
property of the message, as well as other fields like title, body
.
Can you please try this:
and then the worker should be like:
80 replies