Push notifications in a react app

I'm adding push notifications to my react app (TS and react-query on the frontend and MongoDB for the backend). Thinking of a pub-sub model (instead of webhooks/websockets) since the notifications need to go to all users of a workspace. Haven't ever built such a system before and was looking for recommendations on implementations.
4 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
stoyko
stoyko3y ago
Are you using REST or GQL for your API? If you use GQL, they offer the ability to have a subscription query, which listens for changes on the BE and you can use those.
shaaah
shaaah3y ago
Firebase should do the notification part
☘
3y ago
there's native solutions web-push & broswer push API
Want results from more Discord servers?
Add your server