Joining groups (code, QR, link)
You can belong to multiple groups. Join is not limited to “first time” users.
From the app
Welcome screen (no groups yet)
If you are not in any group, Home shows:
- Join a Group (Link/Code/QR)
- Create a New Group
Profile (already in one or more groups)
Profile → scroll to Join another group (above Create a New Group):
- Join a Group (Code / QR / Link) opens the same join flow.
Join methods
| Method | What you do |
|---|---|
| 6-character code | Admin shares code (e.g. A3K9XZ). Enter it on Join group. |
| QR in the app | On Join group, open the in-app camera scanner (allow camera). Scan the invite QR. Home ⋮ menu has Join a Group. |
| Nearby (BLE) | An admin can enable Broadcast to Nearby Users on Invite / Onboarding (advertises the group name). Members open ⋮ → Join a Group → BLE Scan to discover and join. |
| Link / system camera | Open https://app.swapsanity.com/join/CODE (or scan that QR with the phone camera). If the app is installed and deep links work, SwapSanity opens; if you are signed out you sign in first, then join continues. |
| NFC / BLE | Optional paths on the same Join screen when offered. |
After a successful join request, group admins must approve (unless your email is pre-approved on the roster). You will not see the group’s shifts until approved.
Pending approval notification
- In the app: Home shows an amber banner: “Your group join request is pending admin approval.” Tap it for details. The banner stays until an admin approves or rejects.
- After you submit: You also get an in-app notification (“Join request pending”).
- When decided: Push (FCM) + in-app notification if approved or declined.
- Admins: Get a push when someone requests to join (if they have notifications enabled).
How invite codes work
- A group admin opens Admin → Invite Members (or CLI
create-invite). - The screen shows a QR, the 6-character code, and the invite link, with Copy code, Copy link, and Share.
- The code and link expire after 24 hours.
- Public URL:
https://app.swapsanity.com/join/CODE(sandbox:https://sandbox.swapsanity.com/join/CODE). - The recipient opens the link or Join a Group and enters the code. The request stays pending until an admin approves.
App download
Scanning a join QR does not install the app by itself. Users need SwapSanity from the store (or web). Deep links open the app if already installed and universal links are configured.
Admin: approve requests
In the app: group onboarding / pending join requests UI.
CLI (as group admin):
swapsanity_cli --env sandbox list-join-requests --group-id GID
swapsanity_cli --env sandbox approve-join --request-id GID_USERUID
swapsanity_cli --env sandbox reject-join --request-id GID_USERUIDCreate invite:
swapsanity_cli --env sandbox create-invite --group-id GID
# → code + https://app.swapsanity.com/join/CODEJoin with code:
swapsanity_cli --env sandbox join-group --code A3K9XZ