Skip to content

Adding a person to test the app

How to set up someone new to try the app on their own phone: a tester, a family member, or another senior. It takes about ten minutes, plus the wait for Apple's TestFlight invite.

A person needs three things: an account with their own memory bank on the server, the app on their phone from TestFlight, and a one-time code that connects the two. Each step below gives one of them.

1. Make their account

From the repo root. Use their first name, or first and last if two people share one:

cd ~/Documents/GitHub/SilverApp && pnpm add-person "Marcus" --remote

It prints what it made: the account (marcus-senior) and their memory bank (bank-marcus). Without --remote it writes to the local development database instead, for trying things out.

  • A name that is already there is left alone, and the script says so.
  • "Could not reach the database" means wrangler's login has gone stale. Run cd ~/Documents/GitHub/SilverApp/apps/api && npx wrangler whoami, which refreshes it, then run the script again.

Their account has no email and no password. Their phone signs in with the code in step 3, which is all a tester needs. They do not sign in on the web app; Loved Ones do that for them.

Who can add their photos

A superadmin (Thomas) reaches every memory bank, so the new person's photos and code can always be made from his sign-in. Anyone else needs to be named. A Loved One who already signs in on the web app is named when the person is added:

cd ~/Documents/GitHub/SilverApp && pnpm add-person "Lin" --loved-one benji@example.com --remote

A Loved One who is new to the app gets their own account, with access to the people named after --for, and nothing else:

cd ~/Documents/GitHub/SilverApp && pnpm add-loved-one "Benji" benji@example.com --for Lin --remote

It prints a password once. Pass it on by phone or in person, not by email; only a hash of it is stored. They can also skip it: Email me a sign-in link or Forgot your password? on the sign-in page works with just their email (Signing in by email). Benji then signs in at the family web app, sees Home headed "Lin's phone" and nobody else, and can add her photos and make her code. --for can repeat for a Loved One who curates two people, and --superadmin makes an account that reaches everyone instead. Families and the superadmin has the design.

2. Put the app on their phone

Testers outside the team go in the SHA External Tester group in TestFlight. It is an external group: anyone with an email address can be invited, and they never see App Store Connect.

Invite them

  1. Sign in at App Store Connect and open Apps, then the Senior Health App.
  2. Open the TestFlight tab. In the left sidebar, under External Testing, choose SHA External Tester.
  3. On the group's Testers tab, press +, then Add New Testers. Enter their email address (first and last name are optional) and press Add.
  4. On the group's Builds tab, check that the latest build is listed. If it is not, press + next to Build and add it. A tester gets nothing until the group has a build.

TestFlight emails them. They install the TestFlight app from the App Store, accept the invite, and install the Senior Health App from it. The invite works with whichever Apple ID they accept it on, not only the email address it was sent to.

"Waiting for Review"

The first build added to the group goes to Apple's Beta App Review, and its status on the group's Builds tab reads Waiting for Review, then In Review. It usually clears within a day, sometimes two. While it waits:

  • Add the tester anyway. Their invite goes out on its own as soon as the build is approved.
  • Leave it alone. Do not upload or submit another build to hurry it along; that starts the wait over.
  • Fill in Test Information (TestFlight, under General Information): a beta app description, a feedback email, and the reviewer's contact details. A missing field stalls the review.
  • Say no sign-in is needed. Under Beta App Review Information, turn off Sign-in required and note that the app opens to sample memories without an account. Reviewers turn down apps they think they cannot get into.

Once a build has passed, later builds added to the group usually reach testers without a full review, often within minutes.

If they need it today

An internal tester skips the review, but must first be a user on the team: invite them under Users and Access with a limited role (Developer or Marketing), and once they accept, add them to an Internal Testing group. They then see App Store Connect at that role's level, so keep this for someone trusted; everyone else waits for the review.

Check the build

In TestFlight on their phone, the version should match the latest build, for example 1.196.0 (38).

3. Connect their phone

  1. On the family web app, sign in. On Home, under Whose memories, choose the new person. Open More, then Connect a phone, and make a code. It works once, for 30 minutes.
  2. On their phone, open the app and go to Settings.
  3. Under Who is using the app, choose Thomas. The phone's list of people is fixed in the build; Thomas is the slot with no bundled memories, so a tester sees only the photos added for them. (Tom has his own memories built in, so his phone stays on Tom.)
  4. Tap Next to reach Family photos, tap Use Code, and enter the code.
  5. Expect: "Connected to Marcus's family photos."
  6. Add a photo or two for them on the web app's Photos and videos page, so their first session has something to show. Then on their phone, go to the home screen and back, and tap Memories.

From then on, every time they open the app appears in the App opens sheet under their name. Note their phone's id (the Phone column) on the sheet's Phones tab, so the phones can be told apart later.

Taking someone off

There is no script for this yet. Their opens and photos stay in the database; to stop their phone, make a new code for them and never enter it, or on their phone tap the green Connected button in Settings, then Disconnect.