Build, run & install

Start a fresh Preview device or have an Agent remove your app, then go through onboarding, sign-in and permission prompts again; on Android, have the app's data cleared.

Onboarding, a first sign-in and permission prompts show only the first time your app runs. To see them again in Preview, the app has to start as if it were new on the device.

Reinstall (on iPhone, the app’s icon, Restart App) doesn’t do that. It installs the latest build over the app that’s already on the device without removing it first, and so does opening Preview. To start fresh, use one of these:

Way What starts fresh Who does it
Start a fresh device (cloud Team) The whole device: your app and what it saved, other apps, photos and settings You, in Preview’s device menu
Remove your app Your app An Agent removes it, you put it back with Reinstall
Clear your app’s data (Android) Your app’s data An Agent

The Preview devices are shared by the Team. Whatever you reset is reset for everyone using that device, and for the Agents testing on it.

Start a fresh device (cloud Team)

In a cloud Team, a device that was shut down comes back as a fresh device, without your app or anything else that was on it.

  1. Tap the device name in the navigation bar to open the device menu.
  2. Tap Shut Down device. Preview says “Preview is turned off.”
  3. Tap Start Preview. Starting can take a while.
  4. When the device is up, tap the app’s icon (Restart App). The latest build goes on the device and opens as on its first run.

Everything else on the device is gone too: photos an Agent added, Dark Mode or a text size an Agent set, services it turned on. To set them up again, see Put photos, videos or contacts on the Preview device, Check your app in Dark Mode and with larger text and Make Siri, Spotlight or iCloud work in Preview.

In a local Team, the devices run on the Team’s Mac, and the simulator help doesn’t say whether one comes back fresh. Remove the app instead.

Remove your app and install it again

This resets only your app, and leaves the rest of the device as it is.

  1. Note the device you’re looking at. Its name is on the device menu.

  2. In the project’s chat, ask the Agent to remove your app from it, for example:

    Remove my app from the iPhone in Preview. I want to go through onboarding again.
  3. The Agent removes the app from that device with simulator uninstall and tells you when it’s done.

  4. Tap Reinstall (on iPhone, the app’s icon, Restart App). The latest build goes on the device and opens as on its first run.

  5. Go through onboarding and sign-in. To type a saved test account into your app, see Save logins for Agents.

Name the device in your request. Picking a device in Preview changes only what you see; an Agent removes the app from the device you name, or else from the Team’s default device.

To go through it again, ask again. The simulator help doesn’t say whether the device also forgets your answers to the app’s permission prompts (camera, location, notifications and so on) when the app is removed. If a prompt you want to see doesn’t come back, start a fresh device in a cloud Team.

On an Android phone (beta)

On an Android phone in Preview, the Agent can wipe your app’s data instead of removing the app. The simulator help says this leaves the app as a fresh install would have it, and stops it. Android phones are in cloud Teams only. See Make an Android or PocketJS version (beta).

  1. Ask in the project’s chat, for example:

    Clear my app's data on the Android phone in Preview.
  2. The Agent clears the data with simulator clear-data and the app stops.

  3. Tap Restart App (on the Mac, Reinstall) to open the app again.

To see a permission prompt again, ask the Agent to take that permission back from your app, for example:

Take back the camera and location permissions from my app on the Android phone in Preview.

The Agent can take back camera, microphone, location, background location, contacts, calendar, photos, notifications, phone, Bluetooth and activity permissions. Taking a permission back stops the app.

Questions

I tapped Reinstall, but the app still remembers me.
Reinstall installs over the app without removing it. Start a fresh device, or ask an Agent to remove the app first.
The app still signs me in after the Agent removed it.
Your app may keep the sign-in somewhere removing the app doesn’t clear. Ask the Agent where your app keeps it, or, in a cloud Team, start a fresh device.
Sign-up says the account already exists.
Starting fresh on the device doesn’t touch the accounts on your app’s server. Sign up with another email, or delete the test account. If your app uses AirHost’s sign-in, see See and manage your app’s users.
Can I remove the app myself in Preview?
AirBuild has no button that removes only your app. Ask an Agent, or start a fresh device.
Someone else was using the device when I shut it down.
Shutting a device down ends it for everyone on it, Agents included, and in a cloud Team it comes back fresh. Before you shut a device down, check that nobody in your Team is in the middle of something on it, or remove only your app instead.