Health & fitness

Build a medicine reminder app for your grandparents

A native build brief for a large-button pill reminder: a loud reminder at the set time, one big Taken button, and an optional family view on your own Supabase.

Apirex TeamUpdated AndroidiOS
On this page
  1. Screens
  2. Data model
  3. Native features
  4. Android notes (Kotlin and Jetpack Compose)
  5. iPhone notes (Swift and SwiftUI)
  6. Copy-paste prompt
  7. Acceptance test
  8. Frequently asked questions
5screens
4data tables
172word prompt
2platforms: Android, iOS

Grandparents juggling three tablets a day rarely need a feature-packed health app. They need one loud reminder, one huge button and a family member who can quietly check that the morning dose happened. This brief keeps it that simple. Android leads here because alarm-style scheduling, notification channels with their own sound and Room cover the core on the phone; the iPhone version uses local notifications and needs a Mac with Xcode to build. It is a personal reminder, not a medical device, and the copy should never suggest otherwise. The first proof: a dose set for two minutes from now rings, one tap marks it taken, and the history shows the right time.

Screens

  • Today: Each dose as a large card with the medicine name, the time and a Taken button that fills the width.
  • Reminder: A loud, full-colour alert with Taken and Snooze 10 minutes, readable from arm's length.
  • Medicines: Add a medicine, its dose text, times of day and an optional photo of the box.
  • History: A simple calendar of taken, snoozed and missed doses.
  • Family: An optional invite so a son, daughter or grandchild can see today's status.

Data model

Medicine schedule and dose records
TableKey fieldsPurpose
medicinesid (uuid), name (text), dose_text (text), photo_uri (text), active (bool)What to take, written the way the family describes it.
schedulesid (uuid), medicine_id (uuid), time_of_day (time), days_mask (int)When each medicine is due, including weekday-only patterns.
dose_eventsid (uuid), schedule_id (uuid), due_at (timestamptz), status (text), acted_at (timestamptz)One row per due dose: taken, snoozed or missed, with the moment it changed.
family_linksid (uuid), patient_id (uuid), viewer_id (uuid), created_at (timestamptz)Who may read the status, created only from an invite the patient's phone accepted.

The reminder must work with no signal, so the schedule and dose events live on the phone first. The family view is the only part that needs a server: connect your own Supabase, mirror only medicine names, due times and statuses, and use row-level security so a viewer reads the rows of a patient who invited them and nobody else. Consider whether even the medicine name needs to leave the phone; a family may prefer 'morning tablets' as the label.

Native features

Timing is the hard part. A water nudge can arrive a few minutes late, but a reminder for a blood pressure tablet should ring at the time it was set. On Android that means alarm-style scheduling, which needs a special permission on recent versions and a clear explanation to the user. The alert should use its own notification channel with a loud sound, and the screen should show huge text and two buttons, nothing else.

FeatureAndroid (Kotlin)iPhone (SwiftUI)Notes
Ring at dose timeAlarmManager setExactAndAllowWhileIdle with SCHEDULE_EXACT_ALARMUNCalendarNotificationTrigger with a time-sensitive interruption levelAsk for the exact alarm permission with a plain reason; fall back to a regular reminder and say so if refused.
Loud alertNotification channel with high importance and a custom soundCustom notification sound bundled with the appLet the family pick the sound; never rely on vibration alone for someone hard of hearing.
Taken from the alertNotification action handled by a BroadcastReceiverUNNotificationAction handled in the appOne tap writes the dose event; snooze reschedules ten minutes later.
Family statussupabase-kt with a status sync on Takensupabase-swift with the same tablesViewers see status when they open the app; this brief does not promise push alerts.

Android notes (Kotlin and Jetpack Compose)

Design for someone who may not know what a notification is. Use at least 24 sp text, high-contrast colours, one action per screen and no swipe gestures. Every list should also work with TalkBack, reading the medicine name and time in one sentence.

  • Schedule each upcoming dose with AlarmManager and reschedule all of them after BOOT_COMPLETED and after a time zone change. Check canScheduleExactAlarms on Android 12 and later; if it returns false, open the settings screen with an explanation, and show a banner while timing is approximate.
  • A full-screen reminder over the lock screen needs the full-screen intent permission, which recent Android versions limit to alarm and calling apps. Start with a high-priority notification and treat full-screen display as a later step that needs checking.
  • Test on a real phone: set a dose two minutes ahead, lock the screen, put the phone in battery saver and confirm it rings. Restart the phone and confirm tomorrow's doses are still scheduled.

iPhone notes (Swift and SwiftUI)

On iPhone, local notifications carry the reminder and the Taken action. Time-sensitive notifications can break through a Focus mode only when the user allows it, so the setup screen should walk through that choice in plain words.

  • iOS allows a limited number of pending local notifications per app, so schedule the next few days of doses and top them up whenever the app opens or a dose is marked.
  • Use Dynamic Type at accessibility sizes for every label and give the Taken button an accessibility label that includes the medicine name, so VoiceOver says exactly what is being confirmed.
  • On a physical iPhone, test with the ring switch on silent and with a Focus mode active, and record which combinations still produce sound before telling the family it will always ring.

Copy-paste prompt

Build this yourself 170 words · Android
My nani keeps forgetting her BP tablets and every pill app is too confusing for her. Build a medicine reminder for Android made for grandparents. Screens: Today, Reminder, Medicines, History and Family. Huge text, huge buttons, high contrast, no swiping. I add each medicine with a name, dose text, times of day and a photo of the box. At dose time, show a loud reminder with just two buttons, Taken and Snooze 10 minutes, and let her tap Taken straight from the notification. Save medicines, schedules and dose_events on the phone so it works offline, and reschedule everything after a restart. Ask for the exact alarm permission with a simple reason and show a banner if timing becomes approximate. Add an optional Family screen on my own Supabase so I can see today's taken or missed doses after she invites me. Add a line saying this is a reminder, not medical advice. Acceptance: a dose set two minutes ahead rings on a locked phone and one tap marks it taken.

Opens Apirex with this prompt in the box. Pick the Android · Kotlin tab before you send.

Acceptance test

  1. Add one medicine with two daily times and set the next one for two minutes from now.
  2. Lock the phone, wait for the reminder and tap Taken on the notification; confirm Today and History both show the dose as taken with the right time.
  3. Let the next test dose ring and tap Snooze; confirm it rings again ten minutes later and ends as taken or missed, never both.
  4. Restart the phone and change the time zone; confirm upcoming doses are still scheduled at the intended local times.
  5. Invite a family phone through your own Supabase and confirm it sees today's statuses but cannot edit medicines or doses.

Spend time on the missed-dose rule before building. Decide with the family how long after the due time a dose counts as missed, what the Today card shows then and whether a late Taken is allowed. Then test with a real older user: if they hesitate on any screen, the text is too small or there is one button too many.

Frequently asked questions

Is this a medical app?

No. It is a personal reminder that helps someone remember doses they and their doctor already agreed on. It does not give dosing advice, and the app should say that clearly on the first screen.

Will the reminder always ring on time?

It aims to. Exact timing on Android depends on the exact alarm permission and the phone maker's battery rules, and iPhone Focus settings can silence alerts. Test on the real phone that will be used, and show a banner when timing cannot be guaranteed.

Can family get an alert if a dose is missed?

Not in this version. The family screen shows status when it is opened, using your own Supabase. Instant alerts need push notifications, which require developer accounts and should be checked separately.

Build this blueprint

The blueprint prompt, ready for your platform. Edit anything before you send it.

AndroidKotlin · Jetpack ComposeReal source on your computer

Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.