Now use Artavolo in ChatGPT and Claude New Ask “which clients still owe me documents?” or say “mark the Brightwater job done”, and it happens in Artavolo. See how it works

Phone apps (Android and iOS)

Artavolo works on phones in three ways:

  • The browser. The table screen, interfaces and forms are laid out for phones: a grid view stays a grid with a narrow gutter whose number opens the record, menus open as sheets from the bottom, and records open full screen with a swipe to the next one.
  • Installed from the browser. Chrome, Edge and Safari offer to install the site as an app. It has its own icon and window, and shows a "No connection" page when there is no network.
  • From Google Play and the App Store. The apps in mobile/ put the same screens in a native shell. They add a home-screen icon, a splash screen, and links that open in the app.

The apps open the site itself, so they are always up to date. A change to Artavolo reaches the apps without a new release.

The simple screen

The apps open a simple screen made for people who use the data rather than design it: a salon owner checking today's bookings, a technician closing a job, a salesperson adding a lead.

  • Home has one search box for records in every base and for bases by name (GET /api/v2/home/search). Under it: their work that is due (records with their name in a person field), the interface pages shared with them, the bases they pinned on the full Home, the ones opened lately, then all their bases under each workspace. Someone with no bases is offered four templates (Bookings, Jobs, Clients, Stock), made in their own workspace in one tap. Each workspace the person owns ends with a New base tile (a blank base, or one of the four templates, named and placed in the workspace chosen), and New workspace sits under the bases (POST /api/v2/workspaces; GET /api/v2/home lists the workspaces, empty ones too).
  • A base lists its interface pages first (the owner's way of shaping what phone users see), then its tables. Its owners can add a table there (+ New table: Name, Notes and Status to start with, then Fields). Its owners also see Choose what phones show: a switch per table and per field (libs/PhoneSetup.class.php, GET/PATCH /api/v2/bases/{code}/phone). A hidden field is still sent to whoever may read it; the phone just does not draw it, and the full view always shows everything.
  • A table shows its records as cards, with a search box, a Scan button, and its views as chips: All (one plain list: the first view's sort and filter, never its groups, so a big table shows records and not folded headings; a grouped view keeps its own chip), Mine (when the table has a person field), Today (when it has a date: today's records in time order, with the next one on top), then its saved views. The round + adds a record. An empty list says why in plain words for its chip (no records yet, nothing with your name, nothing today, nothing with what was searched). The base's owners also get Fields next to the search: the table's fields with what each holds in plain words, + Add a field (Text, Long text, Number, Money, Date, Date and time, One choice, Several choices, Tick box, Phone, E-mail, Web link, Person, Photos and files, Rating, with the choices typed in), and a tap on a field to rename it or change what it holds and its choices. It saves the way the full view does (POST .../tables/{id}/fields, then PUT /api/v2/bases/{code}/design). A field made in the full view (a link, a formula) is renamed here; the first field keeps its kind; fields are removed in the full view. A long press on a card offers Call, Text: on my way, Send an e-mail, Show on the map and Mark as done (the status choice that means done), without opening the record. A phone or an address looked up from a linked record (a job's site) counts too.
  • A record opens full screen, with a swipe to the next one. Its big buttons follow the table's fields, in the order a job goes: On my way when it has a phone (its own, or looked up from a linked record: the phone's messages app opens with "Hi, this is Maria. I am on my way to you now."; Artavolo sends nothing, so no text-message provider is needed), Check in here when it has a location field or a check-in or arrival date field, Take a photo when it has a file field (with more than one, it asks which: the one called photo first), Get a signature when it has a file field called signature (signed with a finger, kept as a picture; the pad is held above the record, simple/layer.js, so the customer's strokes do not close it), Mark as Done while the status choice that means done (or a done tick) is not set. A microphone beside its text fields takes dictation. The Jobs template (work-orders) has all of these: Site phone and Site address looked up from Site, Arrived at, Photos and Signature (tests/ui_job_flow_test.php walks one job: 9 taps on the screen). A field the owners hid on phones is never filled by them.
  • Pull down on any screen to read it again; an "Updated" line says when it was last read.
  • No signal. Changes to records, photos and signatures made with no signal are kept on the phone (frontend/base/src/simple/outbox.js, IndexedDB, one store per person) and sent in order when the signal is back; a line at the top says how many wait. In the Android app and in phone browsers, the service worker also keeps the last copy of the simple screen and of what it read, so it opens with no signal. The iPhone app's web view runs no service worker (WebKit runs one only for "app-bound domains", which would block company sign-in pages such as Okta and Entra inside the app, so it is not used), so opened with no signal it shows the app's own page (mobile/www/offline.html). In the apps, each time My work is read the simple screen also keeps it in the app's own storage (simple/phone.js lastCopy, the Filesystem plugin, artavolo-last-work.json: titles, base and table, due dates, and the page's words in the person's language), and that page shows it read only: "Your work, as of 14:05", with Late, Today and Tomorrow worked out on the phone. Signing out, or another person signing in, drops it. The page ships inside the app, so this reaches phones with the next store release. Changes made while the app was open still wait and are sent. Signing out drops the kept copy (and asks first when changes are still waiting).
  • Me has Appearance (Automatic, which follows the phone, Light or Dark), Colour (blue, purple, pink, red, orange, green or teal for buttons, ticks and the chosen tab, SvGrid's round + and record buttons too; each a set that reads well on light and dark) and the text size (Normal, Large, Larger), all kept on the phone. site/simple.php applies Light or Dark before the screen is drawn.
  • The tabs at the bottom are Home, My work, Notifications and Me.

Full view in the top corner opens the same place in the full screen, and the phone remembers the choice. A Simple view button in the full screen brings the simple one back. In a phone's browser the full screen stays the default, with a one-line offer to try the simple one. A computer never shows it. The page is site/simple.php, and the screens are in frontend/base/src/simple/.

What is in mobile/

PathWhat it is
capacitor.config.jsonThe address the app opens, its name and its id. Written by scripts/configure.mjs.
android/, ios/The native projects (Capacitor 8).
www/The app's own pages: its frame, and the offline page shown when the site cannot be reached.
scripts/icons.mjsDraws every icon and splash image from the mark, at every size each platform needs.
.github/workflows/mobile.ymlBuilds both apps on GitHub: an installable Android test build, and an iOS simulator build.

Building

You need Node 22. For Android you also need JDK 21 and the Android SDK (platform 35). For iOS you need a Mac with Xcode.

cd mobile
npm ci
node scripts/configure.mjs                  # artavolo.com, "Artavolo", com.artavolo.app
npx cap sync
cd android && ./gradlew assembleDebug       # app/build/outputs/apk/debug/app-debug.apk
npx cap open ios                            # then build and run in Xcode

Trying the app in the emulator

tests/app_emulator_test.php runs checks inside the real app: its web view, its agent and cookie, the plugins of app 1.2, no plans in the app, something shared from another app, "Check in here" with the emulator's location, a reminder, and a kanban card moved with a finger. It needs, once:

  1. An emulator: sdkmanager "emulator" "system-images;android-35;google_apis;x86_64", then avdmanager create avd -n artavolo35 -k "system-images;android-35;google_apis;x86_64" -d pixel_7.
  2. Start it with a writable system, and send artavolo.local to the computer (10.0.2.2 is the computer, seen from the emulator): `` emulator -avd artavolo35 -no-window -no-audio -gpu swiftshader_indirect -writable-system adb root && adb remount # the first time: adb reboot, then again adb push hosts /system/etc/hosts # a file with "10.0.2.2 artavolo.local" in it ``
  3. A debug build opening the local site: set server.url to http://artavolo.local/?source=app, server.cleartext to true and allowNavigation to ["artavolo.local"] in capacitor.config.json (never commit that), npx cap sync android, ./gradlew assembleDebug, adb install -r app/build/outputs/apk/debug/app-debug.apk. Put the real config back with node scripts/configure.mjs and sync again.

Without an emulator running the test says so and passes nothing. A debug build lets Chrome's DevTools reach the web view (adb forward tcp:9444 localabstract:webview_devtools_remote_<the app's process id>), which is how the test drives it. The service worker does not run there (plain http is not a secure address), so the copy for no signal is checked by tests/ui_simple_test.php instead.

App 1.3: the route of a timed visit

App 1.3 (Android versionCode 4, iPhone build 4) adds the app's own plugin ArtavoloRoute: when a form times the visit and keeps a route (Forms, Sharing, Time the visit, "The route, every 10 minutes in the Artavolo app, into"), the first scan starts recording where the phone is every 10 minutes and sending the form stops it. The points stay on the phone and go with the form (RowsApi::routeText writes them).

  • Android: RouteService, a foreground service of type location with a notification "Recording your route" for as long as it runs, started while the app is open, so it needs only the while-in-use location permission (no background location). The manifest has FOREGROUND_SERVICE and FOREGROUND_SERVICE_LOCATION. In Play Console, App content, Foreground service permissions: declare *Location*, say that a technician starts it by scanning the QR code on arrival and that it stops when they send the visit form, and add a short video of that. Google reviews it before the release goes out.
  • iPhone: RoutePlugin.swift, with UIBackgroundModes location in Info.plist and the while-in-use permission; iOS shows its location sign while it records. In App Store Connect, add to the review notes why the app uses location in the background (the same words as above) and how to try it: a test account with a form that times the visit.
  • The site works with older apps: their form says to update the app, and the visit comes in without a route.

App 1.2: what it adds, and what the iPhone needs

App 1.2 (versionCode 3) adds these plugins: @capacitor/local-notifications (reminders before what is due), @capacitor/geolocation ("Check in here", "Near me"), @capacitor/filesystem (reading a shared file), @capgo/capacitor-native-biometric (the fingerprint or face lock), @capgo/capacitor-share-target (Share to Artavolo) and @capgo/capacitor-speech-recognition (speaking a note). The Android manifest has the location, microphone and biometric permissions and the share intents; the iPhone's Info.plist has the matching usage texts. The site works with the 1.1 app too: what needs a plugin is simply not offered there.

Sharing into the app on the iPhone needs a Mac, once. iOS receives shares only through a Share Extension, a second target in the Xcode project:

  1. In Xcode: File > New > Target > Share Extension, named ShareExtension.
  2. Give the app and the extension the same App Group (Signing & Capabilities > App Groups), for example group.com.artavolo.app.
  3. In capacitor.config.json, under plugins, add "CapacitorShareTarget": { "appGroupId": "group.com.artavolo.app" }.
  4. In the extension's ShareViewController.swift, save what was shared to UserDefaults(suiteName: "group.com.artavolo.app") under the key share-target-data (title, texts, files with uri, name and mimeType), then open the app. The plugin's README has the full example.

Until then the iPhone app simply does not appear in the share sheet; everything else works.

Your own instance, or under your own name

A self-hosted or white-labelled instance gets its own app. Give it its own address, name and id, and redraw the icons from its own mark:

node scripts/configure.mjs --url https://tables.acme.eu --name "Acme Tables" --id eu.acme.tables
node scripts/icons.mjs path/to/acme-mark.svg "#ffffff"
npx cap sync

On GitHub, run the "Mobile apps" workflow by hand with the same three values.

Publishing

Google Play

  1. Create a developer account at play.google.com/console. There is a one-time registration fee. Register as an organisation, which needs a D-U-N-S number. New personal accounts must first run a closed test with a group of testers for two weeks; check Google's current rules when you register.
  2. Create a signing key and keep it outside the repository: keytool -genkeypair -v -keystore release.keystore -alias artavolo -keyalg RSA -keysize 2048 -validity 10000. Enrol the app in Play App Signing.
  3. Build the App Bundle. You can do it locally, with ./gradlew bundleRelease and the signing properties. Or let the workflow do it: set these repository secrets, and the workflow builds the bundle too.
    • ANDROID_KEYSTORE_BASE64 (the keystore file, base64-encoded)
    • ANDROID_KEYSTORE_PASSWORD
    • ANDROID_KEY_ALIAS
    • ANDROID_KEY_PASSWORD
  4. Make the links open in the app. In the Play Console, open App integrity and copy the app signing certificate's SHA-256 fingerprint. Set APP_ANDROID_ID and APP_ANDROID_SHA256 in includes/config.php (several fingerprints separated by commas; written with or without colons, the site puts them in Android's form). With APP_ANDROID_ID set to com.artavolo.app, the official Play app's keys are always included. The site then serves /.well-known/assetlinks.json, and Android opens links to /base/…, /interface/… and /form/… in the app.

What the site does for the store rules

  • No plans or payments in the apps. Google Play and the App Store take their own fee for anything digital bought in an app and refuse an app that leads to buying elsewhere. In the apps, every plan and payment address (/pricing, /upgrade…, /billing/…, /payment/…, a workspace's billing and upgrade pages) shows site/app-plans.php: "Plans are not handled in the app", with no link. The guard is at the top of libs/Router.class.php, so it holds whatever link led there. Links marked hide-for-application are hidden in the apps too (the page's data-application is set by the server).
  • No analytics in the apps. Google Analytics is not loaded in the apps, so the Data safety form can say the app collects no analytics.
  • The privacy policy is a page edited in Administration (/page/privacy-policy). Database update 1.5.24 puts Artavolo Ltd's name and address on it (it named jQWidgets Ltd) and adds its part about the apps, "The Artavolo apps for Android and iPhone", before the rights section, once: camera, location, microphone, sharing in, reminders, the lock, notifications and no signal. The text is in libs/PrivacyPolicy.class.php. A page that already has the part (the id="phone-apps" heading) is left alone, so edit it in Administration from then on.

App Store

  1. Join the Apple Developer Program as an organisation (a yearly fee, and a D-U-N-S number).
  2. Set up the app in Xcode. On a Mac, run npx cap open ios. Under Signing & Capabilities, choose the team and set the bundle id (com.artavolo.app). The entitlements file already has Associated Domains (applinks: with the host scripts/configure.mjs was given) and Push Notifications; Xcode asks to turn both on for the app id.
  3. Make the links open in the app. Set APP_IOS_ID to <Team ID>.com.artavolo.app in includes/config.php. The site then serves /.well-known/apple-app-site-association.
  4. Submit. In Xcode, choose Product, then Archive, then Distribute App, then App Store Connect. Then fill in the listing in App Store Connect.

Without a Mac. GitHub builds, signs and uploads the iPhone app on its own Mac:

  1. In App Store Connect, Users and Access > Integrations > App Store Connect API: make a team key with Admin access and download it (the .p8 file, once). Note its Key ID and the Issuer ID above the list. Keep the file outside the repository.
  2. On any computer: node mobile/scripts/ios-signing.mjs --key path/AuthKey_XXXX.p8 --key-id XXXX --issuer <issuer id>. Through Apple's API it turns on Push Notifications and Associated Domains for the app id, makes an Apple Distribution certificate (once; later runs reuse it) and an App Store profile, and writes github-secrets.txt in ~/artavolo-signing/ios.
  3. Add the 7 secrets from that file under the repository's Settings > Secrets and variables > Actions.
  4. Actions > Mobile apps > Run workflow, tick Upload the iPhone app to App Store Connect. The build (numbered after the run) appears in App Store Connect under TestFlight once Apple has processed it; pick it for the version there and submit.

For Apple's review. Apple turns down apps that are only a website in a frame (guideline 4.2). What this app adds:

  • the offline page;
  • links that open in the app;
  • the splash screen;
  • the simple screen, made for a phone;
  • notifications on the lock screen;
  • the phone's barcode and QR scanner;
  • "Take a photo" straight into a record.

Give the reviewers a demo account with a filled base. Notifications on the phone (Web Push, see below) strengthen the case.

Signing in to the app

People sign in to the app the same ways as on the website, and nothing new has to be remembered:

  • Google, Microsoft or Apple. The app opens the provider in the phone's own browser, where most people are already signed in to Gmail or their work account. They tap their account once and are back in the app, signed in. (Google refuses its sign-in inside an app's own web view, which is why it opens in the browser.) The token on the way back is useless to any other app: only the app that started the sign-in holds the secret that turns it into a session.
  • An e-mail code. "E-mail me a sign-in code" sends a 6-digit code and a link, good for 10 minutes. Nothing to remember, and it works for any account.
  • A QR code from the website. In the account menu on the computer, "Sign in on your phone" shows a QR code. In the app, Scan the code on your computer (the first button under the sign-in form) reads it with the phone's scanner and the app is signed in, with nothing typed. The phone's own camera app works too, but opens it in the browser unless the links are set up to open the app. The code works once, for 5 minutes.
  • E-mail and password, as before, and single sign-on where the company has it.

