Skip to content

PocketNet v1.3.1 — RA login fix + DEV badge

Choose a tag to compare

@DosukaSOL DosukaSOL released this 19 May 07:33
· 4 commits to main since this release

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-token login2 flow — 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_preferences with RLS.
  • DEV badge. A new permanently-glowing badge for the developer (@dosuka). The eligibility check lives inside claim_dev_badge() SECURITY DEFINER on the server — the badge cannot be granted to any other account, and award_badge('dev') is explicitly denied.
  • OG + Collector backfill. award_badge('verified') and award_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.org now sends User-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_points instead of "—".

Security

  • claim_dev_badge() is SECURITY DEFINER and reads the caller's username from profiles via auth.uid() — no way to grant the DEV badge by spoofing.
  • award_badge('dev') is explicitly rejected by the server.
  • notification_preferences has RLS enabled with owner-only policies (user_id = auth.uid()).
  • The RA password is still never persisted; only ra_username + ra_token go to user_secrets.
  • npm run check:secrets passes.

APK

  • File: PocketNet-v1.3.1.apk
  • SHA-256: 8c92ec114846e5055b0324a458862b742bd6b3dd6409224b29eabf7452e44ebc
  • versionCode: 14