No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
brian 34a06bcba1
All checks were successful
Build Android APK / build-apk (push) Successful in 4m11s
Merge pull request 'Chart patches across the time they're worn' (#14) from chart-patch-wear into master
Reviewed-on: #14
2026-10-27 15:48:39 +00:00
.claude Add tests 2026-05-29 23:05:33 -06:00
.forgejo/workflows Move the server to medsync-server; keep the Android app here 2026-10-03 00:36:43 -06:00
.idea initial working medsync 2026-05-27 09:05:25 -06:00
android Chart patches across the time they're worn 2026-10-27 09:48:13 -06:00
.gitignore Move the server to medsync-server; keep the Android app here 2026-10-03 00:36:43 -06:00
README.md Move the server to medsync-server; keep the Android app here 2026-10-03 00:36:43 -06:00

MedSync — Android app

A native Kotlin/Compose client for MedSync, a self-hosted medication tracker.

The server — the API, the web app (PWA) and the Borg backup agent — and its deployment live in a separate repository, brian/medsync-server. This app is a client of that server's API (/api); a change there that affects the API may need a matching change here, and the other way round.

The app

The app lives in android/. It mirrors the web UI and keeps working without a connection: cached medications, groups and history stay readable, and doses, edits, pauses and group logs queue locally and replay in order once the server is reachable again — including after the app is closed.

cd android
./gradlew assembleRelease
adb install -r app/build/outputs/apk/release/app-release.apk

CI builds it too: .forgejo/workflows/build-android.yaml uploads the APK as an artifact on every push, and attaches it to a release for v* tags.

It also raises dose reminders on the phone itself, scheduled from the cached schedule rather than pushed from the server — so they still fire when the server is unreachable, and each one can log the dose straight from the notification. SMS and ntfy remain available alongside them.

On first launch enter the same address you use in a browser. Admin and OIDC sign-in are web-only — see the Android README for why, and for what queues offline.

Or: the web app as a PWA

The web app medsync-server serves can be installed on Android too, sharing the same account and data:

  1. Open Chrome on Android and navigate to your server URL
  2. Tap the ⋮ menu → "Add to Home screen"
  3. The app installs like a native app with push notification support
  4. First launch: tap Enable Notifications in the app settings

Repository layout

android/                  the app (Gradle project) — see android/README.md
  app/src/main/java/com/medsync/android/
    data/                 API client, offline cache, outbox, sync
    ui/                   theme, screens
.forgejo/workflows/build-android.yaml   APK artifact on every push; a release on v* tags

The server-side code that used to live here (the original backend, the web app, the Borg agent and the Docker deployment) moved to medsync-server, which has the current versions; this repository's history still has the old ones.