---
title: "Configuration"
description: "Every mobile.toml table and key, with types and defaults, generated from the CLI's JSON Schema."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.lairport.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration

## Introduction

You configure your iOS and Android apps in one file, `mobile.toml`, at the root of your project. Only `[app]` and `[server]` are required; every other key has a default that suits most apps, listed next to it below.

You never edit the native files by hand. `laravel-mobile sync` generates `tauri.conf.json`, `capabilities/mobile.json`, `Info.ios.plist`, the Android manifest permissions, `path-configuration.json` and the plugin registrations in `apps/mobile` from this file, and `dev` and `build` sync for you.

To check your file, run `laravel-mobile config check`. It reports every problem at once, each with its line and a suggested fix. Your editor completes keys too: `init` points `mobile.toml` at `apps/mobile/mobile.schema.json`. This page follows the CLI on the `main` branch, which can be ahead of the latest crates.io release; the [changelog](https://docs.lairport.app/changelog/) lists what isn't released yet.

## Example Configuration

Here is a `mobile.toml` file that uses every section, so you can see how they fit together:

```toml title="mobile.toml"
[app]
name = "Acme"
id = "com.acme.app"
version = "1.2.0"
build = 7
description = "Expenses for teams that travel."
category = "finance"
license = "MIT"

[server]
url = "https://acme.com"
start_path = "/dashboard"
allowed_hosts = ["auth.acme.com"]

[dev]
host = "auto"
port = 8000
vite_port = 5173

[ios]
minimum_version = "15.0"
team_id = "ABCDE12345"

[android]
min_sdk = 26

[icon]
source = "resources/mobile/icon.png"

[splash]
background = "#FFFFFF"
dark_background = "#0B0B0F"

[deep_links]
schemes = ["acme"]
hosts = ["acme.com"]
android_fingerprints = ["14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5"]

[permissions]
camera = "Scan receipts to attach them to expenses."
biometrics = "Unlock Acme with Face ID & Touch ID."
notifications = true

[plugins]
haptics = true
biometric = true

[[tabs]]
title = "Home"
path = "/dashboard"
icon = "home"

[[tabs]]
title = "Settings"
path = "/settings"
icon = "settings"
sf_symbol = "gear"

[[rules]]
patterns = ["/new$", "/edit$"]
presentation = "modal"
```

## `[app]`

The app's name, identifier, and version. Required.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `name` | string | required | The name shown under the app icon, 1 to 30 characters. |
| `id` | string | required | The reverse-DNS bundle ID and Android application ID, such as `com.acme.app`. Each segment starts with a letter and uses only letters and digits, because Android rejects `-` and Tauri rejects `_`. |
| `version` | string | `"1.0.0"` | The version users see, as `MAJOR.MINOR.PATCH`. |
| `build` | integer | `1` | The build number. Raise it for every store upload. |
| `description` | string | unset | One line about the app, at most 80 characters, such as `Keep every receipt with a photo.` Linux shows it under the app's name in menus and package managers. |
| `category` | `business`, `developer-tool`, `education`, `entertainment`, `finance`, `game`, `graphics-and-design`, `healthcare-and-fitness`, `lifestyle`, `medical`, `music`, `news`, `photography`, `productivity`, `reference`, `social-networking`, `sports`, `travel`, `utility`, `video`, `weather` | `"productivity"` | Where the desktop app is filed: the Linux menu section and the macOS app category. |
| `license` | string | unset | The app's license as an SPDX expression, such as `MIT` or `LicenseRef-Proprietary`. Linux packages list it, and list `unknown` without it. |

## `[server]`

The Laravel Rust server the app loads. Required.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `url` | string | required | The production URL the app loads. Must use `https`, except `localhost`. |
| `start_path` | string | `"/"` | The first page the app opens, such as `/dashboard`. |
| `allowed_hosts` | array of strings | `[]` | Hosts whose pages open inside the app besides `url`'s host, such as `auth.acme.com`, or `*.acme.com` for every subdomain. Links to every other host open in the system browser, and `mailto:` and `tel:` links in the mail and phone apps. On iOS, also list hosts that pages embed in iframes, such as `*.stripe.com` or `www.youtube.com`. |

## `[dev]`

How `laravel-mobile dev` serves the app to phones and simulators.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `host` | string | `"auto"` | The address phones use to reach this machine. `auto` picks a private address on Wi-Fi or Ethernet over container bridges, VPNs, and link-local addresses, and `dev` names the interface it chose. If your phone cannot reach it, set an IP or hostname here or pass `--host`. With one Android phone plugged in over USB, `dev android` uses `127.0.0.1`. |
| `port` | integer | unset | The Laravel Rust server's port. Defaults to `SERVER_PORT` in `.env`, else 8000. |
| `vite_port` | integer | `5173` | The Vite dev server's port. |

## `[ios]`

iOS settings.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `minimum_version` | string | `"15.0"` | The oldest iOS version the app runs on, as `MAJOR.MINOR`, at least `15.0`, the oldest version current Xcode builds for. |
| `team_id` | string | unset | The 10-character Apple Developer team ID. Needed to run on a device. |
| `info_plist` | object | unset | Extra `Info.plist` entries, such as `LSApplicationQueriesSchemes = ["comgooglemaps"]` or `UIBackgroundModes = ["audio"]`. Strings, numbers, booleans, arrays, and tables all work. The app's name, ID, version, and `[permissions]` set their own keys. |

## `[android]`

Android settings.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `min_sdk` | integer | `24` | The oldest Android API level the app runs on, at least 24. |
| `target_sdk` | integer | unset | The Android API level the app targets. Google Play requires a recent one for new uploads (36 since 2026-08-31). Without it, the app uses Tauri's, which `doctor --release` checks. |
| `compile_sdk` | integer | unset | The Android API level the app compiles against, at least `target_sdk` and 36, which Tauri's Android libraries need. Without it, the app uses Tauri's. |
| `meta_data` | object | unset | `<meta-data>` entries for the app's manifest, such as `"com.google.android.geo.API_KEY" = "${GOOGLE_MAPS_KEY}"`. `${NAME}` comes from the environment, then `.env`, so keys stay out of `mobile.toml`. A value starting with `@`, such as `@xml/config`, refers to a resource. |

## `[icon]`

The app icon.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `source` | string | `"resources/mobile/icon.png"` | A square PNG of at least 1024×1024, relative to the project root. |

## `[splash]`

The launch screen shown while the first page loads.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `background` | string | `"#FFFFFF"` | The launch screen color, as `#RRGGBB`. On Android it also colors the tab bar and the strips behind the status and navigation bars. |
| `dark_background` | string | unset | The launch screen color in dark mode, as `#RRGGBB`, and on Android the tab bar's and strips'. Without it, dark mode keeps `background`. |

## `[deep_links]`

Custom URL schemes and universal or app links that open the app.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `schemes` | array of strings | `[]` | Custom URL schemes, such as `acme` for `acme://` links. The app opens `acme://receipts/42` on `/receipts/42` of `server.url`. |
| `hosts` | array of strings | `[]` | Hosts whose `https` links open the app (iOS universal links, Android app links), on the link's path of `server.url`. |
| `android_fingerprints` | array of strings | `[]` | SHA-256 fingerprints of the keys that sign the Android app, such as `14:6D:E9:…`, from Play Console under Test and release, App integrity. The Laravel package serves them in `/.well-known/assetlinks.json`, which Android checks before `hosts` links open the app. |

## `[permissions]`

Device permissions the app asks for.

Each text permission is the reason iOS shows in its permission prompt. Setting one also adds the matching Android permission.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `camera` | string | unset | Why the app uses the camera. |
| `microphone` | string | unset | Why the app uses the microphone. |
| `photos` | string | unset | Why the app reads the photo library. |
| `location` | string | unset | Why the app uses the device's location while it is open. |
| `contacts` | string | unset | Why the app reads contacts. |
| `biometrics` | string | unset | Why the app uses Face ID or fingerprint unlock. |
| `notifications` | boolean | `false` | Whether the app shows notifications (POST_NOTIFICATIONS on Android). |

## `[plugins]`

Official Tauri mobile plugins to install, such as `haptics = true`.

Official Tauri v2 mobile plugins. Set a plugin to `true` to install it; `laravel-mobile sync` adds its crate, registers it, and grants its default permissions.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `barcode-scanner` | boolean | `false` | QR and barcode scanning. Needs `permissions.camera`. |
| `biometric` | boolean | `false` | Face ID, Touch ID, and fingerprint prompts. Needs `permissions.biometrics`. |
| `biometric-login` | boolean | `false` | Signs users back in with Face ID, Touch ID, or a fingerprint after their session ends, for `mobile.biometricLogin`. Needs `permissions.biometrics`. A paid plugin, from the `laravel-mobile` Cargo registry. |
| `clipboard-manager` | boolean | `false` | Read and write the clipboard. |
| `deep-link` | boolean | `false` | Handle deep links. Installed automatically when `[deep_links]` is set. |
| `dialog` | boolean | `false` | Native alert, confirm, and file dialogs. |
| `geolocation` | boolean | `false` | The device's location. Needs `permissions.location`. |
| `haptics` | boolean | `false` | Vibration and haptic feedback. |
| `notification` | boolean | `false` | Local notifications scheduled on the device. Push (APNs and FCM) is not included. Needs `permissions.notifications`. |
| `push-notifications` | boolean | `false` | Push notifications through Firebase on Android and APNs on iOS, for `mobile.push`. Needs `permissions.notifications`, and on Android your Firebase project's `resources/mobile/google-services.json`. |
| `offline` | boolean | `false` | Requests made offline wait on the phone and are sent once it is back online, for `mobile.offline`. A paid plugin, from the `laravel-mobile` Cargo registry. |
| `opener` | boolean | `false` | Open links and files in other apps. |
| `os` | boolean | `false` | Information about the device's operating system. |
| `secure-storage` | boolean | `false` | Secrets such as API tokens, kept in the iOS Keychain and the Android Keystore for `mobile.secureStorage`. A paid plugin, from the `laravel-mobile` Cargo registry. |
| `sqlite` | boolean | `false` | A local SQLite database with migrations, for `mobile.db`. It goes with the app's backups. A paid plugin, from the `laravel-mobile` Cargo registry. |
| `store` | boolean | `false` | A persistent key-value store. |

## `[[tabs]]`

The native tab bar: none, or 2 to 5 tabs. It shows on pages under a tab's path, and hides on others, such as the login page, and while the keyboard is open.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `title` | string | required | The tab's label. |
| `path` | string | required | The page the tab opens, such as `/dashboard`. |
| `icon` | one of the icons below | required | A built-in icon that maps to an SF Symbol on iOS and a Material Symbol on Android. |
| `sf_symbol` | string | unset | An SF Symbol name that overrides `icon` on iOS. |
| `material_icon` | string | unset | A Material Symbols name that overrides `icon` on Android. |

> **Keep tab labels short**
>
> Use one short word for each label, such as `Home` or `Alerts`. With a large system font, Android cuts a longer label short, so `Notifications` can show as `Notificatio…`.

Built-in icons: `bell`, `bookmark`, `calendar`, `camera`, `cart`, `chart`, `chat`, `folder`, `heart`, `home`, `inbox`, `list`, `map`, `plus`, `search`, `settings`, `star`, `user`.

## `[[rules]]`

Navigation rules, applied in order; later matches override earlier ones.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `patterns` | array of strings | required | Regular expressions matched against the URL path, such as `/edit$`. |
| `presentation` | `push`, `modal`, `replace`, `external` | `"push"` | How matching pages open. |
| `pull_to_refresh` | boolean | `true` | Whether pulling down reloads matching pages. |

- `push`: Push onto the navigation stack.
- `modal`: Open as a modal sheet. Falls back to `push` until v0.2.
- `replace`: Replace the current page.
- `external`: Open in the system browser.

## `[release]`

How `laravel-mobile build --release` builds for the stores. Secrets never go here.

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `android_targets` | array of `aarch64`, `armv7`, `i686`, `x86_64` | `["aarch64","armv7"]` | The Android CPU architectures in a release bundle. Fewer architectures build faster; `aarch64` and `armv7` cover nearly every phone on Google Play. |
| `play_track` | `internal`, `alpha`, `beta`, `production` | `"internal"` | The Google Play track `laravel-mobile submit android` uploads to. |
| `testflight_groups` | array of strings | `[]` | TestFlight groups that get each build `laravel-mobile submit ios` uploads. |

Source: https://docs.lairport.app/configuration/index.mdx
