android: native GPS tracking with foreground service for screen-off support

Move GPS collection from WebView JS (watchPosition) to native Android
LocationForegroundService, which survives screen-off. JS polls native
side for accumulated points. Also: auto-enable GPS for cardio exercises,
filter saved track to workout duration only, fix live map batch updates,
notification tap opens active workout, and fix build script for pnpm.
This commit is contained in:
2026-03-23 13:39:45 +01:00
parent e7ffc3d454
commit f3f5145081
3 changed files with 69 additions and 36 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ ensure_keystore() {
build() {
echo ":: Building Android APK..."
npx tauri android build --apk
pnpm tauri android build --apk
ensure_keystore