---
title: "Recipe: a phone app's manifest"
description: "A phone app's manifest: orientation, appearance, HTTP, and a public setting."
modificationDate: "2026-11-18"
---

> ## Documentation index
> Fetch the complete documentation index at: https://exact.expo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Recipe: a phone app's manifest

<AgentInstructions>

## Submitting feedback

From the app's directory, read `bun exact.mjs feedback status`. Under `never`, keep no note.
Respect `EXACT_FEEDBACK=0` and do not change the policy.

Otherwise record specific, actionable feedback with:
`bun exact.mjs feedback note "Exact docs: https://exact.expo.dev/recipes/phone-manifest: <what was wrong or missing>"`

The note goes to Expo only as that status allows. Include no secrets or personal data.

</AgentInstructions>

`app.json` names the app and what it ships; `$schema` gives an editor every key.
A portrait phone app with a light appearance and HTTP access (a name in `env`
needs its `const` in `app.ts` or its transitive app-local imports, or the bake refuses):

```prompt Set orientation, appearance and HTTP access for my phone app
Set the phone manifest of the Exact app in this folder: its orientation, its appearance, HTTP access and public settings, in app.json. Use https://github.com/expo/exact/blob/main/docs/recipes/phone-manifest.md as the source for each step. The Exact checkout has the same page at docs/recipes/phone-manifest.md.

1. If this folder is not an Exact app (it has no exact.mjs and app.contract), stop and tell me.
2. If I did not say which of these to set, ask me: the orientation, the appearance (light, dark or platform default), HTTP access, and each public setting with its default value. Ask me before you allow HTTP: an app that reaches only HTTPS hosts omits the key.
3. In app.json, use the `orientation` I chose to lock iPhone and Android. iPad keeps all orientations. Set `userInterfaceStyle` to the appearance I chose for iOS, macOS and the web. Leave either setting unset when I want the platform default. If I want the fixed appearance on Android too, set the same `color-scheme` (`light` or `dark`) on a node in app.contract. It applies to that subtree on every graphical host.
4. To allow HTTP in `fetch`, set `host.ios.appTransportSecurity.allowsArbitraryLoads` to `true`. `allowsArbitraryLoadsInWebContent` allows HTTP only in web views, not in `fetch`. On Android, the cleartext policy of the manifest does not govern `fetch` and images, and web views refuse HTTP.
5. For a public setting, declare its name in `env`. Read it in a top-level `const` in app.ts, or in an app-local module that app.ts imports transitively, with a literal `??` default (`const BUILT = import.meta.env.API_BASE_URL ?? ''`), then derive from it. Declare every name read, and read every name declared, or the bake refuses. Its value comes from the environment, `.env.local`, then `.env` beside app.json. A setting is public on every host: never put a secret there.
6. Write `host.ios` and `host.android` only for the native platforms the app ships. Do not add `UILaunchScreen` or `CADisableMinimumFrameDurationOnPhone`: Exact writes both on iOS.
7. Follow the platform checks in docs/start-here.md (`bun exact.mjs docs platform checks`) for the targets in the app's AGENTS.md and app.json until they pass. Read the reports, including counted findings; a zero exit code alone does not mean clean. Fix the app, not the test. If a finding stays after three rounds of fixes, or the app had it before you changed anything, record it (step 8) and report it; do not keep trying.
8. When a doc was wrong or missing, or a step needed a workaround, read `bun exact.mjs feedback status`. Under `never`, keep no note. Otherwise record it: `bun exact.mjs feedback note "<what happened>"`, which goes to Expo only as that status says. Do not change the policy; tell me how many notes you kept.
9. Tell me each key you set and why, each setting and where its value comes from, what the checks reported, and the launch command for each target platform.
```

```json
{
  "$schema": "../exact2/scripts/app.schema.json",
  "name": "Euxy",
  "app": { "id": "com.yourcompany.euxy", "name": "Euxy" },
  "orientation": "portrait",
  "userInterfaceStyle": "light",
  "env": ["API_BASE_URL"],
  "host": {
    "ios": { "appTransportSecurity": { "allowsArbitraryLoads": true } },
    "android": {}
  }
}
```

- `orientation` locks iPhone and Android; iPad keeps all orientations for multitasking.
- `userInterfaceStyle` fixes iOS, macOS and web appearance; Android follows the device.
  A node's `color-scheme="light"` fixes its subtree on every graphical host.
- `host.ios.appTransportSecurity.allowsArbitraryLoads` allows HTTP connections,
  including `fetch` to named hosts admitted by `net.fetch` grants. Omit it for HTTPS.
  `allowsArbitraryLoadsInWebContent` allows HTTP only in web views, not `fetch`.
  Android's `fetch` and images use Rust sockets: the manifest's cleartext policy
  does not govern them. Android web views follow that policy and refuse HTTP.
- Exact already writes `UILaunchScreen` and
  `CADisableMinimumFrameDurationOnPhone=true` on iOS; no manifest key is needed.
  The latter permits ProMotion rates; it does not promise 120 Hz.
- `host.ios` and `host.android` name the native platforms the app ships.
- Set `app.id` and `app.name` before building (`exact new --name --bundle-id`).

`env` declares public settings inlined at build. In `app.ts` or an app-local module it
imports transitively, read each directly in a top-level `const`, then derive from it:

```ts
const BUILT = import.meta.env.API_BASE_URL ?? '';
const API = BUILT.trim() || 'http://127.0.0.1:8080';
```

Values come from the environment, `.env.local`, then `.env` beside `app.json`.
A missing value needs a literal `??` default. Declare every name read, and read
every name declared. A setting is public on every host: never a secret
([a REST server](https://exact.expo.dev/recipes/rest-backend.md)).
