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•3y ago
Message Not Public
Sign In & Join Server To View
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.
Firebase should do the notification part
there's native solutions
web-push & broswer push API