Android

Smart Booking – Android App Documentation

Apps v1.0.0 · needs website v1.9+

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.

Simple sign-inOnly email and password. No company code, QR scan or server address: the address is set when you build, and each account belongs to one business.
Each business's own lookAfter sign-in the app shows that business's title, colour and logo.
Same rules as the websiteThe server checks permissions and free times for every action.
Push notificationsThrough Firebase (optional). The in-app inbox with an unread badge works without it.
SecureThe sign-in key is kept in the phone's secure storage; two-factor and fingerprint / face lock are supported.
Ready for Google PlayBuild, signing and store submission steps are in this guide.

What is in the packages

AppPackage fileFolder insideIDFor
Smart Bookingsmart-booking-customer-android-v1.0.0.zipandroid_app/com.smartbooking.sb_customerCustomers
Smart Booking Businesssmart-booking-business-android-v1.0.0.zipandroid_app/com.smartbooking.sb_businessOwners and staff
Both zips contain a folder called android_app. Unzip them into two separate folders, for example customer_app/ and business_app/.

Inside each folder

Folder / fileWhat 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.yamlApp version and the list of libraries.
documentation/This guide.
The apps need Smart Booking SaaS v1.9 or newer on a domain with HTTPS. The website is a separate product.

Features

Smart Booking (customers)

AreaWhat the customer can do
HomeNext visit, quick booking, visits to review, amount still to pay.
BookingServices, a person or anyone, a day and only the times that are free; notes; waitlist when a day is full.
My bookingsUpcoming and past; reschedule, cancel and review (when allowed).
ServicesWhat the business offers, with length and price.
AccountContact the business (call, email, directions), edit details, change password, delete account.

Smart Booking Business (owners and staff)

AreaWhat they can do
HomeToday's bookings, next 7 days, items needing attention; figures and money for those allowed to see them.
CalendarDay view, filter by person; approve, complete, move or cancel.
CustomersSearch, history, add a customer, book for them.
Owner toolsTeam, holidays and time off, website enquiries, reviews.
AI assistantUses the owner's own AI key set up on the website.
StaffSees only their own bookings. Buttons follow their website permissions.

Common to both

Not included: online payment inside the apps, offline use, and languages other than English for the app screens.

Requirements

Your computer

ItemNeeded
SystemWindows, macOS or Linux
Flutter SDKStable channel with Dart 3.13.5 or newer (sdk: ^3.13.5 in pubspec.yaml)
Android StudioWith the Android SDK, platform tools and a recent JDK
Free disk spaceAbout 10 GB or more

Phones that can run the app

Android 7.0 (API 24) or newer.

Accounts

Website

Smart Booking SaaS v1.9 or newer on HTTPS, with the database updated (php artisan migrate).

Install Flutter & Android Studio

  1. Install Flutter from docs.flutter.dev and add it to your PATH.
  2. Install Android Studio and, in SDK Manager, the latest Android SDK, platform tools and command-line tools.
  3. Accept the licences and check everything:
    flutter doctor --android-licenses
    flutter doctor
    The Flutter and Android lines should have green ticks.

Prepare the website

  1. Update the website to Smart Booking SaaS v1.9 or newer and run php artisan migrate.
  2. Make sure the site opens on HTTPS and APP_URL in .env is the real address.
  3. As owner, open Website & Marketing → Mobile App: set the app title, colour, logo, welcome text and help contacts.
  4. 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 test

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

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

Add the folder if the website is not at the root, for example https://your-domain.com/booking.

Never release a build without 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

  1. On the phone open Settings → About phone, tap Build number seven times, then turn on USB debugging in Developer options.
  2. Connect it with a cable and allow the computer.
  3. Run flutter devices, then flutter run with 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-folder

A test APK to share

flutter build apk --release --dart-define=API_BASE_URL=https://your-domain.com

The 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)

Changes in the code (then build again)

Push notifications (Firebase)

Optional. Without it everything works and messages appear in the in-app inbox.

  1. Create a Firebase project and add an Android app with your package name.
  2. Download google-services.json into android/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.json
Never publish or share the Firebase key files.

When 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 upload

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

The file is build/app/outputs/bundle/release/app-release.aab.

If a build runs out of memory, check org.gradle.jvmargs in android/gradle.properties (set to 3 GB).

Publish on Google Play

  1. In Play Console create an app for each of the two apps.
  2. Add the store listing (start from docs/screenshots/), privacy policy and the Data safety form.
  3. Give the reviewers a demo sign-in on your live website.
  4. 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).

DataWhy
Name, email, phoneThe account and bookings.
Bookings, notes and reviewsThe service itself.
Customer details (business app)So owners and staff can manage bookings.
Device push tokenTo 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

PermissionWhy
INTERNET, ACCESS_NETWORK_STATETalk to your website.
POST_NOTIFICATIONSShow notifications (Android 13+).
USE_BIOMETRIC / USE_FINGERPRINTThe optional app lock.
WAKE_LOCK, VIBRATE, c2dm RECEIVEAdded by the notification libraries.

Cloud backup of app data is switched off.

Code structure

FolderContents
lib/main.dart, lib/config.dartStart-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

  1. Back up your changes: signing files, Firebase files, IDs, icons and lib/config.dart.
  2. Unzip the new version into a new folder.
  3. Copy your own settings back and run flutter pub get and flutter test.
  4. Update the website first when the new apps require a newer website version, then publish the apps.

Troubleshooting

ProblemTry 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 arriveCheck the Firebase files, FCM_CREDENTIALS, and that notifications are allowed on the phone.
A button is missing in the business appIt follows the person's role permissions on the website.
Gradle build failsRun 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.