I am looking to use my django rest framework project along with django push notifications to send notifications to iOS users. I want these notifications to be sent at times specified in my django models. What would be the best way to achieve something like this?
Asked
Active
Viewed 239 times
0

TJ D'Alessandro
- 109
- 1
- 19
-
Depending on the desired exactitude, you could use a Celery background task running every few minutes checking which notifications need to be sent – gmc Sep 24 '20 at 21:32
-
You didn't specify where you deploying, but you can also create a custom management command with a scheduler, for example in Heroku you install the add-on scheduler, and run the command there. – Sep 25 '20 at 19:55
-
@yovelcohen i have an aws ec2 server running with my drf project on it is there any way I could have a scheduler on that server as well? – TJ D'Alessandro Sep 25 '20 at 21:08
-
haven't deployed with ec2, but I'm sure you do, just look it up – Sep 26 '20 at 10:39