Overview
Smart Booking Mobile Apps are two Android apps for the Smart Booking SaaS appointment website: Smart Booking for customers and Smart Booking Business for owners and their staff. The super admin keeps using the website. The apps talk only to your website, so all data stays on your server.
What is in the packages
| App | Package file | Folder inside | ID | For |
|---|---|---|---|---|
| Smart Booking | smart-booking-customer-android-v1.0.0.zip | android_app/ | com.smartbooking.sb_customer | Customers |
| Smart Booking Business | smart-booking-business-android-v1.0.0.zip | android_app/ | com.smartbooking.sb_business | Owners and staff |
android_app. Unzip them into two separate folders, for example customer_app/ and business_app/.Inside each folder
| Folder / file | What it is |
|---|---|
lib/ | The source code (Flutter / Dart): api/, state/, util/, screens/, widgets/. |
android/ | The Android project, already set up (name, icon, permissions, signing hooks). |
assets/ | icon.png and icon_foreground.png (app icon). |
test/, tool/ | Automated screen tests and the script that draws store screenshots. |
docs/ | openapi.yaml (the website API) and screenshots/. |
pubspec.yaml | App version and the list of libraries. |
documentation/ | This guide. |
Features
Smart Booking (customers)
| Area | What the customer can do |
|---|---|
| Home | Next visit, quick booking, visits to review, amount still to pay. |
| Booking | Services, a person or anyone, a day and only the times that are free; notes; waitlist when a day is full. |
| My bookings | Upcoming and past; reschedule, cancel and review (when allowed). |
| Services | What the business offers, with length and price. |
| Account | Contact the business (call, email, directions), edit details, change password, delete account. |
Smart Booking Business (owners and staff)
| Area | What they can do |
|---|---|
| Home | Today's bookings, next 7 days, items needing attention; figures and money for those allowed to see them. |
| Calendar | Day view, filter by person; approve, complete, move or cancel. |
| Customers | Search, history, add a customer, book for them. |
| Owner tools | Team, holidays and time off, website enquiries, reviews. |
| AI assistant | Uses the owner's own AI key set up on the website. |
| Staff | Sees only their own bookings. Buttons follow their website permissions. |
Common to both
- Email and password sign-in, two-factor code, fingerprint / face or phone PIN lock.
- The business's title, colour and logo after sign-in.
- Inbox with unread badge; push notifications when Firebase is set up.
Not included: online payment inside the apps, offline use, and languages other than English for the app screens.
Requirements
Your computer
| Item | Needed |
|---|---|
| System | Windows, macOS or Linux |
| Flutter SDK | Stable channel with Dart 3.13.5 or newer (sdk: ^3.13.5 in pubspec.yaml) |
| Android Studio | With the Android SDK, platform tools and a recent JDK |
| Free disk space | About 10 GB or more |
Phones that can run the app
Android 7.0 (API 24) or newer.
Accounts
- Google Play Console developer account (one-time fee) to publish.
- Firebase project only if you want push notifications.
Website
Smart Booking SaaS v1.9 or newer on HTTPS, with the database updated (php artisan migrate).
Install Flutter & Android Studio
- Install Flutter from docs.flutter.dev and add it to your PATH.
- Install Android Studio and, in SDK Manager, the latest Android SDK, platform tools and command-line tools.
- Accept the licences and check everything:
The Flutter and Android lines should have green ticks.flutter doctor --android-licenses flutter doctor
Prepare the website
- Update the website to Smart Booking SaaS v1.9 or newer and run
php artisan migrate. - Make sure the site opens on HTTPS and
APP_URLin.envis the real address. - As owner, open Website & Marketing → Mobile App: set the app title, colour, logo, welcome text and help contacts.
- After you have published the apps, as super admin open Mobile Apps, paste the store links and switch each app Live. Owner websites then show the download buttons and QR code. Signing in does not need the apps to be live.
Open the project
The Android project is included. Unzip, then in each app folder:
cd android_app
flutter pub get
flutter testThe IDs are com.smartbooking.sb_customer and com.smartbooking.sb_business. Change them to your own before you publish; a store never lets you change them later.
android/app/build.gradle.kts:namespaceandapplicationId- the folder under
android/app/src/main/kotlin/and the package line inMainActivity.ktif you rename the package
Point the app at your website
Give your website address when you build. It is then fixed in the app: users never type it.
flutter run --dart-define=API_BASE_URL=https://your-domain.comAdd the folder if the website is not at the root, for example https://your-domain.com/booking.
API_BASE_URL. It would point at https://your-domain.com and could not sign in.Run on a phone or emulator
On a real phone
- On the phone open Settings → About phone, tap Build number seven times, then turn on USB debugging in Developer options.
- Connect it with a cable and allow the computer.
- Run
flutter devices, thenflutter runwith your address.
On the emulator
Create a device in Android Studio → Device Manager, start it, then run flutter run with your address.
Testing against a local website (http)
Debug builds allow plain http; release builds do not. From the emulator, your own computer is 10.0.2.2:
flutter run --dart-define=API_BASE_URL=http://10.0.2.2/your-folderA test APK to share
flutter build apk --release --dart-define=API_BASE_URL=https://your-domain.comThe file is build/app/outputs/flutter-apk/app-release.apk. Without your own signing key it is signed with a test key.
Branding
Changes that need no new build (from the website)
- App title, colour, logo and welcome text shown after sign-in.
- Help phone and email; whether customers see reviews and the waitlist.
- Download links, oldest allowed version, maintenance message, and switching the apps off for one business.
Changes in the code (then build again)
- Name under the icon:
android:labelinandroid/app/src/main/AndroidManifest.xml, andappNameinlib/config.dartfor the sign-in screen. - Icon: replace the pictures in
assets/and rundart run flutter_launcher_icons. - The name and icon on the home screen are the same for every business; each business's own look appears after sign-in.
Push notifications (Firebase)
Optional. Without it everything works and messages appear in the in-app inbox.
- Create a Firebase project and add an Android app with your package name.
- Download
google-services.jsonintoandroid/app/and build again. The build switches push on only when this file is there.
Website
In Firebase create a service-account key (JSON), save it on your server outside the web folder, and set in .env:
FCM_CREDENTIALS=/full/path/to/service-account.jsonWhen people are notified
A message is created for a new booking, a changed status or time, a newly assigned person, and (for owners) a new website enquiry. The person who made the change is not told.
AI features
The AI assistant is in the business app. It uses the owner's own AI service and key, set on the website under Settings → AI Settings. The key never goes into the app. The plan must include AI, there is a daily request limit, and the assistant only reads: it cannot change anything. The button is hidden when it is not available.
Signing key (keystore)
Google Play needs the app signed with your key. Create one and keep it and its passwords safe:
keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias uploadTell the build where the key is
Create android/key.properties (never share or commit it):
storeFile=/full/path/to/upload-keystore.jks
storePassword=...
keyAlias=upload
keyPassword=...Version numbers
Set the version in pubspec.yaml (version: 1.0.0+1: name + build number) and appVersion in lib/config.dart. Raise the build number for every upload. The website can require a minimum version.
Build the release
flutter build appbundle --release --dart-define=API_BASE_URL=https://your-domain.comThe file is build/app/outputs/bundle/release/app-release.aab.
org.gradle.jvmargs in android/gradle.properties (set to 3 GB).Publish on Google Play
- In Play Console create an app for each of the two apps.
- Add the store listing (start from
docs/screenshots/), privacy policy and the Data safety form. - Give the reviewers a demo sign-in on your live website.
- Upload the bundle to internal testing, try it on real phones, then release.
Updates
Raise the version, build a new bundle and upload it as a new release.
Privacy & data safety
Tell the store what the apps handle. The apps send data only to your website (and to Google Firebase for push, when you set it up).
| Data | Why |
|---|---|
| Name, email, phone | The account and bookings. |
| Bookings, notes and reviews | The service itself. |
| Customer details (business app) | So owners and staff can manage bookings. |
| Device push token | To send notifications, only when Firebase is set up. |
| AI questions (business app) | Sent by your website to the owner's chosen AI service. |
Fingerprint and face data stay on the phone and are never sent. Write your own privacy policy that matches how you run your service.
Android permissions used
| Permission | Why |
|---|---|
| INTERNET, ACCESS_NETWORK_STATE | Talk to your website. |
| POST_NOTIFICATIONS | Show notifications (Android 13+). |
| USE_BIOMETRIC / USE_FINGERPRINT | The optional app lock. |
| WAKE_LOCK, VIBRATE, c2dm RECEIVE | Added by the notification libraries. |
Cloud backup of app data is switched off.
Code structure
| Folder | Contents |
|---|---|
lib/main.dart, lib/config.dart | Start-up, app name, version and server address setting. |
lib/api/ | The API client and data models. |
lib/state/ | Sign-in, secure storage, app lock, push. |
lib/screens/, lib/widgets/ | The screens and shared parts. |
lib/util/ | Colours, money and date formats. |
lib/core.dart and the shared files are the same in both apps. The Android and iPhone folders of one app share lib/, test/, tool/, assets/ and docs/.
Updating to a new version
- Back up your changes: signing files, Firebase files, IDs, icons and
lib/config.dart. - Unzip the new version into a new folder.
- Copy your own settings back and run
flutter pub getandflutter test. - Update the website first when the new apps require a newer website version, then publish the apps.
Troubleshooting
| Problem | Try this |
|---|---|
| "No connection" | Check the address used to build, that it uses https, and that the phone can open the website in its browser. |
| "The email or password is not correct" | Check the account on the website. Many tries in a row are paused for a minute. |
| "Please use the business / customer app" | Customers use Smart Booking; owners and staff use Smart Booking Business. |
| "Your account is temporarily inactive" | Activate the account on the website. |
| "The mobile app is not available for this business" | The super admin switched the apps off for that business. |
| Push messages do not arrive | Check the Firebase files, FCM_CREDENTIALS, and that notifications are allowed on the phone. |
| A button is missing in the business app | It follows the person's role permissions on the website. |
| Gradle build fails | Run flutter clean, then flutter pub get, and check flutter doctor. |
FAQ
Do I need to publish a separate app for each business?
No. One build of each app serves every business on your website.
Can the apps work without the website?
No. They use the Smart Booking SaaS website through its API.
Can I publish under my own name?
Yes: your own ID, app name, icon and store account.
Do I need a Mac?
No. Android apps build on Windows, macOS and Linux.
Is payment taken inside the app?
No.
Support & changelog
Open a ticket at support.smartwebinfotech.com. Include your purchase code and what happened, and remove any passwords or keys.
Changelog
1.0.0 (30 November 2026): first release of the customer app and the owner and staff app.