<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Khiêm Duy</title>
    <description>The latest articles on DEV Community by Khiêm Duy (@khim_duy_b89ce9b451c6130).</description>
    <link>https://dev.to/khim_duy_b89ce9b451c6130</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1578871%2F275da500-a142-4364-97cc-4a570f226b3a.jpg</url>
      <title>DEV Community: Khiêm Duy</title>
      <link>https://dev.to/khim_duy_b89ce9b451c6130</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/khim_duy_b89ce9b451c6130"/>
    <language>en</language>
    <item>
      <title>I Built a Hydration Reminder App — Here's What I Learned About Making Notifications That Don't Get Ignored</title>
      <dc:creator>Khiêm Duy</dc:creator>
      <pubDate>Wed, 24 Jun 2026 11:33:32 +0000</pubDate>
      <link>https://dev.to/khim_duy_b89ce9b451c6130/i-built-a-hydration-reminder-app-heres-what-i-learned-about-making-notifications-that-dont-get-3fma</link>
      <guid>https://dev.to/khim_duy_b89ce9b451c6130/i-built-a-hydration-reminder-app-heres-what-i-learned-about-making-notifications-that-dont-get-3fma</guid>
      <description>&lt;p&gt;Every developer I know has built at least one "productivity" side project for themselves. Mine was a water reminder app.&lt;/p&gt;

&lt;p&gt;Sounds trivial. It was more interesting than I expected.&lt;/p&gt;

&lt;p&gt;Here's what I learned from building &lt;strong&gt;Thirsty Bot&lt;/strong&gt; — specifically about the surprisingly hard problem of making notifications that people don't immediately swipe away and disable.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Core UX Problem: Notification Fatigue
&lt;/h2&gt;

&lt;p&gt;The average Android user receives 46 notifications per day. Most get dismissed without reading.&lt;/p&gt;

&lt;p&gt;If your app sends reminders that feel like noise, users will either:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Swipe and ignore (short term)&lt;/li&gt;
&lt;li&gt;Disable all notifications from your app (permanent death)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So the core challenge of a reminder app isn't "how do I send a notification" — it's &lt;strong&gt;how do I send a notification that the user is glad to receive.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Tried (And What Worked)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;❌ Fixed interval reminders&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every 2 hours, send a reminder. Simple to implement, terrible UX. Users quickly learn to ignore them because they're predictable and interruptive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;❌ Generic messages&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;"Time to drink water!" gets old after the third notification. Users stop reading after a week.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;✅ Smart scheduling within user-defined windows&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let users set their "active hours" (e.g., 8am–10pm). Space reminders evenly across that window. Never send notifications outside of it. This alone dramatically improved retention — users stopped turning off notifications because the app wasn't waking them up.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;✅ Rotating, personality-driven messages&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I wrote 40+ unique reminder messages with different tones — humorous, motivating, slightly alarming, curious. Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Your brain is 75% water. Feed it. 🧠"&lt;/li&gt;
&lt;li&gt;"Dehydration is a silent productivity killer. Drink up."&lt;/li&gt;
&lt;li&gt;"Hey, remember water? It remembers you. 💧"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Engagement went up noticeably. Users mentioned the notifications specifically in feedback.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;✅ Immediate progress feedback&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After logging a drink, show a satisfying animation and updated progress ring. Make the action feel rewarding.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Technical Stuff
&lt;/h2&gt;

&lt;p&gt;The reminder scheduling uses Android's &lt;code&gt;AlarmManager&lt;/code&gt; with &lt;code&gt;setExactAndAllowWhileIdle()&lt;/code&gt; for reliability across Doze mode. This is non-trivial on modern Android — battery optimization is aggressive and will kill WorkManager tasks in background-restricted apps.&lt;/p&gt;

&lt;p&gt;For the goal calculation: I settled on the Holliday-Segar formula as a baseline (35ml/kg body weight), with a multiplier for activity level.&lt;/p&gt;

&lt;p&gt;For drink type hydration coefficients: water = 1.0, coffee = 0.8, tea = 0.85, juice = 0.9.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd Do Differently
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Add widgets on day one.&lt;/strong&gt; Users want the progress ring on their home screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Onboarding matters more than I thought.&lt;/strong&gt; Users who skipped the weight/goal setup were 3x more likely to abandon the app in week one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;iOS from day one if possible.&lt;/strong&gt; A significant portion of interested users are iOS-only.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;Thirsty Bot is free on Android: &lt;a href="https://play.google.com/store/apps/details?id=com.nextgensoft.thirstybot" rel="noopener noreferrer"&gt;https://play.google.com/store/apps/details?id=com.nextgensoft.thirstybot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the implementation in the comments — notification scheduling on Android is a rabbit hole worth talking about.&lt;/p&gt;

</description>
      <category>android</category>
      <category>mobiledev</category>
      <category>productivity</category>
      <category>health</category>
    </item>
  </channel>
</rss>
