I want to implement push notification in my Django app which is accessible only via a private network. I don’t want to use a service like pusher.com because its not free and message data is sent over the internet - what other choices do I have ? Is there no pip install that I can make use of for implementing push notifications ? Do I need to be in a situation where I have to run a separate server apart from runserver / gunicorn ?
Server-side push to a browser requires something either using SSE or websockets, and correspondingly, some JavaScript running in the browser that’s prepared to listen for it.
You could also have the JavaScript in the browser poll for notifications on a periodic basis - it depends upon how urgent or how quickly that notification needs to be received.
Or, it could be a separate process running on the client’s system that would be listening for those notifications. It all depends upon what you want to do with those notifications that are received. (This is typically what is done in mobile devices with apps.)
I got daphne running - but I was hoping some pip package to do most of the python work. Like maybe sending messages from the django admin.