Peter
Peter

Reputation: 508

ReactJS web push notification at a certain time?

I'm trying to build a web application based on React.JS (not React-Native) and Django for its backend. I'm struggling right now on how to send push notifications on a specific time. Are there any useful modules/APIs that can support time based push notifications?

To be exact... even if I exit the website, as long as my browser (ex: Chrome) is on, I want to still be able to get a notification at the time I set.

Upvotes: 0

Views: 1276

Answers (1)

Shreyan Mehta
Shreyan Mehta

Reputation: 550

Firstly the Front end framework is not much relevant , secondly you could use firebase push notification , generate a client side token for that browser and send it to your DB and store it, then you can use something like django-cronjobs and time it when you want a push say at 5 pm UTC on every day , set it there and in that you can use fcm to push notification to it. Ref this github repo for fcm django you just need to put django-cronjob code to trigger that file.

Upvotes: 2

Related Questions