Android-Back: @capacitor/app verdrahtet, Zurueck-Geste beendet die App nicht mehr

Capacitor 7 behandelt Zurueck gar nicht selbst, das macht @capacitor/app -- das
Plugin fehlte, also lief jede Zurueck-Geste an der WebView vorbei direkt in
finish(). Die History-Eintraege pro Sheet (#63) haben nur im Browser gewirkt.

Neu: lib/back.js entscheidet Sheet -> Seite -> zweimal Zurueck zum Beenden
(exitApp, weil das Plugin mit registriertem Listener nie mehr selbst beendet),
gesperrte Sheets schlucken Zurueck weiterhin. Version auf 1.2.8/versionCode 9.
This commit is contained in:
Duarte Santos committed 2026-08-19 16:30:32 +02:00
1 parent e69673d3cd
commit 19a441d93e
21 files changed
+215 -5

No files matched your search

+12
View File
@@ -1,5 +1,17 @@
# Changelog
## Unreleased
### Fixes
- ⬅️ **The back gesture no longer quits the app** (Android). The packaged app never listened for
the system back event at all — Capacitor leaves that to `@capacitor/app`, which was not
installed — so a back swipe went straight past the WebView and finished the activity from
wherever you were. The per-sheet history entries added in [#63] only ever did anything in a
browser tab. Back now dismisses the open sheet, then walks back through the screens you came
from, and only leaves the app after a second press at the root ("Press back again to exit").
A sheet that is locked mid-task still swallows back, as it does in the browser.
## v1.2.7 — 2026-08-18
The muscle map answers a third question. Balance showed where the volume went and Fatigue what was