XenForo Flutter app: one codebase, two native stores

Editorial illustration for Flutter for a XenForo app: one codebase, two native stores

A XenForo Flutter app is a forum app written once in Flutter, Google’s open-source UI toolkit, and compiled into separate native apps for iPhone and Android. It draws its own screens instead of loading your web theme and reads forum content through the XenForo API, so both stores can get the same features in the same release.

Is a Flutter app native?

In the way members feel it, yes. Flutter release builds compile Dart code ahead of time into native ARM libraries, and the interface is drawn by Flutter’s own rendering engine, Impeller, which is the default on iOS and on Android API 29 and newer. No web page is loaded to show a thread list or a post.

Flutter works more like a game engine than a browser: lists, buttons, transitions and text are part of the app binary. On older Android devices without Vulkan support, Flutter falls back to its OpenGL renderer, and the app still draws its own screens.

How is a Flutter app different from a WebView wrapper?

A wrapper is a thin app shell around a browser, so its interface is your website. A Flutter app ships its interface as compiled code: the thread list, the editor and the settings exist inside the app, and only content travels over the network. Flutter can still embed a web view where it makes sense, such as for a video.

If you are comparing apps from different vendors, the seven native-or-WebView checks work on any of them, whatever framework the vendor names.

Why does one codebase matter for a forum app?

A community app is never finished. XenForo changes, your forum adds features and members report small bugs. With separate iOS and Android codebases, every change is written twice and the two apps drift apart. With one Flutter codebase, a fix is written once and shipped to both stores, so members on different phones use the same app.

XFMobile’s iOS and Android apps come from one Flutter codebase. Each customer still receives a separate build under their own app name, icon and developer accounts, so the shared code never means a shared store listing.

Not every change needs a build. Supported visual and navigation settings, managed on the App appearance page and in the app options in Suite, are stored on your forum. The app reads them at start-up, and when an administrator saves a change, a silent push tells installed apps to refresh their settings.

Which features still need native platform code?

Anything the operating system owns. Push notifications, the Face ID or fingerprint prompt, secure token storage, home-screen widgets, photo pickers and the share sheet all run through plugins that contain native iOS and Android code. Flutter shares the interface and the forum logic; platform code handles the parts of the phone that each system controls.

This is how the split looks in our own app:

Feature How the Flutter app reaches it Platforms
Push notifications Firebase Cloud Messaging, through Apple’s push service on iPhone iOS and Android
Biometric unlock The system Face ID, Touch ID or fingerprint prompt iOS and Android
Sign-in token storage iPhone Keychain; on Android, encrypted storage with a key held in the Keystore iOS and Android
Home-screen thread widget An Android widget written in Kotlin, fed by the Flutter app Android only
Photos, files and sharing The standard system pickers and share sheet iOS and Android

The first two rows have their own articles: how Firebase delivers forum alerts and how biometric unlock stays on the device.

What are the trade-offs of Flutter for a forum app?

Two are worth knowing. A Flutter app bundles its rendering engine, so the download is larger than the smallest possible native app. And each platform has its own habits, such as the iPhone edge swipe for back and the Android system back gesture, so a careful app respects both instead of forcing one design everywhere.

Frequently asked questions

Is Flutter good for a forum app?

It suits forum apps well. Most forum screens are lists, text and images, which Flutter draws with its own engine, and one codebase keeps the iPhone and Android apps in step. The weak spots are platform-only features such as home-screen widgets, which still need native code written separately for each system.

Do Flutter apps pass App Store review?

Yes. Apple and Google review what an app does, not which framework built it, and Flutter apps are published on both stores. Review looks at the same things for any forum app, which the guideline 4.2 article on this site walks through: features beyond a repackaged website, moderation and account deletion.

Is Flutter the same as React Native?

No. Both build iOS and Android apps from one codebase, but React Native drives the platform’s own interface components from JavaScript, while Flutter compiles Dart ahead of time and draws every pixel with its own engine. Either can feel native to members, and neither loads your web theme to show a thread.

Does a Flutter app work offline?

The app itself does. Its screens are compiled into the build, so menus and settings open without a connection. Forum content is another matter: it has to be saved on the phone first. XFMobile does that with an offline library, where members download a forum section or a thread to read later.

Sources & further reading

← All articles