B
B
bodrich2020-05-13 19:27:46
Python
bodrich, 2020-05-13 19:27:46

How to get web notification?

The essence of the idea is this: I subscribe to push notifications from the site through the browser, pull out the endpoint, hash, key, token from the browser. And it is necessary to somehow receive all notifications intended for the browser through python (the browser can be turned off at this moment). Are there any ready-made solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daria Motorina, 2020-05-13
@glaphire

The push notification server sends requests to the client, i.e. browser, so most likely not. You can write a handler in the service worker, which, when a message is received, will signal the python server to accept the message, but again, this requires the browser to be enabled

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question