Microsoft and Apple appear once their keys are set in the administration, Auth settings. The App Store asks for Sign in with Apple next to Google (guideline 4.8).

What the site does for the apps

  • Recognising the app. The app adds ArtavoloApp/1.1 to its user agent (1.0 before the simple screen), and the site uses that to know it is inside the app: the provider buttons then open in the phone's browser (see above). Pages that come through the service worker are fetched with the web view's plain agent, so the app's pages also set an av_app cookie when they see that agent, and inPhoneApp() accepts either.
  • Back and links. Android's back button closes an open record first, then goes back a page, and closes the app at the first page. A link tapped elsewhere opens the page in the app (partials/app-install.phtml).
  • Offline. With no network, the app shows its own "No connection" page and tries again when the phone is back online.

Notifications and scanning

  • Notifications in a browser work through Web Push, sent by the server in plain PHP with no outside account. Each person turns them on from the bell.
  • Notifications in the store apps (version 1.1) go through Google's and Apple's push services (libs/NativePush.class.php): the same mentions, comments and notices as the bell, on the lock screen. A tap opens the record. The app asks once, on Home, in plain words, and the Me tab shows whether they are on. Nothing is asked or sent until the keys below are set.
  • Barcode and QR scanning uses the phone's own scanner in the apps (@capacitor/barcode-scanner), on Android and the iPhone alike. In a browser it uses the browser's barcode reader, which Chrome on Android has and Safari does not. Scan on a table finds the record with that code and opens it, and a barcode field has its own scan button.
  • Taking a photo into an attachment field works in every phone browser and in the apps; pictures are sent at most 2000 px wide.

