1
votes

I've been trying to understand how Push Notifications work for Progressive Web Apps. One thing that I haven't seen clearly explained so far is the nature of the Push Server, as seen Here: this image

Precisely, I don't understand how the Push Server is chosen.

I've followed this tutorial. The endpoint URL is generated by the Service Worker, but the Push Server isn't specified anywhere as far as I can tell.

So is it just specific to each web browser? Is it possible to make my own Push Server, or do I have to use one provided by Google?

1

1 Answers

0
votes

To answer my own question now that I understand this whole thing better :

The Push Server is imposed by the browser. It is a service provided by the editor of the browser (Google, Mozilla...), for the ease of the developer, but also as a mean to protect the users from spam. As such, it is not possible for a developer to use his own Push Server.