Implement Push notifications in DRF and ReactJS

Viewed 1817

I am a beginner so please forgive me if I sound silly. I am trying to make a Rest API using DRF and am using serializers for connecting the models and retrieving the data in ReactJS using the fetch method. I wanted to have the functionality of push notifications, and use the data of the different models in the notifications.

Any suggestions?

1 Answers

you should follow these steps

  • create an FCM (firebase cloud messaging) account
  • create an application in FCM
  • implement django-fcm in backend
  • make an api for getting registration_id from client simply named sync-device
  • implement react-fcm in client side

good luck ;)

Related