Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
7 replies
Marcon

implementation of push notifications

Hi, I am trying to implement push notifications and read through a few Firebase Cloud Messaging tutorials.

The concept is
1. get notification permission and generate a token
2. send token to server
3. server emits push notifications to token

Can't I just subscribe to "userId"? As I want to send notifications to all devices of authenticated users. And don't want to mess around with all those tokens.

Is Firebase Cloud Messaging the best way to implement something like this? I looked at OneSignal or Pusher Beams but they have a 1000 "web" subscriber limit.
Was this page helpful?