Skip to content

Commit 153d9fb

Browse files
sprobst76claude
andcommitted
fix(android): add missing GeofenceForegroundService declaration
Critical fix for automatic time tracking via geofence: - Add service declaration to AndroidManifest.xml: com.f2fk.geofence_foreground_service.GeofenceForegroundService - Add ProGuard keep rule to prevent service obfuscation - Fixes error: "Unable to start service R0.d not found" The geofence background service was being obfuscated by R8 and couldn't be found by the Android system when trying to start it. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8b2ae39 commit 153d9fb

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ und dieses Projekt folgt [Semantic Versioning](https://semver.org/lang/de/).
1414

1515
---
1616

17+
## [0.1.0-beta.28] - 2026-01-14
18+
19+
### Behoben
20+
- **Geofence Service nicht gefunden**: Kritischer Fix für automatische Zeiterfassung
21+
- Service-Deklaration in AndroidManifest.xml hinzugefügt
22+
- ProGuard-Regel hinzugefügt um Obfuscation des Services zu verhindern
23+
- Fehler "Unable to start service R0.d not found" behoben
24+
25+
---
26+
1727
## [0.1.0-beta.27] - 2026-01-13
1828

1929
### Hinzugefügt

android/app/proguard-rules.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@
1818
# Prevent stripping of generic type information
1919
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
2020
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
21+
22+
# Geofence Foreground Service - prevent obfuscation
23+
-keep class com.f2fk.geofence_foreground_service.** { *; }

android/app/src/main/AndroidManifest.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@
5252
<meta-data
5353
android:name="flutterEmbedding"
5454
android:value="2" />
55+
56+
<!-- Geofence Foreground Service for background location tracking -->
57+
<service
58+
android:name="com.f2fk.geofence_foreground_service.GeofenceForegroundService"
59+
android:foregroundServiceType="location"
60+
android:exported="false">
61+
</service>
5562
</application>
5663
<!-- Required to query activities that can process text, see:
5764
https://developer.android.com/training/package-visibility and

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: time_tracker
22
description: Zeiterfassung mit Geofence, Urlaub, Feiertagen & ICS-Sync
3-
version: 0.1.0-beta.27+27
3+
version: 0.1.0-beta.28+28
44
publish_to: 'none'
55

66
environment:

0 commit comments

Comments
 (0)