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.
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.
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.
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.