Skip to content
Two hands, each holding a different smartphone

Native or cross-platform app: which to choose and when

Kotlin and Swift, Flutter, React Native or a web app. How they differ, when each one makes sense and what happens to phone features. With an example from our own project.

Before the first screen of an app is designed, someone has to decide how it will be built. That choice drives the cost, the time to a first release and the effort of keeping the app running for years. Changing it halfway through usually means rewriting much of the code.

Below are the four routes companies take today and the situations each one suits. At the end we show how it worked in our own app that reads the phone's sensors.

The four routes at a glance

Route Technology What you get
Native app Kotlin and Jetpack Compose on Android, Swift and SwiftUI on iOS two separate apps, each built with the platform owner’s tools
Cross-platform app Flutter or React Native one app from one codebase, released on Android and iOS
Shared logic, separate screens Kotlin Multiplatform shared calculations and data, with a shared or a per-platform interface
Web app (PWA) HTML, CSS and JavaScript a website that can be installed on phones and computers

Any of these can produce a good app. The difference is how much code you write twice and how close you are to the phone’s operating system.

Native apps: Kotlin and Swift

A native app is written in the language and tools the platform owner recommends. Google says its libraries, samples and documentation are designed Kotlin-first, and calls Jetpack Compose its recommended toolkit for building native UI on Android. Apple presents Swift as the language for all its platforms and SwiftUI as the way to build the interface.

You get direct access to everything the system offers. The price is two apps. Every feature is written and tested once for Android and once for iOS, and you need people who know both platforms.

This route makes sense when:

  • the app runs on one platform only, such as an internal tool for company Android phones,
  • most of the code would be native anyway, because the app has few screens and mainly works with system features such as the camera, Bluetooth or background tasks,
  • you have the budget and the people for two parallel projects.

Cross-platform apps: Flutter and React Native

Here one codebase ships to Android and iOS. Screens, logic and tests are written once. Flutter also targets desktop and the browser. React Native is a framework for building Android and iOS apps with React, and at runtime it creates the platforms’ own views. Since version 0.76, React Native’s New Architecture is enabled by default in every project.

Sharing code does not cut you off from the phone. When no library does the job, part of the app is written natively and connected to the rest. For new projects, the Flutter documentation recommends tools that generate this connection, such as Pigeon, so the Flutter code and the native code share the same data types. React Native uses native modules for the same purpose.

This route makes sense when:

  • the app should work the same on Android and iOS,
  • one team will build and maintain all of it,
  • most of the work is screens, forms, accounts, payments and talking to a server rather than deep work with the system.

The choice between Flutter and React Native often comes down to the team. React Native is a natural fit for a company that already has React and JavaScript developers. Flutter uses the Dart language and its own set of components.

Shared logic, separate screens: Kotlin Multiplatform

This is the middle way. Calculations, data and server communication are written once in Kotlin. The screens can stay native on each platform or be shared with Compose Multiplatform. According to JetBrains, Compose Multiplatform is stable for Android, iOS and desktop, while the web target is in beta.

It suits companies in particular that already have an Android app in Kotlin and want to add iOS without writing the logic a second time.

Web apps: when you do not need an app store

A web app, or PWA (progressive web app), is a website that can be installed. MDN explains that, like a website, it runs on many devices from one codebase, and, like a platform-specific app, it can be installed and work offline and in the background. It needs no release on Google Play or the App Store, and every change reaches users straight away.

It also has limits worth knowing before you decide:

  • Notifications on iPhone. The WebKit team explains that since iOS 16.4 a web app can ask for permission to send notifications, but only once the user has added it to the Home Screen.
  • Data stored by the browser. web.dev notes that browsers can remove stored files when storage runs low or after some weeks of inactivity.
  • Phone features. Before you decide, check that the browsers on your users’ phones support the ones you need.

It works the other way too. An app that only shows a company’s website may not pass Apple’s review. Section 4.2 of the App Store guidelines asks for features, content and UI that go beyond a repackaged website. Section 4.2.2 adds that, apart from catalogues, an app should not be mainly marketing material, advertising or a collection of links. If what you need is your offer, prices and a form, a good website or a web app is often the better choice.

How it worked for us

We build our apps in Flutter. One of them is a utility app that turns the phone’s motion sensors into a measuring tool. Its readings come from our own native plugin, written in Kotlin on Android and in Swift on iOS. It uses the accelerometer, the gyroscope and the gravity sensor.

The connection between Flutter and the native code is generated, so both sides use the same types. The screens are shared by both platforms. The result depends on each phone’s sensors, which is why the app has a two-step calibration. The native code has its own unit tests, and the whole app is checked by tests on a real device. The project page has more about it.

The lesson is simple. Going cross-platform does not close the door to native code. We write natively only the part that needs it.

What to settle before you choose

  • Platforms. Android only, iOS only, both from the start, or the second one later.
  • Phone features. Which ones the first version cannot do without: camera, location, sensors, Bluetooth, notifications, working offline.
  • App stores. Whether the app has to be on Google Play and the App Store, or installing it from a website is enough.
  • Team and maintenance. Who will develop the app a year from now, and which technology they work in.
  • First version. What has to work at launch and what can wait.

These answers usually narrow the choice a lot. If your first release is on Google Play, our article on what to prepare before publishing will help too.

If you are planning an app and are unsure which route to take, tell us in a few sentences what it should do and which phones it should run on. We will suggest where to start and how much of it can share one codebase.

This article was written with the help of AI. We also used AI to compare its facts with the listed sources.

Sources

Tell us about your project

A few sentences are enough. We usually reply within 24–48 hours.

Contact us