S
S
Stanislav Pochepko2018-06-15 14:27:43
JavaScript
Stanislav Pochepko, 2018-06-15 14:27:43

How to make your own PUSH server for ServiceWorker?

Help to understand a bunch of technologies. Now I'm reading Push API, Notification API, Service Worker API.
I understood everything, except for the PUSH API. How it works? Do I have to use Firebase Cloud Messaging (FCM) or can I write my own PUSH server? How to do it? Perhaps there are ready? Where to dig? You need a server that you can work with Service Worker. What is the communication protocol? WAMP?
Help structure this data.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kir ---, 2018-06-21
@SowingSadness

Ha ha ha. No, you can't have yours. Only those that support the browser.
Stanislav Pochepko , this is all very complicated, but you can read a bunch of articles on setting up push api, for example https://medium.com/web-standards/implement-push-uve... where you will stumble upon the concept of VAPID Key.
VAPID Key is a key where information about your message delivery service is encrypted.
And many recommend using https://firebase.google.com/docs/cloud-messaging/ (or you can use Amazon SNS https://aws.amazon.com/en/sns/faqs/)
all message sending points for each device and will send your message.
After all, each end device or browser is rigidly subscribed to these same points for receiving push notifications.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question