-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push notifications #1418
base: main
Are you sure you want to change the base?
Push notifications #1418
Conversation
Haven't looked through super closely, but looks great and could also fit really well alongside APNS push notifications for apple wallet tickets... |
e582fb2
to
10df98f
Compare
This is probably in a reasonable state for testing now. No notifications are being queued other than those requested with the test button, but I think there's some value in wider testing of that basic functionality given how finicky WebPush has been for me so far. You'll need to set |
4d67261
to
dfdc6c1
Compare
apps/notifications/jobs.py
Outdated
|
||
|
||
@scheduled_task(minutes=15) | ||
def queue_content_notifications(time=None) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I deeply dislike the approach being taken here, if anyone with sufficient SQLAlchemy knowledge wants to turn it into a single query with some joins I'd be very happy.
c9c21d5
to
77d4d55
Compare
Work in progress PR, this handles the absolute basics of registering for push notifications, and being able to send a notification to an endpoint.
Things still to do:
send_queued_notifications
anddeliver_notification