You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Cross-device save sync (account login or iCloud/Git-based sync) #257
I use PokeTokenBar on two Macs (home + office) and would love a way to keep a single companion / Pokédex across both machines. Right now each Mac raises its own Pokémon from scratch, and the progress is effectively split in half.
Current workaround
v2.5.3 has Settings → Backup & Migration → Export / Import save, which works, but it's a manual, one-shot copy. In practice I forget to export before switching machines, and importing overwrites rather than merges, so I end up losing whatever I did on the other Mac.
Proposal
Add an opt-in sync so the save (Pokédex, cumulative tokens, bag, current companion) follows the user across devices. A few possible approaches, in rough order of how much they preserve the current on-device / no-upload design:
iCloud Drive (or any synced folder) as save location — let the user point the save file at ~/Library/Mobile Documents/... or a custom folder, and have the app reload on external change. No new backend, no account.
GitHub Gist / private repo sync — sign in with GitHub, store the save JSON in a private gist. Fits the developer audience and GitHub is already a host the app talks to for update checks.
Sign in with Apple / Google + hosted sync — most convenient but adds a server and an account; probably out of scope given the privacy stance.
Any of these would need a merge step rather than a plain overwrite (e.g. union of Pokédex/catch log, sum of cumulative tokens, pick the most recent companion state), so the two machines don't clobber each other.
Activity