Change the Package Name
Give the Customer mobile app your own package name (Android) and bundle ID (iOS) before you connect Firebase and publish.
Google Play, the Apple App Store, and Firebase know your application by its unique package name (Android) and bundle ID (iOS).
One Mobile App: The Customer App
BookMyStay has only one mobile app: the Customer App (customer/), which runs on Android and iOS (and also builds as a responsive Web app). All hotel operations (branches, rooms, inventory, bookings, and front desk check-in) are managed via the web Admin Panel (admin_panel/). You do not need to configure branch or delivery mobile apps.
| Application | Folder | Default Identifier | Yours, for example |
|---|---|---|---|
| Customer App (Android & iOS) | customer/ |
com.bookmystay.customer |
com.yourhotel.customer or com.yourbrand.stay |
It can never change after you publish
Once an app is live on Google Play or the Apple App Store, its package name is permanently fixed. Choose carefully and keep it consistent between Android and iOS.
Android#
Open customer/android/app/build.gradle.kts and update the applicationId line:
defaultConfig {
applicationId = "com.yourhotel.customer"
minSdk = flutter.minSdkVersion
targetSdk = 36
versionCode = flutter.versionCode
versionName = flutter.versionName
}
That is all Google Play and Firebase require.
Optional: also change the namespace
The same file contains namespace = "com.bookmystay.customer". App store visitors never see it, so leaving it as-is is completely safe. If you wish to change it, update all three together to prevent compilation errors:
- Update
namespace = "com.yourhotel.customer"incustomer/android/app/build.gradle.kts. - Move
MainActivity.ktfromcustomer/android/app/src/main/kotlin/com/bookmystay/customer/intocustomer/android/app/src/main/kotlin/com/yourhotel/customer/. - Update the first line of
MainActivity.kttopackage com.yourhotel.customer.
iOS#
- Open
customer/ios/Runner.xcworkspacein Xcode. - Select Runner in the project navigator → target Runner → Signing & Capabilities.
- Set Bundle Identifier to your chosen ID (e.g.
com.yourhotel.customer). Ensure the All tab is highlighted so Debug, Release, and Profile configurations update simultaneously. - Select the RunnerTests target and set the same identifier ending in
.RunnerTests.
Open customer/ios/Runner.xcodeproj/project.pbxproj in VS Code or your text editor, and find and replace every occurrence of PRODUCT_BUNDLE_IDENTIFIER = com.bookmystay.customer with your new bundle ID (e.g. com.yourhotel.customer).
Do not alter the internal Dart package name
The name: customer line in customer/pubspec.yaml is an internal Dart import prefix. Do not change it, as it is referenced throughout the codebase and invisible to end users.
Next Step
Proceed to Connect with FlutterFire to automatically connect both admin_panel/ and customer/ to your Firebase project.