Start your app fresh in Preview, like a first-time user
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.
- Tap the device name in the navigation bar to open the device menu.
- Tap Shut Down device. Preview says “Preview is turned off.”
- Tap Start Preview. Starting can take a while.
- 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.
- Click the device name over the device to open the device menu.
- The device’s row says Running. Open it and choose Restart. You can also choose Shut Down, then click Start Preview. Starting can take a while.
- When the device is up, click Reinstall. 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.
-
Note the device you’re looking at. Its name is on the device menu.
-
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. -
The Agent removes the app from that device with
simulator uninstalland tells you when it’s done. -
Tap Reinstall (on iPhone, the app’s icon, Restart App). The latest build goes on the device and opens as on its first run.
-
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).
-
Ask in the project’s chat, for example:
Clear my app's data on the Android phone in Preview. -
The Agent clears the data with
simulator clear-dataand the app stops. -
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.