Day 22

Notifications away

Ryan Strickler
Dec 21, 2016 · 1 min read

Prompt is now sending text notifications, which is exciting. 🎉 I cut back to the simpler case of sending a single waiting prompt, without worrying about which specific one or ordering them, and concentrated on connecting the pieces needed to get a message out the door.

Everything originates from a rake task, which calls a method in the Prompt class. The Prompt class asks the User class for a list of people to check (currently just returning everyone), then checks each one and finds a single prompt to send if there is one waiting. It hands the prompt over to the UserTexter class, along with the appropriate phone number.


Trying to decide what to do next and what isn’t going to make the version 1 cut. Need to add the logic for which people should be sent a prompt at which time, which gets into the timezone side of things. Also need to add some basic membership plans. And enhance the experience of adding and viewing the upcoming prompts.

So much to do and so little time…

Little King: Daily Log

Building something every day.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store