Hospitals have the worst signal in the building
When HealthStream asked us to build their patient tracking app, the brief was clear about features: secure login, patient lists, observations, medication checks and handoff notes for nurses and care teams. What the brief did not mention, because nobody thought to write it down, was where the app would actually be used.
The answer turned out to be everywhere connectivity is poor. Basement wards with thick concrete walls. Lifts between floors. Rural clinics and community visits where the nearest strong signal is a drive away. Even in modern hospitals, Wi-Fi coverage varies wildly between wings, and many devices hop between networks as staff move around.
An app that spins a loading indicator whenever the signal drops is an app clinicians stop trusting, and an app they stop trusting is one they stop using. So the most important design decision on the project was not visual at all. It was to build HealthStream offline-first.
The connectivity gap is real, and it is rural
Poor connectivity is not just an inconvenience inside buildings. It is a structural reality across much of the country. The Federal Communications Commission’s 2024 broadband deployment report found that roughly 24 million Americans lacked access to fixed broadband at the 100/20 Mbps benchmark, including almost 28 percent of Americans in rural areas and more than 23 percent of people on Tribal lands.
Mobile coverage tells a similar story. In its 2026 report, using June 2025 data, the FCC found that around 99 percent of urban Americans had access to both fast fixed service and 5G mobile service, compared with roughly 71 percent of Americans in rural areas. More than 9 million rural Americans still lacked access to fixed terrestrial service at 100/20 Mbps when satellite is excluded.
For healthcare, those numbers matter. Rural hospitals, home health teams, community nurses and mobile clinics serve exactly the populations most likely to have patchy coverage. Software that assumes a constant, fast connection quietly fails the people who most need it to work.
“Hospitals have the worst Wi-Fi in the building. Design for that, not for the office.”
What offline-first actually means
Offline-first is a design approach where the app treats the device as the primary place data lives, and the network as a way to synchronize it, rather than the other way round. Every screen reads from a local database first. Every change is written locally first. Synchronization with the server happens in the background whenever a connection is available.
This is different from an app that simply caches a few screens. In a cache-based app, the network is still the source of truth, and the app shows stale data or an error when it cannot reach the server. In an offline-first app, the user can keep working normally without a connection, and the app reconciles changes later.
For clinicians, the difference is night and day. They can open a patient record in a lift, log observations in a basement ward and write a handoff note in a rural clinic, and the app behaves the same way every time. When the device reconnects, changes flow to the server, and updates from colleagues flow back.
- Every screen reads from a local database first
- Every change is saved locally, then queued for sync
- Sync runs in the background and resumes after interruptions
- Users always see the sync status of the data in front of them
The hard part is conflicts
Storing data locally is the easy part of offline-first. The hard part is what happens when two people change the same thing while one or both of them are offline. A nurse updates a patient’s observations on a ward with no signal, while a colleague at the nursing station updates the same patient’s care plan. When the first device reconnects, the system has to decide what the truth is.
There is no universal answer, and that is the key lesson. Conflict rules are clinical decisions, not technical ones. We spent time in Discovery with nurses, doctors and clinical safety officers working through scenarios one by one. Should the most recent observation win? Should both be kept and shown in sequence? Should certain fields, such as allergies or do-not-resuscitate status, always require a person to resolve any conflict explicitly?
The answers varied by data type. Observations, which are time-stamped measurements, are naturally additive, so we keep every one. Free-text notes are appended with authorship and time. Critical fields such as allergies and resuscitation status never merge silently: any conflict raises an alert and requires a clinician to confirm the correct value. Writing those rules down with clinicians, rather than guessing, was the single most valuable thing we did on the project.
Security when the data lives on the device
Storing patient data on a mobile device raises obvious security questions. In the United States, health information handled by covered entities and their business associates is protected under HIPAA, including the Security Rule’s requirements for administrative, physical and technical safeguards for electronic protected health information. Our design had to meet those requirements on devices that could be lost, shared or stolen.
We used several layers. All local data is encrypted at rest using the platform’s secure storage, with keys protected by the device’s hardware security features. Access requires biometric unlock or a passcode, with short timeouts on shared devices. Only the patients a clinician is currently responsible for are synchronized to their device, which limits exposure if a device is lost. Remote wipe is supported through the hospital’s device management system. And every access and change is logged for audit, including actions taken offline, which sync with their original timestamps.
Biometric login turned out to be as much a usability feature as a security one. Clinicians unlock devices dozens of times per shift. A fast, reliable biometric unlock removed one of the biggest daily frustrations of the old system, and it made strong security the path of least resistance.
Designing for busy hands and short attention
Clinicians do not use software the way office workers do. They use it standing up, often with gloves, between tasks, with interruptions every few seconds. A flow that seems simple in a design review can become frustrating at the end of a twelve-hour shift.
We observed shifts in person before designing screens, and the findings shaped everything. Tap targets are large and well spaced. The most common actions, such as logging a set of observations, take a handful of taps from the patient list. Forms remember sensible defaults and validate as you go, so errors are caught immediately rather than at submission. Sync status is visible on every record with a simple indicator, so nobody has to wonder whether a change has reached the server.
We also designed for interruption. If a nurse is called away mid-entry, the app saves a draft automatically and returns to it on the next unlock. Nothing is lost because someone had to respond to an alarm.
Testing in the real world
Simulators lie. They run on powerful laptops with perfect networks, and they never get dropped, run out of battery or lose signal halfway through a sync. Most of the bugs that matter in an offline-first app only appear in conditions that are hard to reproduce at a desk.
So we tested where the app would be used. We ran sessions on older Android phones and iPads that hospitals actually issue, not just current flagship devices. We tested in airplane mode, in lifts, in basement corridors and on rural roads. We pulled network connections mid-sync, killed the app during writes and let batteries drain to a few percent. We ran long sessions to catch memory leaks and slow-downs that only appear after hours of use.
That is where the real bugs were: a sync that silently stalled after a particular sequence of network changes, a draft that was lost when the app was killed at a specific moment, a list that became sluggish after a full shift of updates. Each was fixed and turned into an automated test so it could not return.
- Test on the devices staff actually carry, including older models
- Interrupt sync deliberately and often
- Kill the app mid-write and confirm nothing is lost
- Run full-shift sessions to catch slow-downs
One codebase, two platforms
HealthStream needed the app on both iOS and Android, since different hospitals issue different devices and many clinicians use their own. We built it with a cross-platform framework, sharing most of the code between the two platforms while using native modules where it mattered: secure storage, biometric unlock, background sync and push notifications.
This let a single team ship both platforms together, with the same features and the same release schedule. It also kept the offline sync engine in one place, which mattered because sync logic is exactly the kind of code where two separate implementations would drift apart and cause subtle bugs.
Rolling out safely
Clinical software cannot be launched with a big bang. We rolled HealthStream out ward by ward, starting with a single unit whose staff had been involved in testing. For the first weeks, the new app ran alongside the existing process so clinicians could fall back if anything went wrong. We held short daily check-ins with ward leads, fixed issues quickly and shipped updates weekly.
Only once each ward was confident did we retire the old process there and move to the next. This slower rollout built trust, surfaced issues in a controlled way and gave us a growing group of clinicians who could help their colleagues on new wards.
The result
HealthStream launched on iOS and Android together. Clinicians now log patient checks in seconds, with or without a signal, and the app behaves the same way in a basement ward as it does at the nursing station. Handoff notes are complete and time-stamped, and conflicts on critical fields are always resolved by a person rather than by an algorithm.
Just as important, staff trust it. The most common feedback from ward leads was not about any particular feature. It was that the app simply worked, everywhere they needed it to.
The sync engine, explained simply
At the heart of any offline-first app is a sync engine: the code that moves changes between the device and the server. It is worth understanding at a high level, because most of the reliability of the app depends on it.
Every change a user makes is written to the local database and recorded in an outbox: a durable list of pending changes, each with a unique identifier, a timestamp and the identity of the person who made it. When a connection is available, the sync engine sends outbox items to the server in order. The server validates each one, applies it, records the result and returns any changes made by other people since the device last synced. The device applies those incoming changes locally and removes confirmed items from its outbox.
Because every change has a unique identifier, retries are safe. If a connection drops halfway through a sync, the device simply sends the same items again, and the server recognizes the ones it has already applied. Nothing is duplicated and nothing is lost. That property, called idempotency, is the single most important technical requirement for reliable offline sync.
- Local database as the primary store
- Durable outbox of pending changes
- Unique IDs so retries never duplicate
- Server validates, applies and returns others’ changes
Handling time, clocks and order
Offline systems have a subtle problem with time. Device clocks drift, people travel across time zones and changes made offline may arrive at the server hours after they happened. For clinical records, the order of events matters: an observation recorded before a medication was given means something different from one recorded after.
We store both the time a change was made on the device and the time it was received by the server, and we use the device time for clinical ordering while flagging any change whose device clock looks unreliable. Audit logs show both, so reviewers can always reconstruct what happened and when. This sounds like a detail, but in regulated environments it is the kind of detail that determines whether a system passes review.
Notifications and background work
Clinicians need to know about urgent changes even when the app is not open: a deteriorating patient, a new task or a message from a colleague. Push notifications handle the alert, but they cannot be relied on to deliver data, especially on poor connections. We use notifications to wake the app and trigger a sync, so the latest data is available by the time the clinician opens it.
Both iOS and Android limit how often apps can run in the background to protect battery life. We work within those limits by syncing opportunistically: when the app opens, when connectivity changes, after a user saves a change and at intervals the operating system allows. The result is an app that feels current without draining batteries over a long shift.
Accessibility and inclusive design in clinical apps
Healthcare staff are a diverse group, and clinical software must work for all of them: people with limited vision working night shifts, staff using the app in a second language, and clinicians with tremor or reduced dexterity. Accessibility is not an afterthought in this context. It is a safety issue.
We follow the Web Content Accessibility Guidelines and platform accessibility standards throughout the app. Text scales with system settings without breaking layouts. Color is never the only way information is conveyed, so a critical alert is marked with an icon and text as well as red. Screen readers announce every control clearly. And high-contrast themes are available for low-light wards, which also helped reduce eye strain on night shifts.
What we would do the same, and differently
Looking back, the decisions that mattered most were made early: committing to offline-first from the first sprint, writing conflict rules with clinicians and testing on real devices in real places. If we started again, we would make all of them again.
What we would do differently is involve the hospital’s device management and security teams even earlier. Some of the most time-consuming work on the project involved fitting the app into existing policies for device enrollment, remote wipe and certificate management. Those policies were sensible, but discovering them late cost time. On every offline-first project since, we bring those teams into Discovery from day one.
We would also invest earlier in observability for the sync engine. Being able to see, across the whole fleet of devices, how long changes wait in outboxes, how often syncs retry and where conflicts arise turned out to be invaluable for diagnosing field issues. We built that dashboard partway through the project. Now we build it first.
Beyond healthcare: where offline-first pays off
Since HealthStream, we have applied the same approach in very different settings. A logistics client’s drivers use an offline-first app to record deliveries and capture signatures in rural areas and inside large warehouses where signal disappears. A field services company’s engineers log inspections in basements, plant rooms and remote sites. A retail client’s store staff count stock in back rooms with poor Wi-Fi.
The details differ, but the pattern holds. Work happens where connectivity is worst, the cost of a lost record is high and the people using the app have no time for spinners. In each case, the investment in a local-first design, a robust sync engine and careful conflict rules has paid for itself in adoption and data quality. The FCC’s data on rural coverage suggests the need will not disappear soon, even as networks improve.
If your users ever work away from a desk, it is worth asking a simple question during design: what should this app do when the network is gone? If the answer is that it should keep working, offline-first is the way to get there.
Cost and timeline, honestly
Offline-first does take more effort than a simple online app, and clients deserve a straight answer about how much. In our experience, the additional work is concentrated in three places: the sync engine and outbox, the conflict rules and their interfaces, and the testing needed to prove reliability in poor conditions. On a typical project, those add a meaningful share to the build, most of it in the first few sprints.
What clients get in return is an app that keeps working when it matters most, far fewer support calls about lost data and much higher adoption among field staff. For HealthStream, the alternative was an app clinicians would have abandoned on the first ward with bad signal. Measured against that, the extra investment was small. We include offline-first work explicitly in the fixed-price scope so the trade-off is visible from the start.
Lessons for any offline-first app
Healthcare is an extreme case, but the lessons apply to any app used in the field: logistics drivers, field engineers, inspectors, sales reps, delivery couriers and anyone who works away from a desk. Assume the network will fail at the worst moment. Make the device the primary store. Decide conflict rules with the people who do the work. Secure data on the device as carefully as on the server. And test in the places your users actually go.
Offline-first takes more design and engineering effort up front than a simple online app. In our experience, it pays that back many times over in reliability, adoption and trust, especially for the users who live and work beyond the reach of a perfect signal.
If you are planning an app for people who work in the field, in clinics, in warehouses or anywhere the signal cannot be trusted, we would be glad to share what we have learned. The earlier offline-first is part of the plan, the cheaper and more reliable it is to build, and the more your users will trust the app from the very first day they pick it up. That trust, once earned in the hardest conditions, is the most valuable feature any field app can have.
Written by Robert PriceCEO of Codnit. Has shipped software for startups and enterprises across fintech, healthcare and retail. 