Decentralized social media network — no central server, user-owned data
Find a file
Scott Reimers bbc17f8855 fix(android): close button now actually stops the node service
The close button called stopService() and then app.exit(0) immediately.
stopService() is asynchronous — it posts to ActivityManager and onDestroy
runs later on the main thread — so the process often died mid-flight.
Android saw a foreground service whose process had died and, per
onStartCommand returning START_STICKY, restarted it. Whether the clean
path won was pure timing, which is why this worked when v0.7.3 shipped
and stopped working under v0.8's heavier startup and shutdown.

Nothing in gen/android had changed since v0.7.3 (verified: the diff is
empty) — this was a latent race, not a regression.

Fix, in two layers:
- NodeService persists a user_quit flag to SharedPreferences (commit(),
  not apply(), since the process may die moments later). stopFromNative
  sets it BEFORE calling stopService. onStartCommand treats a null intent
  as "Android resurrected me" and, if the flag is set, calls
  stopForeground(STOP_FOREGROUND_REMOVE) + stopSelf() and returns
  START_NOT_STICKY. MainActivity clears the flag on genuine launch, so a
  system-initiated kill still resumes via START_STICKY — the case that
  behaviour exists for.
- exit_app awaits 400ms between the stop and app.exit(0) so the clean
  path usually wins; the persisted flag is the backstop when it doesn't.

Not rebuilt — batching for 0.8.1.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LGiPD2cF75mnvneSCjdDC5
2026-08-06 23:54:00 -04:00
crates fix(android): close button now actually stops the node service 2026-08-06 23:54:00 -04:00
deploy ItsGoin v0.3.2 — Decentralized social media network 2026-03-15 20:23:09 -04:00
docs docs: spec cleanup — Layer 5 wording, Layer 3 banner, Layer 6 superseded 2026-05-13 01:10:43 -04:00
frontend feat: v0.8 Iteration C UI — mesh/temp slot display, N4 reach badge 2026-07-30 13:05:20 -04:00
scripts fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
website docs: v0.8.0-alpha release notes — comment retention + gated-post sync 2026-08-06 22:54:29 -04:00
.gitignore Add build-appimage.sh and deploy.sh automation scripts 2026-04-19 16:01:34 -04:00
.sync-exclude.lst ItsGoin v0.3.2 — Decentralized social media network 2026-03-15 20:23:09 -04:00
AGENTS.md Adopt multi-contributor git workflow (CONTRIBUTING.md + AGENTS.md + sessions.md) 2026-04-23 20:07:54 -04:00
ARCHITECTURE.md ItsGoin v0.3.2 — Decentralized social media network 2026-03-15 20:23:09 -04:00
build-appimage.sh Add build-appimage.sh and deploy.sh automation scripts 2026-04-19 16:01:34 -04:00
Cargo.lock feat: v0.8 Iteration C UI — mesh/temp slot display, N4 reach badge 2026-07-30 13:05:20 -04:00
Cargo.toml ItsGoin v0.3.2 — Decentralized social media network 2026-03-15 20:23:09 -04:00
CONTRIBUTING.md Adopt multi-contributor git workflow (CONTRIBUTING.md + AGENTS.md + sessions.md) 2026-04-23 20:07:54 -04:00
deploy.sh feat: v0.8 Iteration C — narrow mesh, N1-N4 uniques index, anchor convection 2026-07-30 13:03:12 -04:00
download-page.html ItsGoin v0.3.2 — Decentralized social media network 2026-03-15 20:23:09 -04:00
IMPLEMENTATION_PLAN_0.6.md Implementation plan: drop cross-version compat, beta/stable as separate networks 2026-04-21 18:26:55 -04:00
pic2.png v0.4.4: UI overhaul — sticky header, mobile nav, profiles/redundancy lightboxes 2026-03-23 00:56:27 -04:00
project discussion.txt ItsGoin v0.3.2 — Decentralized social media network 2026-03-15 20:23:09 -04:00
project-notes-from-elitebook.md ItsGoin v0.3.2 — Decentralized social media network 2026-03-15 20:23:09 -04:00
sessions.md docs: flip FoF section 20a badges to v0.7.0 + sessions.md release entry 2026-05-14 20:57:25 -06:00
TODO.md ItsGoin v0.3.2 — Decentralized social media network 2026-03-15 20:23:09 -04:00