dimanche 1 décembre 2019

How to send messages from server to web application (angular)

Usually, An application communicates with the server by sending HTTP requests. It sends some data over a HTTP request and receives a response in turn.

But when building my application, I ran into a situation where the backend needs to send some data/message to the web application when a particular event occurs.

I read about WebPush Notifications but I dont want to use them, because it asks the user for permission to show notifications, which is kinda wierd. Even for using the WebPush API I have to request for permission to show notifications. And I dont want to rely on that because if the user clicks deny the whole application breaks which is why I was looking for other alternatives.

What alternatives are available for me?




Aucun commentaire:

Enregistrer un commentaire