Overview
Reinstall App uninstalls the app under test, installs the same build again, and launches it. The app then starts as a fresh install, with its first-run screens such as onboarding or a language picker. Unlike Restart App, which keeps the app’s data, Reinstall App removes it. By default, the app starts as it would for a new user.How to use
Write a step in plain language:Reinstall the app
Keep the keychain (iOS)
By default, Spur removes all of the app’s data, including its iOS keychain entries. A plain uninstall on an iPhone keeps the keychain, so a returning user can stay signed in after reinstalling. To test that returning-user case on iOS, say so in the step:Reinstall the app and keep the keychainReinstall the app and keep the user logged in
What happens after the reinstall
- Spur grants the app’s permissions again, as it does at the start of a test.
- Spur launches the app with the launch arguments set on the Environment.
- Values from an earlier
Restart the app with launch argumentsorRestart the app with settingsstep don’t carry over. Add that step again after the reinstall if you need them.
Example use cases
- First-launch testing mid-test: check onboarding after an earlier step set up an account
- Fresh install versus returning user: reinstall with and without the keychain (iOS) and compare
