// Capabilities

Native Apps

Last updated ·

EOXLABS builds native apps for iOS, Android, macOS, Windows and Linux with two tools from its published stack: Swift for apps that need the deepest integration with Apple platforms, and Tauri 2 for one codebase that ships to desktop and mobile. Every app talks to the same backend at the edge as the web product.

How do web and native apps share one backend at the edge?

The backend is a set of Cloudflare Workers that expose one versioned API. The web product, the desktop app and the phone app are all clients of that API, and none of them holds business rules the others lack.

The web product runs SvelteKit on Workers with server rendering. A Tauri app can reuse the same Svelte components, but it can't run the server half: Tauri's own guide says to use SvelteKit's static adapter with SSR disabled, because Tauri doesn't support server-based solutions. EOXLABS treats that constraint as a design rule. Anything that needs a server lives in the Workers API, where every client reaches it the same way. A Swift app shares less code, typically the API contract and the validation rules, but it calls the same endpoints.

The request path is identical for every client:

  1. The app sends a request with a short-lived token to the nearest Cloudflare location.
  2. A Worker verifies the token and the caller's permissions before anything else runs.
  3. The Worker reads or writes through Durable Objects, D1 or Postgres, depending on the data.
  4. Live updates return over a WebSocket held by a Durable Object, the same one the web product listens to.

One consequence shapes the API more than any other. A web deploy updates every user at once. An installed app updates when its user lets it. Old app versions keep calling the API for weeks or months, so EOXLABS versions the API explicitly and removes an endpoint only after the versions that call it are gone.

Swift, Tauri 2 or the web: which should a product use?

QuestionSwiftTauri 2Web app only
Which platforms?Apple platformsLinux, macOS, Windows, Android and iOS from a single codebaseAny modern browser
How is the interface drawn?Native Apple UI frameworksWeb UI in the system WebViewWeb UI in the browser
How does it reach the device?Apple's frameworks directlyRust commands and plugins, restricted by the app's capabilitiesBrowser APIs only
What is shared with the web product?The API contract and data rulesUI components and most front-end codeEverything
Best whenThe product lives on iPhone, iPad or Mac and must feel native thereOne team must ship on several platformsUsers work at a desk and an install is friction

The trade-off is reach against fidelity. Tauri 2 puts one team on every platform. A Swift app built on Apple's frameworks gives the closest fit on Apple devices and stays there. A product can use both: Tauri for desktop and Android, Swift for iOS, all on the same backend.

When should a product add native apps?

  • Users need the product where a browser is awkward: in the field without coverage, at a workstation that stays open all day, beside a patient.
  • The app needs the device: local files, background work, hardware, system notifications.
  • The web product already works, and the team wants native clients without building a second backend.
  • Desktop users ask for a window they can keep open, with keyboard shortcuts and offline access.

How does EOXLABS build a native app?

  1. Fix the API contract first. The contract is typed, versioned and written down, with a deprecation policy that accounts for installed versions.
  2. Choose the shell per platform. The table above decides it, and the decision is recorded with its reason.
  3. Share what can be shared. Tauri apps reuse the web product's components. Swift apps share the data model and validation rules through the API contract.
  4. Lock down the shell. Tauri's capabilities system defines which permissions each window or webview receives, and by default its API is only available to code bundled with the app. Custom Rust commands are open to every window unless the app restricts them, so EOXLABS restricts them and grants each window the minimum. In every app, secrets stay out of the bundle; the app holds only short-lived tokens that the edge verifies.
  5. Design for no network. Each screen states what works offline, what queues for later, and how a conflict resolves when the device reconnects. A Durable Object per account is a natural single point of truth for that sync.
  6. Prepare for store review. Apple's App Review Guideline 4.2 asks that an app "include features, content, and UI that elevate it beyond a repackaged website." A Tauri build for iOS has to earn its place on that standard, so the plan names what the app does that the website can't.

What does the client receive?

  • Source for each app and the shared API client, kept with the backend so a change to one is reviewed against the other.
  • The API contract and its versioning and deprecation policy.
  • A permission manifest for each app: what it can access on the device, and why.
  • Build and signing documentation for each platform, with signing credentials held in the client's own developer accounts.
  • A release checklist for each store, and a test matrix of the operating system versions the app supports.

When aren't Swift or Tauri the right fit?

  • The Android app must have a fully native interface written in Kotlin. That is outside the stack EOXLABS publishes. Tauri 2 on Android draws its interface with web technology in the system WebView.
  • The app is a game, or depends on heavy 3D or augmented reality. A game engine is the better tool.
  • The app would only wrap the website. Apple's guideline above makes that hard to ship on iOS, and a responsive web app costs less.
  • The work is firmware or device drivers. That belongs with embedded specialists.

What else connects to a native app?

Native apps are usually one part of a new product build. Their live features depend on real-time and voice systems, and the edge backend they share is the subject of edge architecture. The capabilities overview shows how these combine.

The stack pages on Swift, Tauri, Rust and SvelteKit cover each tool. The engineering note on a real-time inbox with WebSocket hibernation shows how one Durable Object can serve web and native clients alike.

Native clients matter most where work happens away from a desk. The pages on dental technology, agriculture and hospitality and membership describe those settings.

→

Related

+

More capabilities

Have a system that can’t go dark?

Start a project →