Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push Notification in DRF

What should be exact and most appropriate method to implement push notifications in django rest framework. DRF documentation doesn't explain it well. Help me out with this one

like image 838
Prashant Shukla Avatar asked Sep 22 '15 07:09

Prashant Shukla


1 Answers

Django REST framework is for creating API in django using built in django functionalities to retrieve request and serve response.

Django by itself doesn't support any protocol that will allow push notifications to be sent to client, so DRF also won't do that.

To create push notifications you have to use websockets, there are some third-party packages adding support of websockets to django. One of them is django-websocket-redis

like image 77
GwynBleidD Avatar answered Oct 03 '22 01:10

GwynBleidD