ThingsBoard App 2.0: One Open-Source IoT Mobile App
On this page
ThingsBoard App 2.0 brings the Community and Professional Edition mobile apps together in one open-source app for ThingsBoard 4.4 and ThingsBoard Cloud. It’s built with Flutter for iOS and Android, and you can use it as is or as the base of your own branded IoT mobile app.
Want to see it on your phone? The ThingsBoard Cloud app, built on ThingsBoard App 2.0, is available on Google Play and the App Store.
TL;DR
- One app for everyone. Community and Professional Edition users now get the same app, with all its features, from one open-source repository. One app →
- Safer sign-in. App data is kept in the device’s secure storage, two-factor authentication is clearer, and the app checks that it talks to a compatible server. Security →
- Dozens of fixes. Lists, alarms, dashboards, notifications, translations and landscape layouts get dozens of fixes, and the Android app is about a quarter smaller. What’s fixed →
- Requirements. App 2.0 needs ThingsBoard 4.4 or later, and users sign in once more after the update. Before you upgrade →
One app for ThingsBoard and ThingsBoard Cloud
Until now, there were two mobile apps: one for Community Edition and one for Professional Edition, each developed and released on its own.
Before 2.0, two apps:
From 2.0, one app:
ThingsBoard App 2.0 continues the former Professional Edition app, and its repository keeps the commit history. You can publish it under your own brand: the app’s code for white-labeling, OAuth 2.0, self-registration, push notifications, QR code login and device provisioning is now open to every ThingsBoard user. White-labeling of the ThingsBoard platform it connects to is covered by a Commercial License, as described in One ThingsBoard.
For teams that build their own branded app, there is now a single codebase to start from, flutter_thingsboard_app, under the BSD 3-Clause license. Every new fix and feature lands there.
The app runs on thingsboard_client 5.0, which now replaces the separate Community and Professional Edition Dart clients as well. It is generated from the ThingsBoard API specification, so it covers the whole API of ThingsBoard 4.4 and stays in step with the server. See the Dart API Client reference.
Safer sign-in, sessions and data
Some of these changes come from the app itself, others from thingsboard_client 5.0, the Dart client the app is built on. Your own Dart code gets the client’s protections too.
Secure storage
App data now lives in the device’s secure storage: Keychain on iOS and Keystore-encrypted storage on Android.
Compatible servers only
The app checks the server version at start-up and on every sign-in. On a server older than 4.4, it asks for a server update and keeps no session.
Clearer two-factor authentication
Each method is explained, the authenticator app opens in one tap, backup codes are suggested after setup, and a rejected code always says why.
Expired sessions handled cleanly
When a session is revoked elsewhere, for example after a password change, the app shows one clear “Session has expired” message and returns to the login page.
Safer QR codes
A QR code that points to a server that doesn’t answer or isn’t ThingsBoard no longer switches the app to it. The app explains why and stays on the current server.
Fewer outside requests
The app font ships with the app instead of being downloaded from Google at run time.
No stale sessions
A token refresh that finishes after logout or a new login is dropped, so an old session can’t overwrite the current one.
Credentials masked in logs
With debug logging on, the client hides authorization headers, QR login secrets, and any password, token or secret in requests.
What’s fixed
App 2.0 fixes dozens of issues reported in earlier versions. In short:
Lists and alarms
Entity lists sort again, alarm details link to their dashboard, and alarm status updates without a pull to refresh.
Dashboards and notifications
The default dashboard opens after sign-in, dashboards reopen after the app returns from the background, and push notifications open the right dashboard.
Navigation
Back returns where you expect, pages opened from the menu have a way back, and iOS supports the edge swipe.
Languages
The profile language applies across the whole app, Arabic gets a fully mirrored layout, and screens that were left in English are translated.
Every screen size
Pages scroll in landscape and on foldable cover screens, stay clear of the camera cutout, and handle large text.
Sign-up and errors
Self-registration works with reCAPTCHA, device claiming reports success again, and errors are clear and translated.
See the GitHub release notes for the full list.
Before you upgrade
- Server version. App 2.0 needs ThingsBoard 4.4 or later. For an older server, use the 1.x app version from the compatibility matrix.
- One more sign-in. Because app data moved to secure storage, users sign in once more and choose their region or server again after updating from 1.x.
How do you get started?
Step 1: Upgrade the server
Move to ThingsBoard 4.4 with the upgrade instructions, or use ThingsBoard Cloud.
Step 2: Get the code
Clone flutter_thingsboard_app, check out v2.0.0, and follow Getting started.
Step 3: Brand and publish
Add your white-labeling, then build and release the app under your name.
Build your IoT mobile app on ThingsBoard App 2.0