Overview
Smart Visitor Mobile App is one iPhone app for the Smart Visitor SaaS visitor management website. The same app serves every role: owners, managers, reception, security, hosts and staff. Visitors without an account can open their pass with the pass code. The app talks only to your website, so all data stays on your server.
What is in the package
| App | Folder | App id | Users |
|---|---|---|---|
| Smart Visitor | iphone_app/ | com.smartvisitor.smartVisitor | Everybody who signs in on the website (except the super admin), plus guests with a pass code |
Inside the folder:
| Item | What it is |
|---|---|
lib/ | The Dart source code of the app. |
ios/ | The iPhone project, already set up (permissions, icons, signing hooks). |
test/ | Unit and screen tests (flutter test), plus a contract test that runs against a real server. |
pubspec.yaml | The app's name, version and packages. |
Features
Owner, manager, reception
- Home – inside now, pending approval, today and overstay; lists with one-tap Approve, Reject, Check in, Check out.
- Visitors – search, status filters and paging; visitor details with Call, WhatsApp and Email buttons, the QR pass, history, previous visits and internal notes.
- Scan – camera QR scan or a typed ID / code / link, a clear warning for blacklisted people, check in and out.
- Walk-in – register a visitor with a photo and check them in at once.
- Inside / expected – roll call lists of who is inside and who is expected.
- Time & leave – clock in / out with a running timer, hours this week, leave requests, and (for approvers) approve or reject the team's leave.
- Inbox – new visit requests, visitor arrived, overstay and leave decisions, with an unread badge.
Host / staff
- See and approve their own visitors, get notified when a visitor arrives, clock in / out and request leave.
Guest (no account)
- Open the pass from a link or code: QR pass, status, host, directions, call reception, and "I'm here" which tells the host.
Common to all
- Sign-in in two steps: company QR / code, then email and password; two-factor code when the account has one.
- Face ID / Touch ID lock after the app was away for 30 seconds (switch it on in More).
- Company name, logo and colour, set by the owner on the website (Mobile App page).
- Opens offline with the last saved data.
Not in this version: offline queue for actions, AI assistant, reports, blacklist screens, ID scan (OCR), badge printing and kiosk mode.
Requirements
| Item | What you need |
|---|---|
| System | A Mac with a recent macOS (iPhone apps can only be built with Xcode) |
| Xcode | Latest stable version from the Mac App Store, with the command-line tools |
| Flutter SDK | Stable channel, Dart 3.13 or newer |
| CocoaPods | sudo gem install cocoapods (or Homebrew) |
| Phones that can run the app | iPhone with iOS 15 or newer. |
| Accounts | Apple Developer Program membership (yearly fee) to run on a real iPhone for more than a week and to publish. Firebase project (free) and an APNs key from Apple for push notifications. |
| Website | Smart Visitor SaaS v2.0 or newer on HTTPS, with the migrations run (php artisan migrate). |
Install Xcode & Flutter
- Install Xcode from the Mac App Store, open it once and accept the licence. Then:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch - Install Flutter from docs.flutter.dev and CocoaPods.
- Check everything:
Flutter and Xcode should show green ticks.flutter doctor
Prepare the website
- Install or update Smart Visitor SaaS v2.0 or newer on an HTTPS address.
- Run the database update once:
It adds the tablesphp artisan migratemobile_devicesandapp_notifications. - Sign in as Super Admin and open Mobile Apps. Fill in the store links (after you publish), an optional minimum app version and defaults for colour and welcome text.
- Sign in as an Owner and open Mobile App: you see the company QR code, the company code and the branding form.
Open the project
Unlike a bare Flutter source package, the iPhone project is already included, so there is no setup script. Unzip, then:
cd iphone_app
flutter pub get
The app id is com.smartvisitor.smartVisitor. Change it to your own before you publish:
- In Xcode: open
ios/Runner.xcworkspace→ Runner target → Signing & Capabilities → Bundle Identifier
The app name shown under the icon is Smart Visitor (ios/Runner/Info.plist, CFBundleDisplayName).
Run on an iPhone or simulator
Point the app at your website
The server address is asked on the first screen and remembered. To pre-fill it for everybody, build with:
flutter run --dart-define=SERVER_URL=https://visitors.example.com
The default in lib/config.dart is only a development value (http://10.0.2.2/... is the computer's localhost as seen from the Android emulator).
On the simulator
open -a Simulator
flutter runThe simulator has no camera: scan with a real iPhone or type the code.
On a real iPhone
- Open
ios/Runner.xcworkspacein Xcode, choose your Apple team under Signing & Capabilities. - Connect the iPhone, trust the computer, then
flutter run.
Sign-in: company code & QR
The first time, the app asks which company:
- Scan the company QR code (or type the company code, or paste the invite link). The owner finds both on the website under Mobile App; the page also has a print sheet for reception.
- The app looks the company up (
GET /api/v1/mobile/company/{code}) and shows its logo, name and welcome text, with the email and password fields. - Sign in with the same email and password as on the website. If the account uses two-factor authentication, enter the 6-digit code.
The phone remembers the company. Not your company? Change goes back to step 1. The company code is the owner's code (the same one in the pre-registration link).
| Who can sign in | Details |
|---|---|
| Owner, manager, reception, security, host, staff | Every account of the company that is active and has a verified email. |
| Super admin | Cannot sign in on the phone; uses the website. |
| Guest | No account: "I'm a visitor: open my pass" with the pass code. |
Sign-in is refused while the super admin has a maintenance message set, or when the app is switched off for the company (Mobile Apps console).
Company branding
Changes that need no new build (from the website)
- Owner → Mobile App → App branding: name shown in the app, colour, welcome text, support phone and email. The logo comes from Settings.
- Super Admin → Mobile Apps: store links, minimum app version, maintenance message, default colour and welcome text, and an on / off switch for each company (people of a switched-off company are signed out).
Changes in the code (then build again)
- App name and icon:
AndroidManifest.xml/Info.plistand the launcher icons inios/Runner/Assets.xcassets/AppIcon.appiconset. - Default colours and widgets:
lib/util/theme.dart. - Pre-filled server address:
lib/config.dartor--dart-define=SERVER_URL=....
Before sign-in the app can ask GET /api/v1/mobile/config?version=1.0.0 for the maintenance message, whether an update is required and the store links.
Push notifications (Firebase + APNs)
The Inbox works without any setup and refreshes every minute. Push messages while the app is closed are optional and need your own Firebase project. This is left out of the first build on purpose: the iPhone build fails without your own GoogleService-Info.plist.
Server
- Create a Firebase project and a service account key (JSON). Save the file on the server outside the web folder.
- In the website's
.envsetFCM_PROJECT_IDandFCM_CREDENTIALS(the full path of the JSON file). The website then sends a push for every inbox message to the phones registered withPOST /api/v1/mobile/devices; dead phones are removed automatically.
App
- Add the app to your Firebase project (iOS) and download
GoogleService-Info.plistintoios/Runner/. - Add
firebase_coreandfirebase_messagingtopubspec.yaml, callFirebase.initializeApp()at start, implement thePushServiceinlib/state/push_service.dartto return the device token, and open the right screen from a tapped message (typeandref_idare in the message data). - In Xcode add the Push Notifications and Background Modes → Remote notifications capabilities, and upload your APNs key (.p8) in Firebase → Project settings → Cloud Messaging.
When users are notified
| Event | Who |
|---|---|
| New visit request / pre-registration | The host |
| Visitor arrived ("I'm here") | The host |
| Visitor past the planned exit time | Owner and reception |
| Leave approved or rejected | The employee |
AI features
The mobile app has no AI screens in this version. AI (assistant, dashboard briefing, category suggestion) is on the website: every owner connects their own AI service under Settings → AI Settings, and the plan decides whether AI is included. The app only reads the on / off flag, so nothing needs to be configured in the app.
Version numbers
In pubspec.yaml: version: 1.0.0+1. The part before + is the version people see; the number after + is the build number, which must go up with every upload to the store.
flutter build ipa --build-name=1.0.1 --build-number=2
To make old apps update, set a minimum app version under Super Admin → Mobile Apps.
Create the app in App Store Connect
- Join the Apple Developer Program and open App Store Connect.
- My Apps → + → New App: choose a name and the Bundle ID you set in Xcode (
com.smartvisitor.smartVisitoror your own). - In Xcode choose your team under Signing & Capabilities and tick Automatically manage signing.
Build & upload
flutter build ipa --release --dart-define=SERVER_URL=https://visitors.example.com
Then open build/ios/archive/Runner.xcarchive in Xcode (Window → Organizer) and choose Distribute App → App Store Connect → Upload. Raise the build number for every upload.
Publish on the App Store
- In App Store Connect open the build under TestFlight and test it with a few people.
- Fill in the app page: description, keywords, screenshots, support URL, privacy policy URL and the App Privacy answers (see below).
- Choose the build, then Submit for Review. Give the reviewer a demo company code and demo account.
- Copy the App Store link into Super Admin → Mobile Apps → iPhone.
Privacy & data safety
| Data | Why | Where it goes |
|---|---|---|
| Name, email, phone of staff and visitors | Showing and managing visits | Only your own website. Not shared with anyone else. |
| Visitor photo (walk-in) | Visitor record | Uploaded to your website. |
| Login token | Stay signed in | The phone's secure storage; deleted on sign-out. |
| Saved profile and home data | Opening offline | The phone's secure storage; deleted on sign-out. |
The app has no ads and no analytics. Nothing about people or visitors stays on the phone after sign-out. Use this table for the App Store App Privacy answers.
iPhone permissions used
| Key in Info.plist | Text shown to the person |
|---|---|
NSCameraUsageDescription | The camera is used to scan visitor passes and to take visitor photos. |
NSPhotoLibraryUsageDescription | Choose a photo for a visitor. |
NSFaceIDUsageDescription | Unlock the app with Face ID. |
Code structure
lib/
main.dart, app.dart, config.dart start-up, the root (sign-in / lock / app), settings
api/ api_client (Dio, errors, token), models, repository (every server call), json helpers
state/ auth_controller (company, sign-in, lock, session), session_store (secure storage),
lock_service (fingerprint / face), push_service
util/ theme (company colour), tabs (role-based bottom bar), format, launch (call, maps ...)
screens/ login (company step + sign-in step), lock, home, visitors, visitor detail, scan,
walk-in, inside, time, inbox, more, guest pass
widgets/ shell (bottom bar), chrome (bell, tab switch), common (chips, loader, tiles, buttons)
test/ models, tabs, api client, auth / lock logic, screens and sign-in (fake server), e2e/ (real server)
Which tabs a person gets is decided by tabsFor() in lib/util/tabs.dart, from the capabilities the server sends at sign-in. Every server call lives in lib/api/repository.dart.
Run the tests
flutter analyze
flutter test # unit + screen tests, no server needed
E2E_SERVER=https://visitors.example.com flutter test test/e2e # against a real server (see the file header for the test accounts)Updating to a new version
- Update the website first and run
php artisan migrate. - Replace the app source (keep your
key.properties, keystore and any Firebase files), runflutter pub get. - Raise the version and build number, build and upload to the App Store.
- Set the minimum app version under Super Admin → Mobile Apps if old apps must update.
Troubleshooting
| Problem | What to do |
|---|---|
| "No company was found for this code." | Check the code on the website (Mobile App page) and the server address on the first screen. |
| "Cannot reach the server." | Check the address starts with https://, the phone has internet and the website is up. Release builds refuse plain http. |
| "These credentials do not match our records." | Wrong email / password, or the account belongs to another company than the one chosen. Use Not your company? Change. |
| Sign-in says the app is switched off or in maintenance | Super Admin → Mobile Apps: check the company switch and clear the maintenance message. |
| "Your session has ended" | A token that was not used for 60 days ends by itself, or the account was changed. Sign in again. |
| Camera does not open | Allow the camera permission in the phone's settings. Simulators and emulators have no real camera: type the code. |
| No push messages | Push is optional and needs your Firebase project (see above). The Inbox works without it. |
| Signing or pod errors | Run cd ios && pod repo update && pod install, then check the team under Signing & Capabilities. |
FAQ
Do I need to publish my own app?
One published build serves all your companies. Publish it once under your own developer account; owners and staff only need the company code.
Can a host see other people's visitors?
No. The server returns only their own visitors and checks every call with the website's permissions.
Does it work without internet?
It opens with the last saved data. Actions such as approve or check in need a connection.
Can I switch the app off for one company?
Yes, in Super Admin → Mobile Apps.
Is Firebase required to run the apps?
No. The Inbox works without it; push is optional.
Support & changelog
Create a support ticket at support.smartwebinfotech.com and our team will respond as soon as possible. Please include the app version and what you see on screen.
Changelog
Version 1.0.0 – 22 November 2026
* First release: one app for owners, managers, reception, hosts and guests
* Company QR / code step, then email + password sign-in with company logo and colour
* Home, visitors, scan, walk-in, inside / expected, time and leave, inbox, guest pass
* Fingerprint / face lock, two-factor sign-in, offline start