Blog

    mHealth App Development Tech Stack: Framework, Offline Sync, Push, Backend and SDK Choices

    By GauravJune 23, 20269 mins read
    On this page

    Most mHealth stack debates start and end with one question: native or cross-platform. That choice matters, but the layers around it decide more of a health app's risk: where data waits when the phone is offline, what a notification reveals on a lock screen, which cloud services sit under a business associate agreement, and which SDKs see patient activity.

    This post walks the stack layer by layer and gives the questions that settle each choice, so a team can defend its stack to a security reviewer as well as to its developers.

    What goes into an mHealth app development tech stack?

    Choosing a stack for a health app?

    Our mobile team builds mHealth apps from the client framework to the cloud backend and release pipeline.

    An mHealth app development tech stack is the set of technologies a mobile health app runs on: the client framework, the on-device store and sync method, push delivery, identity, the backend and cloud host, and the analytics and crash tools. Agnotic Technologies chooses each layer by the health data it will touch.

    Each layer is a separate decision with its own criteria. A team can pick the right framework and still get the offline store, the push payloads or the analytics SDK wrong.

    Native, React Native or Flutter?

    Pick native when the app leans on platform features such as Bluetooth devices, background work or the operating system health stores. Pick a cross-platform framework when the app is mostly forms, lists and API calls, then let your current team's skills break the tie.

    Comparison of three mobile client options for a health app: native Swift and Kotlin, React Native with TypeScript, and Flutter with Dart, by codebases, platform access and best fit, with a lane listing the layers that stay the same whichever is chosen
    • Native, Swift and Kotlin: every platform API available on release day, two codebases, and two sets of specialists to hire and keep. Best for heavy Bluetooth, background work and health store use.
    • React Native, TypeScript: one codebase for most screens and a large JavaScript package ecosystem, with native modules where packages fall short. A good fit when a web team already writes TypeScript.
    • Flutter, Dart: one codebase with its own rendering, so screens look the same on both platforms, and platform channels to reach native APIs.
    • Hybrid: a cross-platform app with a few native modules for the features that need them.

    Whichever you choose, the layers below stay the same: an encrypted on-device store with platform-held keys, background sync, PHI-free push payloads and a backend under a BAA. Answer these questions before anyone writes a screen.

    • Device features: how many screens depend on Bluetooth, the camera, background location or health stores?
    • Existing team: does the team know TypeScript, Dart, or Swift and Kotlin today?
    • Web reuse: will a web portal share logic or components with the app?
    • Plugin health: are the packages for your hardest feature maintained, and who fixes them if not?
    • Accessibility: do the framework's components expose labels and focus order to screen readers on both platforms?

    Write the answers down, because a security reviewer or a new lead will ask why.

    Where should data live on the device?

    Data on the device belongs in an encrypted database whose key is held by the platform key store, and only as much of it as the app needs offline. Today's tasks and the medication list need to be there; years of history usually do not.

    • Store: SQLite-based storage, such as Room on Android, Core Data on iOS or a cross-platform SQLite package, with full-database encryption.
    • Keys: generated on the device and held in the iOS Keychain or Android Keystore, never in code or plain preferences.
    • Retention: a rule for how long records stay on the phone and what is wiped at sign-out.
    • Files: photos and documents in the app's private storage, excluded from device backups when they are sensitive.

    The OWASP MASVS is the industry standard for mobile app security, with control groups for storage, cryptography, authentication, network communication, platform interaction, code quality, resilience and privacy.

    How should offline sync work?

    Offline sync should save each change locally first, then upload it in the background with an idempotency key, so a retried upload is recognized and not stored twice. The server, not the last phone to connect, settles conflicts.

    Android's WorkManager stores scheduled work in an internal SQLite database so that the work persists and is rescheduled across app restarts and device reboots.

    iOS gives background work less room, because the system decides when background tasks run. Sync when the app opens as well, and show the user what is still waiting to upload.

    • Conflict rule: decided per record type, for example server wins for care plans and merge for symptom logs.
    • Ordering: uploads in creation order, so a deletion never arrives before the record it deletes.
    • Visibility: a small pending indicator, so a patient does not enter the same reading twice.

    Push notifications without PHI in the payload

    Push notifications travel through Apple Push Notification service or Firebase Cloud Messaging and show on lock screens, so the payload should hold no health details. Send a neutral alert and an identifier, and let the app fetch the content after sign-in.

    • Wording: "You have a new message from your care team" rather than a result, drug name or appointment type.
    • Payload: a message ID only, with the content loaded over an authenticated API call.
    • Silent pushes: useful to start a sync, but delivery is up to the operating system, so never the only path for important tasks.
    • Settings: users choose which reminders they get and how much detail appears.

    Identity and sign-in

    Use OpenID Connect with the authorization code flow and PKCE through the system browser, and keep tokens in the platform key store. Biometrics work well as a fast way back into a session, not as the identity itself.

    • Identity provider: a managed provider that signs a BAA if it stores health-related profile data, or the health system's own login for portal apps.
    • Tokens: short-lived access tokens, refresh tokens in the Keychain or Keystore, and revocation on the server.
    • Shared phones: quick sign-out and an app lock timeout for borrowed devices.

    What should the backend and cloud layer include?

    The backend should be an API you own, running on cloud services covered by the provider's business associate agreement. The phone talks only to that API, never straight to an EHR or database with stored keys.

    • Hosting: major cloud providers offer a BAA, but each covers a named list of eligible services, so check every service you deploy, including queues and logging.
    • API: REST or GraphQL with token checks, input validation and an audit log of who read and changed what.
    • Clinical data: a FHIR server, or a relational store with FHIR mappings, when EHR exchange is on the roadmap.
    • Files: encrypted object storage with short-lived signed URLs for uploads and downloads.

    How do you choose analytics and crash reporting SDKs?

    Choose analytics and crash tools by what they collect and where they send it, because an SDK inside the app can see what the patient sees. A marketing analytics SDK whose vendor will not sign a BAA should never receive health details or identifiers.

    Every app published on Google Play, including apps on closed, open or production testing tracks, must complete the Data safety form, even when it collects no user data.

    • Inventory: every SDK, what it collects and whether its vendor signs a BAA, kept in the repository.
    • Event design: names like "screen_viewed" with no condition, drug or result in names or properties.
    • Scrubbing: crash reports stripped of request bodies, user IDs and free text before they leave the device.
    • Self-hosting: product analytics in your own cloud account when events cannot be made PHI-free.

    What goes wrong with mHealth stack choices?

    Most stack mistakes surface after launch, when undoing them costs most.

    • Framework first: chosen on developer preference, before anyone checked the Bluetooth or health store plugin.
    • Plain storage: health data in unencrypted preferences or an unencrypted database.
    • Chatty pushes: result names or appointment types shown on a lock screen.
    • Default SDK settings: analytics capturing screen titles and search text that reveal conditions.
    • Phone to EHR: the app holding clinical system credentials and calling them directly.
    • Background hope: sync that only works if the operating system runs background tasks on time.

    A worked example: a post-surgery recovery app

    A surgical practice wants a recovery app with daily pain and wound photo check-ins, medication reminders and messages to the care team. The features are forms, a camera and notifications with no Bluetooth device, so the team picks React Native because its web portal already uses TypeScript.

    Check-ins and photos go into an encrypted SQLite store and upload through a background job with idempotency keys, and the app also syncs on open. Reminders say only "Time for today's check-in", and a message push carries an ID the app resolves after sign-in.

    The backend runs on BAA-covered cloud services and is the only system that talks to the practice's EHR. Crash reporting stays, with scrubbing, while the marketing analytics SDK first proposed is dropped because its vendor would not sign a BAA.

    Who owns each mHealth stack decision?

    Stack decisions span mobile, backend, security and compliance, so each needs a named owner.

    • Mobile lead: framework, on-device storage, sync and the SDK inventory.
    • Backend lead: the API, the cloud services list, audit logging and EHR connections.
    • Security lead: MASVS-based review, key handling and penetration test scope.
    • Product owner: notification wording, offline scope and which analytics questions are worth asking.
    • Compliance officer: BAAs for cloud, identity and any SDK that receives health data, plus store privacy disclosures.

    How do you test a health app stack?

    Test each layer against the failure it was chosen to prevent. Airplane-mode runs, lock screen checks and network captures catch more stack mistakes than unit tests do.

    • Offline: record data in airplane mode, close the app, reboot, reconnect and confirm nothing is lost or duplicated.
    • Lock screen: trigger every notification type and read what a stranger would see.
    • Network capture: proxy the app's traffic and confirm no SDK sends identifiers or health terms to third parties.
    • Storage: inspect the database and files on a test phone to confirm they are encrypted.
    • Store review: compare the Play Data safety form and App Store privacy details with what the capture showed.

    What are mHealth tech stack best practices?

    Choose the client framework from your hardest device features and your team's skills, keep data encrypted with platform-held keys, and sync through a background queue that survives restarts. Keep push payloads neutral and fetch content after sign-in.

    Put a BAA-covered backend between the phone and every clinical system, keep a written SDK inventory, and test offline, lock screen and network behavior before each release.

    How can Agnotic help choose and build an mHealth stack?

    Agnotic builds mHealth apps across the stack: native, React Native and Flutter clients, encrypted offline storage and sync, notification design, identity, BAA-covered backends and the SDK review that store submissions need. We document each stack decision so your security reviewers and future developers can see why it was made.

    Plan your mHealth stack with Agnotic

    We help you choose and build each layer, from the client framework to the cloud backend.

    Sources

    Frequently Asked Questions

    Neither wins in general. Choose by your hardest device features, how well the plugins for them are maintained, and the language your team already knows.

    Talk to an engineer about your project

    Share your feature list and target users. We will map a stack for each layer and the risks it addresses.