Can I use novu for react-native?
Is there a similar component like
notification-center
in react for react-native?
If not would I able to use novu in react-native application?12 Replies
Currently I am not aware that we have a notification-center for react-native however it is something we have considered supporting.
You can use Novu for the backend of your react-native app but you will need to build the notification-center yourself.
So, can I use pure socket client in the react-native app to connect to novu socket server using web sockets?
And use it like this
socket.on("notification_received")?
Yes @San you are right
You can use it like this
May I know the web socket url of novu server (cloud)
So that I can connect directly using socket client in the react native app
I can see this url in network tab
wss://ws.novu.co/socket.io/EIO=4&transport=websocket
So, can I use the above url to connect directly to novu web socket server using socket client?@San
Yes above URL is correct. You can use this websocket URL to connect with ws service.
Feel free to ping me if you face any issue
What kind of events that I can listen on @Pawan Jain ?
If I use direct web socket url of novu?
It should listen all three events listed here
https://docs.novu.co/notification-center/client/react/get-started#realtime-sockets\
Got it thanks
@San
Are you able to use our WS url in socket client and build custom in-app notiifcation center in react native?
Not yet
We might wait until novu comes up with built in component for react native
If requirement is urgent from our side then I might start using WS url and implement my custom in app notification center in react native
Will let you know if I start with custom implementation @Pawan Jain
Sure @San ✅