M
M
Millerish2017-02-27 17:07:35
JavaScript
Millerish, 2017-02-27 17:07:35

How to send push notifications?

Good time of the day!
There are services like sendpulse.com that allow you to send push messages.

  • I understand correctly, these are the same HTML5 Notifications?
  • How do they manage to work when the site is closed?
  • How to send messages yourself if the site is not open?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Karnaukhov, 2017-02-27
@Millerish

It's better to send via PushAll
But if you do it yourself, then dig towards the Push API. https://github.com/chrisdavidmills/push-api-demo
But you need to understand that you can only get it for free on chrome, ff and what is based on them. On Safari, you need to make a certificate through an Apple developer account; for mobile platforms, applications must be written.
Well, the most difficult thing is to maintain up-to-date tokens, update them, monitor the relevance of connected devices.
To put it more clearly, when the site is closed, it is sent through the browser services, then it calls your code in the Service Worker and it already displays a notification.
-----------
I received this question through the IT questionnaire
https://pushall.ru/?fs=927

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question