# PoGO Friends — setup guide (markdown version)

Full illustrated guide: https://trainercodes.app/guide

Goal: a one-tap gesture that puts the next fresh Pokémon GO friend code on your
clipboard without leaving the game. Setup is done once per phone.

## iPhone (~3 minutes, Shortcuts app)

Create one shortcut named "Next PoGO Friend" with these four actions in order:

1. **Get Contents of URL**
   - URL: `https://pogotrainer.club/?page=0`
   - Show More → Method: GET → add header `User-Agent` =
     `Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1`
2. **Get Contents of URL** (a second one)
   - URL: `https://trainercodes.app/api/next?user=YOURNAME`
   - Show More → Method: POST → Request Body: **File** → pick the magic variable
     **"Contents of URL" from action 1** (not "Clipboard")
3. **Copy to Clipboard** — input: "Contents of URL" from action 2
4. **Show Notification** — text: `Copied:` + magic variable "Clipboard"

Hook it to a gesture: Settings → Accessibility → Touch → Back Tap → Double Tap →
"Next PoGO Friend". Double-tap the back of your phone while in Pokémon GO's
Add Friend screen, then long-press the code field and Paste.

Common mistakes: the two URL actions must be in the SAME shortcut; the File field
in action 2 must point at action 1's output, not the clipboard.

## Android (no setup — split screen)

1. Open https://trainercodes.app in Chrome
2. Open Pokémon GO → Friends → Add Friend
3. Recent apps → tap the Chrome icon → Split screen → pick Pokémon GO
4. Tap "Copy next friend code", paste in the game, Send. Repeat.

Tip: stop the paste-permission popup via Settings → Apps → Pokémon GO →
"Paste from other apps" → Allow.

## No setup at all

The front page button works in any browser — tap, switch to the game, paste.
