Ask A Question

Notifications

You’re not receiving notifications from this thread.

Different Notification Types By Type

Steve Quatrani asked in Rails

I am making a notification system and using the great tutorial on here to do it. I am going to have a few different channels that a notification can be sent out with: email, web push, text message, in-app.

I would love to do something like what slack does where I get a web push notification on my computer but if the message isn't marked as read after a certain amount of time I get a push notification to my phone, and then if I don't answer that there's emails.

It would be super annoying to get a notification on all of those different channels, all at once, everytime I got a message on slack.

Can anyone help me wrap my mind around how I would go about building that?

Reply

Someone at Slack posted this flowchart of the rules used to determine whether or not to send a notification:


Reply

haha wow ... that's a heck of a flowchart. But from a technical standpoint do they just poll regularly on a queue to see if they have to get to the next step?

Reply

I imagine they go through most of it, and then just schedule a background job to notify via mobile if it hasn't already been marked as sent. I'm not sure what their delay is but it's like 3 minutes or something for mobile.

Reply

got ya. Thanks! I'll see what I can cook up.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 80,973+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2024 GoRails, LLC. All rights reserved.