Setting up push for the store apps

  1. Android (Firebase, free).
    • In the Firebase console, create a project and add an Android app with the id com.artavolo.app.
    • Download google-services.json and keep it outside the repository: ~/artavolo-signing/google-services.json for builds on this computer, and its text as the GitHub secret GOOGLE_SERVICES_JSON for the workflow. scripts/configure.mjs copies it into android/app/ (ignored by git), checks it names the app id, and says when there is none (then the app builds, and Android phones get no notifications). The Android app needs a new build after this.
    • In the project's settings, under Service accounts, make a new private key.
    • Put its JSON, or the path of the file, in includes/config.php as FCM_SERVICE_ACCOUNT_JSON.
  2. iPhone (Apple).
    • In the Apple Developer account, under Keys, make a key with Apple Push Notifications service and download the .p8.
    • In includes/config.php, set:
    • APNS_KEY_P8: the key's text, or the path of the file;
    • APNS_KEY_ID and APNS_TEAM_ID;
    • APNS_TOPIC: the app id, com.artavolo.app;
    • APNS_SANDBOX = true only for apps installed from Xcode.
    • In Xcode, the app's Signing & Capabilities need Push Notifications and Associated Domains. ios/App/App/App.entitlements holds both already.
  3. The database. Migration 1.5.21 adds the push_native table. The cron sends what waits, each minute, as it does for Web Push.
  4. Check it. Sign in to the app on a phone and allow notifications, then on the server: php utilities/push-test.php you@example.com. It says which keys are set, how many phones the person has registered, and sends one test notification.
A question these pages do not answer? Write to us and we answer by e-mail, usually within one business day. Contact us