A
A
Alexey Vesnin2018-05-10 06:39:36
Push technologies
Alexey Vesnin, 2018-05-10 06:39:36

Is writing a generic push notification handler realistic?

Hello dear programmers. Tell me this question: there are various push notification services, such as:
https://sendpulse.com/ru
https://push.world/
https://goodly.pro/
and others.
Is it possible to write a common handler on the client side that will identify the user and pass information about him to all services at once? (just as I understand it, the essence is the same: identify the user and transfer the information to the server)
Show your confirm subscription request or automatically subscribe all users of the site? (How difficult is the task and how realistic is it?)
For what? not to keep all the eggs in one basket.
Maybe someone knows any scripts for organizing their push notification service? (php)
Primarily interested in Web-push and desktop

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor, 2018-05-10
@Levhav

It is pointless. When subscribing to push notifications, the long identifier of the user's specific machine is passed to your code. If you store this id with yourself or import it into the building service, then you can send a push.
Moreover, if you used one service and he ordered to live long, then you do not need to re-display the subscription request for everyone. since once a subscription has been made for a particular site, it will be re-issued to it without additional confirmation from the user.
This means that if you switch from one service to another, it will be enough for you to wait until your subscriber re-enters the site and the browser, without his knowledge, will give you the same subscription code that it issued before.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question