# Install and update the mobile app

There are two PiGi apps — PiGi for live use and PiGi (Staging) for testing — and they install side by side. The app checks for updates behind the splash screen at launch, again every time you bring it to the foreground, and every five minutes, showing a purple "Update available" banner with a Restart button.

Source: https://help.pigi.io/guides/mobile/getting-started/install-and-update

## Quick answers

**Which app should I install?**
**PiGi** — the live app. **PiGi (Staging)** is a separate test app connected to PiGi's
test system; only install it if someone asked you to test something.

**Can I have both apps installed?**
Yes. They have different names, icons and identifiers, so they sit side by side and
keep separate logins.

**How do I know which one I am in?**
The test app is called **PiGi (Staging)** on your home screen. If in doubt, check
what data you can see — the test app has test schools in it.

**How does the app update itself?**
Most updates arrive over the air, with no app store involved. The app checks at
launch behind the splash screen, on every return to the foreground, and every five
minutes while running.

**What is the purple "Update available" banner?**
An update has already downloaded. Tap **Restart** to apply it. Nothing is lost —
anything queued to sync is stored on the device and survives the restart.

**Do I have to restart when the banner appears?**
Not immediately, but do it before your next flying day so you are on the current
version.

**Where do I see my app version?**
Open the drawer. The version is in the footer next to **Logout**, as **v1.0.0**.

**Some updates still need the app store. Why?**
Over-the-air updates only carry changes to the app's screens and behaviour. A change
that needs new access to your phone — a new sensor or a new permission — needs a fresh
build from the store or the test link.

**How do I join the test group?**
On iOS through **TestFlight**; on Android through a Google Play testing track. Ask
your school admin for the invitation.

**I updated and something looks wrong. Can I go back?**
Not from the app. Report it — an update can be rolled back centrally, and the next
launch will pick up the rollback.

## What happens at launch

1. The splash screen stays up while the app checks for an update.
2. If one is available it downloads and the app reloads straight into it — you may
   see the splash for a couple of seconds longer than usual.
3. Your stored session is restored, so you land on your dashboard rather than the
   sign-in screen.
4. A sync runs in the background and the offline banner appears if anything is
   queued.

## Known limitations

- **No in-app update history.** The drawer shows the version number only; there is
  no changelog.
- **The banner is only on the tab screens.** If you are on a drawer screen you will
  not see it until you go back.

## Related

- [Sign in to the PiGi mobile app](sign-in-on-mobile.md)
- [Working offline on mobile and how sync works](offline-and-sync.md)
