Skip to main content

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 keychain
  • Reinstall the app and keep the user logged in
On Android, Spur always removes all app data.

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 arguments or Restart the app with settings step 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

Platform support

Works on both iOS and Android. Keeping the keychain works on iOS only.