iPhone

Smart Booking – iPhone App Documentation

Apps v1.0.0 · needs website v1.9+

Overview

Smart Booking Mobile Apps are two iPhone 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 the App StoreBuild, signing and store submission steps are in this guide.

What is in the packages

AppPackage fileFolder insideIDFor
Smart Bookingsmart-booking-customer-iphone-v1.0.0.zipiphone_app/com.smartbooking.sbCustomerCustomers
Smart Booking Businesssmart-booking-business-iphone-v1.0.0.zipiphone_app/com.smartbooking.sbBusinessOwners and staff
Both zips contain a folder called iphone_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/.
ios/The iPhone project, already set up (name, icon, permissions).
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
SystemmacOS (required for iPhone builds)
Flutter SDKStable channel with Dart 3.13.5 or newer (sdk: ^3.13.5 in pubspec.yaml)
XcodeA current version, with CocoaPods if Flutter asks for it
Free disk spaceAbout 10 GB or more

Phones that can run the app

iOS 15 or newer.

Accounts

Website

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

Install Xcode & Flutter

  1. Install Xcode from the Mac App Store, open it once and accept the licence.
  2. Install Flutter from docs.flutter.dev and add it to your PATH.
  3. Check everything:
    flutter doctor
    The Flutter and Xcode 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 iPhone project is included. Unzip, then in each app folder:

cd iphone_app
flutter pub get
flutter test

The IDs are com.smartbooking.sbCustomer and com.smartbooking.sbBusiness. 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 an iPhone or simulator

Simulator

open -a Simulator
flutter run --dart-define=API_BASE_URL=https://your-domain.com

Your iPhone

  1. In Xcode, open ios/Runner.xcworkspace, select the Runner target, then Signing & Capabilities, and choose your Team.
  2. Connect the iPhone, trust the computer and turn on Developer Mode.
  3. Run flutter devices, then flutter run with your address.

Testing against a local website

Use an https address. iPhones block plain http unless you add a temporary exception in Info.plist; remove it before publishing.

Branding

Changes that need no new build (from the website)

Changes in the code (then build again)

Push notifications (Firebase + APNs)

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

A. Apple: APNs key

In your Apple developer account create an APNs authentication key (.p8) and note the Key ID and Team ID.

B. Firebase

  1. Create a Firebase project and add an iOS app with your bundle ID.
  2. Download GoogleService-Info.plist and add it to the Runner target in Xcode.
  3. In Project settings → Cloud Messaging, upload the APNs key.
  4. In Xcode add the Push Notifications capability and Background Modes → Remote notifications.

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

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.

Create the app in App Store Connect

  1. Register your bundle ID in the Apple developer account.
  2. In App Store Connect create a new app for each of the two apps, with name, primary language and SKU.
  3. Add screenshots (start from docs/screenshots/), description, keywords, support and privacy policy addresses.

Build & upload

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

Upload the file from build/ios/ipa/ with Apple's Transporter app or from Xcode.

TestFlight (beta testing)

After processing, add testers in TestFlight and try every main task on real iPhones before submitting.

Publish on the App Store

Choose the build, answer the privacy questions, add review notes with a demo sign-in, and submit.

Common rejection reasons

ReasonWhat to do
The reviewer cannot sign inGive a working demo account on your live website in the review notes.
Account deletionCustomers can delete their account in More. The business app does not create accounts.
Looks like a templateUse your own name, icon, screenshots and description.
Privacy details missingAdd a privacy policy and fill in the App Privacy form.

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.

iPhone permissions used

PermissionWhy
NotificationsPush messages (asked after sign-in, only with Firebase).
Face IDThe optional app lock.

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.
Signing or pod errors in XcodeChoose your team, check the bundle ID, run flutter clean and flutter pub get.

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?

Yes. iPhone apps can only be built on a Mac with Xcode.

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.