Skip to main content

17

Setting up a mobile app in Studio

The objects a mobile app is made of, the order in which you create them, and how you manage devices afterwards.

A mobile app is put together in Studio in the section Mobile. This page shows which objects you need and in which order you create them. What goes into a shell, the views, forms and scripts of the app, is described in Documentation 17.

What you need, in this order

StepWhere in StudioNeeded
1. A connection to the database with the data of the appContent → Connections. See Connections.yes
2. A data sourceMobile → Datasourcesyes
3. A shellMobile → Shellsyes
4. A claim, and users who have itSecurity → Claims, Security → Users. See Lesson 7: Creating Users and Claims.yes
5. AreasMobile → Areasonly to limit users to regions
6. TemplatesMobile → Templatesonly if the app creates reports
7. The app itselfMobile → M.Appsyes

Data source

A data source is a connection together with a coordinate system. The app reads and writes the tables of this database directly.

FieldMeaning
NameName of the data source.
EPSGThe coordinate system of the geometries in the database.
ConnectionOne of the connections of the tenant. New Connection creates one on the spot. The connection cannot be changed after the data source was saved.

Shell

The shell is the definition of the app: a ZIP file with the file Shell.xaml and everything that belongs to it.

  1. Under Mobile → Shells click New and enter a Name. Letters, digits and underscores are allowed. The name cannot be changed later.
  2. Under Shell select the ZIP file and save.

Shell.xaml must be at the top level of the ZIP file. A ZIP file that contains a folder with the shell in it is refused with Missing Shell.xaml in top level. Zip the content of the folder, not the folder.

In the list, a shell without Shell.xaml is marked as invalid. A row offers these actions:

ActionWhat it does
CloneCopies the shell with all its files under a new name. Use it to try out a change without touching the shell that is in use.
DownloadDownloads the files of the shell as a ZIP file.
DeleteDeletes the shell and its files. Apps that used it lose their shell and show Missing shell. in the list of apps. Studio does not warn you.

One shell can be used by several apps, for example the same app for two regions with different data sources.

Uploading a new ZIP file adds to the existing files. Files with the same name are replaced, but files that are no longer in the new ZIP file stay on the server. To replace a shell completely, remove the file in the form and save, then upload the new ZIP file.

When you edit a shell, select the ZIP file again before you save.

Areas

An area is a polygon that limits what a user works with, for example a district. Areas are not drawn in Studio. You import them from polygons that you already have as vector data.

  1. Under Mobile → Areas click New.
  2. Choose the dataset with the polygons.
  3. Enter the pattern for the names of the areas. Type { to get the columns of the dataset. A pattern looks like {ENTITY.NAME} or District {ENTITY.NUMBER}, with the curly brackets around the whole placeholder.
  4. In the table below, tick the polygons you want to import and save.

Good to know:

  • An area is a copy. If the polygon changes later in your data, the area does not follow. Delete the area and import it again.
  • Importing the same polygon twice creates two areas with the same name.
  • The areas are stored in geographic coordinates. Polygons in another coordinate system are converted.

Open an area to assign it to users or to claims.

Which areas a user is offered in the app:

The app ...The user is offered ...
has no area of its ownthe areas assigned to the user directly or through a claim
has an area of its own (field Area)that area, and of the user's own areas those that touch it

Templates

A template is a file from which the app creates a report, in one of the formats Word, Excel, Pdf, Csv or Html. Upload it under Mobile → Templates with a Name and the Template Format. How a shell uses a template is described under reports in Documentation 17.

When you edit a template, select the file again before you save.

The app

Under Mobile → M.Apps click New.

FieldMeaning
NameThe technical name of the app. Letters, digits and underscores, up to 64 characters, unique among all apps of the tenant. Interfaces and stored files refer to it, so do not change it later.
TitleThe name the user sees in the list of apps on the device.
Area required?The user has to choose an area to work with the app.
PreviewAn image for the app on the Apps page. When you edit the app and leave this field empty, the stored image is removed.
ShellThe shell of the app.
ClaimsWho may use the app. At least one claim. Only users who have one of these claims see the app on their device.
DatasourceThe data source of the app.
AreaOptional. A fixed area for the whole app. See the table under Areas.

The list of apps marks an app as invalid with Missing data source. or Missing shell. if the data source or the shell was deleted after the app was created. It does not check whether the shell contains a Shell.xaml or whether a user has the claim. If a user does not see the app, check the claims first.

Users connect the app on their device to your server with the QR code from the Apps page. See App links and sharing.

Devices

A device appears under Mobile → Devices by itself after a user has signed in on it. The list shows the type, the manufacturer, the versions of the operating system and of the app, the last activity and the users. You cannot add or delete a device. Open one to change its three switches:

SwitchEffect
Lock deviceNobody can sign in on this device any more, whichever user tries. Use it when a device is lost. The lock is checked when a user signs in.
Allow export deviceAllows the device to export its local database.
Request wipeAsks the device to delete its local data.

Mobile → Device Logs lists the errors that the devices reported, with message, user, app and time. Open a row for the details, or select rows and download them as a file. These entries are separate from the logs under Security → Logs. See Logs and troubleshooting.

For the whole tenant

These settings are not part of an app. They apply to all mobile apps of the tenant:

  • The name and title under which the server appears in the app, a help address, a support e-mail address and a logo. You set them in Management, in the section Mobile of the tenant. All of them are optional. See Logo for the mobile app.
  • The colors of the app follow the branding of the tenant.
  • Maintenance Windows announce downtimes to the users.
  • Client credentials let other systems call the mobile interfaces without a user.
Updated on Dec 1, 2026