Stand with Ukraine flag
Pricing Try it now
PE Mobile Application
Documentation > Publish your app
Getting Started
On this page

Build and release ThingsBoard PE Mobile Application

Doc info icon

Important Notice: Please use this guide for pre 1.7.x app publish instructions

Configure the App

Your app package name and app name will come preconfigured from your Mobile Center in the configuration file that you downloaded after app bundle creation in the Mobile Center.

If you need to change some settings, we recommend updating them in the Mobile Center and redownloading the configuration file from the Mobile Center. This ensures consistency and prevents configuration conflicts.

image

Doc info icon

Note: Always use the Mobile Center to manage your app configuration rather than manually editing configuration files. This approach ensures all settings remain synchronized and reduces the risk of errors.

Build and Release an IOS Version

When preparing a release version of your app for publishing on the App Store and TestFlight, follow the official “Build and release an IOS app” guide.

Doc info icon

Important Notice: While preparing the app for release, for example, when producing a build archive, you must provide the --no-tree-shake-icons flag to your build command as well as the --dart-define-from-file flag with your config file:

1
flutter build ipa --no-tree-shake-icons --dart-define-from-file configs.json

Build and Release an Android Version

When preparing a release version of your app for publishing on Google Play, follow the official “Build and release an Android app” guide.

Doc info icon

Important Notice: While preparing the app for release, for example, when producing a build archive, you must provide the --no-tree-shake-icons flag to your build command as well as the --dart-define-from-file flag with your config file:

1
flutter build appbundle --no-tree-shake-icons --dart-define-from-file configs.json

Build Commands Explanation

--no-tree-shake-icons: This flag prevents Flutter from removing unused icons during the build process, this will allow mobile app to display any icon, that was set to notification in the notification center.

--dart-define-from-file configs.json: This flag loads your app configuration from the JSON file downloaded from the Mobile Center, ensuring your app uses the correct settings for production.