DoseTrack is a free medication reminder for Android with no account, no ads and no INTERNET permission at all. Earlier I wrote about what was hard in building it. Version 1.6.0 is now on Google Play and Huawei AppGallery.

What's new

  • An optional water tracker with a daily goal and gentle reminders
  • Dose reminders show whether to take a dose with water and before, with or after food
  • A simpler step-by-step "Add medication"
  • "As needed" medications, course end dates and notes
  • Google Play version only: water entries can be saved to Health Connect

Health Connect without reading anything

Health Connect talks to other apps on the device, so it fits an app with no network access. DoseTrack asks for exactly one permission, WRITE_HYDRATION, and never reads.

  • The switch is off by default; the permission is requested only when the user turns it on.
  • Each water entry gets a stable client record ID (dosetrack-water-<rowId>), so an edit in DoseTrack updates the same record and a delete removes it.
  • The app keeps a small map of what it wrote (ID to time and volume). A pure function compares it with the local log and returns the upserts and deletes, which makes the sync easy to unit-test.
  • Every change to the water table is observed with a Flow, debounced and synced. A failure never blocks logging water; the next change retries.
  • "Delete all local data" also removes the copies in Health Connect.

The AppGallery build has no Health Connect at all: the store is a Gradle product flavor, and the Huawei flavor gets a no-op implementation.

Links

Feedback and bug reports are welcome in the comments.