How are push notification sent?

I have one question when we need to send a push notification what is the process? I mean, we intereact directly with the database? Like, modify database directly, then trigger a function on server that will send this particular msg from the database to the push service, then push service will distribute the message to registered users? anyone knows how this is done in real world? Like say I have a mobile app and I want to send a notif to ALL users because an event will take place on a specific date, what's the process here? Because it should be something automatic, no? I'm not having the flow of how this can be triggered
3 Replies
13eck
13eck6d ago
After doing some digging it seems that each browser vendor has their own push service that sends a payload to your server when a user registers a push notification. So you send the browser vendor the notifications with the appropriate id so they know how to route it.
13eck
13eck6d ago
web.dev
Push notifications overview  |  Articles  |  web.dev
An overview of what push notifications are, why you might use them, and how they work.
Faker
FakerOP6d ago
will have a look, thanks !

Did you find this page helpful?