Repository navigation
PocketNet v1.3.1 — RA login fix + DEV badge
PocketNet v1.3.1
A bug-fix-plus release. The big one: RetroAchievements login was returning HTTP 403 on real devices because RA's WAF rejects the default React Native okhttp User-Agent. v1.3.1 sends an explicit PocketNet/1.3.1 UA on every call to retroachievements.org. v1.3.1 also wires the RA score directly into the profile (so it stays up to date even without a Web API key), adds per-friend notification preferences, and introduces a single-account DEV badge with a pulsing glow.
New features
- RA score sync. When you log in to RetroAchievements your hardcore + softcore score is written to your profile (
ra_points,ra_softcore_points). When you re-open the app the score refreshes in the background via the connect-tokenlogin2flow — no password needed. - Per-user notification preferences. On any friend or follow's profile, pick exactly which pings you want: new posts, new achievements, new comments, or new friend connections. Stored owner-only in
notification_preferenceswith RLS. - DEV badge. A new permanently-glowing badge for the developer (
@dosuka). The eligibility check lives insideclaim_dev_badge()SECURITY DEFINER on the server — the badge cannot be granted to any other account, andaward_badge('dev')is explicitly denied. - OG + Collector backfill.
award_badge('verified')andaward_badge('collector')were missing in v1.3.0 so onboarding silently no-op'd those calls. v1.3.1 adds both branches server-side.
Fixes
- RetroAchievements login no longer returns 403. Root cause: Cloudflare WAF rejecting the default RN okhttp User-Agent. Fix: every request to
retroachievements.orgnow sendsUser-Agent: PocketNet/1.3.1 (+https://github.com/DosukaSOL/PocketNet). - Empty score on token-only login. Profiles with an RA token but no Web API key now display the cached score from
profiles.ra_pointsinstead of "—".
Security
claim_dev_badge()is SECURITY DEFINER and reads the caller's username fromprofilesviaauth.uid()— no way to grant the DEV badge by spoofing.award_badge('dev')is explicitly rejected by the server.notification_preferenceshas RLS enabled with owner-only policies (user_id = auth.uid()).- The RA password is still never persisted; only
ra_username+ra_tokengo touser_secrets. npm run check:secretspasses.
APK
- File:
PocketNet-v1.3.1.apk - SHA-256:
8c92ec114846e5055b0324a458862b742bd6b3dd6409224b29eabf7452e44ebc - versionCode: 14