transistorsoft / flutter_background_geolocation

Sophisticated, battery-conscious background-geolocation & geofencing with motion-detection
https://www.transistorsoft.com/shop/products/flutter-background-geolocation
Other
639 stars 235 forks source link

Multiple geofence events triggered for a single geofence registration when registered individually #1298

Closed zigapovhe closed 3 months ago

zigapovhe commented 3 months ago

When a user registers multiple geofences one by one for the first time while being located within one of the geofences, they receive a number of geofence events equal to the total number of geofences registered, all pertaining to the geofence they are currently within. This issue does not occur when geofences are registered all at once.

Your Environment

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.4.1 23E224 darwin-arm64, locale en-SI)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.89.1)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

Expected Behavior

The user should receive only one geofence event for the geofence they are currently within.

Actual Behavior

The user receives a number of geofence events equal to the total number of geofences registered, all corresponding to the geofence they are currently located in.

Steps to Reproduce

1.  Ensure no geofences are currently registered.
2.  Physically position yourself within the area of a specific geofence.
3.  Register multiple geofences individually using the following code snippet:
    bg.BackgroundGeolocation.addGeofence(bg.Geofence(
    identifier: identifier,
    latitude: geofence.latitude,
    longitude: geofence.longitude,
    radius: geofence.radius!.toDouble(),
    notifyOnEntry: true,
    notifyOnDwell: false,
    notifyOnExit: false));
5.  Observe the logs for geofence events.

Example

If a user registers five different geofences individually while being within the boundaries of one of them, they receive five geofence events, all for the geofence they are currently in.

Working workaround

Register all geofences at once using the following code snippet:

 await bg.BackgroundGeolocation.addGeofences(geofences); 

When registered this way, the issue does not occur.

Debug logs

Logs ``` 2024-05-20 10:18:56.027 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.u.LocationAuthorization withBackgroundPermission] ℹ️ LocationAuthorization: Permission granted 2024-05-20 10:18:56.045 20694-21146 TSLocationManager com.spica.spica_doorcloud I - Enable: true → true, trackingMode: 1 2024-05-20 10:18:56.056 20694-21146 TSLocationManager com.spica.spica_doorcloud I [c.t.l.g.TSGeofenceManager start] 🎾 Start monitoring geofences 2024-05-20 10:18:56.065 20694-21146 TSLocationManager com.spica.spica_doorcloud D [c.t.l.http.HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 2024-05-20 10:18:56.066 20694-21146 TSLocationManager com.spica.spica_doorcloud D [c.t.l.device.DeviceSettings startMonitoringPowerSaveChanges] 🎾 Start monitoring powersave changes 2024-05-20 10:18:56.074 20694-21146 TSLocationManager com.spica.spica_doorcloud I [c.t.l.s.ActivityRecognitionService start] 🎾 Start motion-activity updates 2024-05-20 10:18:56.099 20694-21146 TSLocationManager com.spica.spica_doorcloud I [c.t.l.service.HeartbeatService stop] 🔴 Stop heartbeat 2024-05-20 10:18:56.134 20694-20694 TSLocationManager com.spica.spica_doorcloud I [c.t.l.l.TSLocationManager a] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 1 (116489ms old) ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 45.869768,15.246993 hAcc=20.11 et=+3d7h46m21s384ms alt=244.8000030517578 vAcc=0.96338093 {Bundle[{battery_level=0.95, is_charging=true, odometer=0.0}]}], time: 1716193019644 2024-05-20 10:18:56.135 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.l.TSLocationManager a] Median accuracy: 20.11 2024-05-20 10:18:56.170 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.u.LocationAuthorization withPermission] ℹ️ LocationAuthorization: Permission granted 2024-05-20 10:18:56.194 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] 🎾 start [LocationRequestService startId: 1, eventCount: 1] 2024-05-20 10:18:56.196 20694-21146 TSLocationManager com.spica.spica_doorcloud I [c.t.l.l.SingleLocationRequest startUpdatingLocation] 🔵 [SingleLocationRequest start, action: 1, requestId: 1] 2024-05-20 10:18:56.198 20694-21146 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] ⚙️︎ FINISH [LocationRequestService startId: 1, eventCount: 0, sticky: true] 2024-05-20 10:18:56.234 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] 🎾 start [ActivityRecognitionService startId: 1, eventCount: 1] 2024-05-20 10:18:56.240 20694-21146 TSLocationManager com.spica.spica_doorcloud D [c.t.l.s.ActivityRecognitionService a] 🚘 ️DetectedActivity [type=STILL, confidence=100] 2024-05-20 10:18:56.253 20694-21146 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] ⚙️︎ FINISH [ActivityRecognitionService startId: 1, eventCount: 0, sticky: false] 2024-05-20 10:18:56.331 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.a.TSLocationManagerActivity a] locationsettings 2024-05-20 10:18:56.332 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.adapter.TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 2024-05-20 10:18:56.381 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] 🎾 start [ActivityRecognitionService startId: 2, eventCount: 1] 2024-05-20 10:18:56.386 20694-21146 TSLocationManager com.spica.spica_doorcloud D [c.t.l.s.ActivityRecognitionService a] *** wasMoving: false, nowMoving: false, startedMoving: false, justStopped; false 2024-05-20 10:18:56.387 20694-21146 TSLocationManager com.spica.spica_doorcloud I [c.t.l.s.ActivityRecognitionService a] ╔═════════════════════════════════════════════ ║ Motion Transition Result ╠═════════════════════════════════════════════ ╟─ 🎾 ENTER: still ╚═════════════════════════════════════════════ 2024-05-20 10:18:56.389 20694-21146 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] ⚙️︎ FINISH [ActivityRecognitionService startId: 2, eventCount: 0, sticky: false] 2024-05-20 10:18:56.414 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.a.TSLocationManagerActivity c] eventCount: 0 2024-05-20 10:18:56.486 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.a.TSLocationManagerActivity onDestroy] 2024-05-20 10:18:56.591 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService f] ⚙️︎ ActivityRecognitionService.stopSelfResult(2): true 2024-05-20 10:18:56.592 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService onDestroy] 🔴 ActivityRecognitionService stopped 2024-05-20 10:18:56.986 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] 🎾 1:1 [LocationRequestService startId: 2, eventCount: 1] 2024-05-20 10:18:56.989 20694-21146 TSLocationManager com.spica.spica_doorcloud I [c.t.l.l.TSLocationManager a] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 1 (68ms old) ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 45.869769,15.246990 hAcc=20.0 et=+3d7h48m18s659ms alt=244.8000030517578 vAcc=0.9572826], time: 1716193136919 2024-05-20 10:18:56.999 20694-21146 TSLocationManager com.spica.spica_doorcloud I [c.t.l.l.TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: false 2024-05-20 10:18:57.001 20694-21146 TSLocationManager com.spica.spica_doorcloud D [c.t.l.l.TSLocationManager a] Median accuracy: 20.055 2024-05-20 10:18:57.012 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService b] 🎾 STOP [LocationRequestService startId: 3, eventCount: 2] 2024-05-20 10:18:57.013 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] ⚙️︎ FINISH [LocationRequestService startId: 3, eventCount: 1, sticky: false] 2024-05-20 10:18:57.022 20694-20763 flutter com.spica.spica_doorcloud I Adding geofence with identifier $Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829 2024-05-20 10:18:57.028 20694-20763 flutter com.spica.spica_doorcloud I Adding geofence with identifier Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4 2024-05-20 10:18:57.029 20694-20763 flutter com.spica.spica_doorcloud I Adding geofence with identifier $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e 2024-05-20 10:18:57.029 20694-20763 flutter com.spica.spica_doorcloud I Adding geofence with identifier Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d 2024-05-20 10:18:57.030 20694-20763 flutter com.spica.spica_doorcloud I Adding geofence with identifier Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59 2024-05-20 10:18:57.030 20694-20763 flutter com.spica.spica_doorcloud I Adding geofence with identifier $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f 2024-05-20 10:18:57.038 20694-21146 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] ⚙️︎ FINISH [LocationRequestService startId: 2, eventCount: 0, sticky: false] 2024-05-20 10:18:57.039 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager startMonitoringStationaryRegion] 🎾 Start monitoring stationary region (radius: 150.0m 45.8697693,15.2469899 hAcc=20.0) 2024-05-20 10:18:57.044 20694-21214 TSLocationManager com.spica.spica_doorcloud I [c.t.l.data.sqlite.GeofenceDAO create] ✅ $Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829 2024-05-20 10:18:57.050 20694-21211 TSLocationManager com.spica.spica_doorcloud I [c.t.l.data.sqlite.GeofenceDAO create] ✅ Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4 2024-05-20 10:18:57.058 20694-21213 TSLocationManager com.spica.spica_doorcloud I [c.t.l.data.sqlite.GeofenceDAO create] ✅ $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e 2024-05-20 10:18:57.067 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.data.sqlite.GeofenceDAO create] ✅ Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d 2024-05-20 10:18:57.070 20694-21215 TSLocationManager com.spica.spica_doorcloud I [c.t.l.data.sqlite.GeofenceDAO create] ✅ $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f 2024-05-20 10:18:57.073 20694-21212 TSLocationManager com.spica.spica_doorcloud I [c.t.l.data.sqlite.GeofenceDAO create] ✅ Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59 2024-05-20 10:18:57.191 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] 🎾 motionchange [TrackingService startId: 1, eventCount: 1] 2024-05-20 10:18:57.192 20694-20694 TSLocationManager com.spica.spica_doorcloud I [c.t.l.service.TrackingService k] ╔═════════════════════════════════════════════ ║ TrackingService motionchange: false ╠═════════════════════════════════════════════ 2024-05-20 10:18:57.194 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] ⚙️︎ FINISH [TrackingService startId: 1, eventCount: 0, sticky: false] 2024-05-20 10:18:57.199 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager$e a] ℹ️ GeofencingClient addGeofences SUCCESS 2024-05-20 10:18:57.200 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager d] ℹ️ Persist monitored geofences: [$Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829, Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4, $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e, Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d, $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f, Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59] 2024-05-20 10:18:57.201 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager$e a] ╔═════════════════════════════════════════════ ║ TSGeofenceManager monitoring 6/6 ╠═════════════════════════════════════════════ ╟─ 🎾 $Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829 ╟─ 🎾 Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4 ╟─ 🎾 $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e ╟─ 🎾 Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d ╟─ 🎾 $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f ╟─ 🎾 Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59 ╚═════════════════════════════════════════════ 2024-05-20 10:18:57.201 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager$e a] ℹ️ GeofencingClient addGeofences SUCCESS 2024-05-20 10:18:57.202 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager d] ℹ️ Persist monitored geofences: [$Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829, Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4, $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e, Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d, $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f, Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59] 2024-05-20 10:18:57.202 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager$e a] ╔═════════════════════════════════════════════ ║ TSGeofenceManager monitoring 6/6 ╠═════════════════════════════════════════════ ╟─ 🎾 $Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829 ╟─ 🎾 Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4 ╟─ 🎾 $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e ╟─ 🎾 Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d ╟─ 🎾 $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f ╟─ 🎾 Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59 ╚═════════════════════════════════════════════ 2024-05-20 10:18:57.203 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager$e a] ℹ️ GeofencingClient addGeofences SUCCESS 2024-05-20 10:18:57.203 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager d] ℹ️ Persist monitored geofences: [$Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829, Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4, $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e, Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d, $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f, Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59] 2024-05-20 10:18:57.204 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager$e a] ╔═════════════════════════════════════════════ ║ TSGeofenceManager monitoring 6/6 ╠═════════════════════════════════════════════ ╟─ 🎾 $Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829 ╟─ 🎾 Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4 ╟─ 🎾 $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e ╟─ 🎾 Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d ╟─ 🎾 $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f ╟─ 🎾 Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59 ╚═════════════════════════════════════════════ 2024-05-20 10:18:57.204 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager$e a] ℹ️ GeofencingClient addGeofences SUCCESS 2024-05-20 10:18:57.205 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager d] ℹ️ Persist monitored geofences: [$Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829, Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4, $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e, Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d, $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f, Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59] 2024-05-20 10:18:57.205 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager$e a] ╔═════════════════════════════════════════════ ║ TSGeofenceManager monitoring 6/6 ╠═════════════════════════════════════════════ ╟─ 🎾 $Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829 ╟─ 🎾 Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4 ╟─ 🎾 $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e ╟─ 🎾 Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d ╟─ 🎾 $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f ╟─ 🎾 Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59 ╚═════════════════════════════════════════════ 2024-05-20 10:18:57.206 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager$e a] ℹ️ GeofencingClient addGeofences SUCCESS 2024-05-20 10:18:57.206 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager d] ℹ️ Persist monitored geofences: [$Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829, Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4, $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e, Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d, $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f, Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59] 2024-05-20 10:18:57.207 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager$e a] ╔═════════════════════════════════════════════ ║ TSGeofenceManager monitoring 6/6 ╠═════════════════════════════════════════════ ╟─ 🎾 $Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829 ╟─ 🎾 Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4 ╟─ 🎾 $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e ╟─ 🎾 Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d ╟─ 🎾 $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f ╟─ 🎾 Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59 ╚═════════════════════════════════════════════ 2024-05-20 10:18:57.208 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager$e a] ℹ️ GeofencingClient addGeofences SUCCESS 2024-05-20 10:18:57.208 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager d] ℹ️ Persist monitored geofences: [$Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829, Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4, $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e, Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d, $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f, Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59] 2024-05-20 10:18:57.208 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.g.TSGeofenceManager$e a] ╔═════════════════════════════════════════════ ║ TSGeofenceManager monitoring 6/6 ╠═════════════════════════════════════════════ ╟─ 🎾 $Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829 ╟─ 🎾 Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4 ╟─ 🎾 $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e ╟─ 🎾 Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d ╟─ 🎾 $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f ╟─ 🎾 Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59 ╚═════════════════════════════════════════════ 2024-05-20 10:18:57.241 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService f] ⚙️︎ LocationRequestService.stopSelfResult(3): true 2024-05-20 10:18:57.244 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService onDestroy] 🔴 LocationRequestService stopped 2024-05-20 10:18:57.398 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService f] ⚙️︎ TrackingService.stopSelfResult(1): true 2024-05-20 10:18:57.398 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService onDestroy] 🔴 TrackingService stopped 2024-05-20 10:18:57.943 20694-20760 ModelSpeci...Calculator com.spica.spica_doorcloud W Cannot updated distance models from online database at java.io.FileNotFoundException: https://s3.amazonaws.com/android-beacon-library/android-distance.json 2024-05-20 10:19:01.498 20694-20763 flutter com.spica.spica_doorcloud I Geofence with identifier Door Kovcek 1%%%48630384-7f06-4ea3-823d-acd300e2ad59 already exists, ignoring 2024-05-20 10:19:01.498 20694-20763 flutter com.spica.spica_doorcloud I Geofence with identifier Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d already exists, ignoring 2024-05-20 10:19:01.499 20694-20763 flutter com.spica.spica_doorcloud I Geofence with identifier Main Entrance%%%c2b30e42-3717-4c9c-9731-acdf00a5eed4 already exists, ignoring 2024-05-20 10:19:01.502 20694-20763 flutter com.spica.spica_doorcloud I Bluetooth state: BluetoothAdapterState.on, isBeaconsListenerRunning: true, doorBeacons: [Instance of 'DoorBeacon'] 2024-05-20 10:19:01.503 20694-20763 flutter com.spica.spica_doorcloud I Geofence with identifier $Door 1 - @Urkoz Spot#2%%%bd60c451-7de1-4813-8c77-ad7400af0c3f already exists, ignoring 2024-05-20 10:19:01.514 20694-20763 flutter com.spica.spica_doorcloud I Geofence with identifier $Output 1.2 - Door 0 - Urko's Wing%%%78fc615e-e270-4f2a-a51e-ad8a00c5aa2e already exists, ignoring 2024-05-20 10:19:01.515 20694-20763 flutter com.spica.spica_doorcloud I Geofence with identifier $Door 3 - BLE@Urkoz Spot#2%%%4e14fd43-6896-4867-bd58-ad7900ae4829 already exists, ignoring 2024-05-20 10:19:02.224 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] 🎾 start [GeofencingService startId: 1, eventCount: 1] 2024-05-20 10:19:02.258 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.s.GeofencingService a] ╔═════════════════════════════════════════════ ║ Geofencing Event: ENTER ╠═════════════════════════════════════════════ ╟─ Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d ╚═════════════════════════════════════════════ 2024-05-20 10:19:02.316 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.d.s.SQLiteLocationDAO persist] ✅ INSERT: 949d5f54-cfa3-42de-bc10-dea3103d039b 2024-05-20 10:19:02.320 20694-21216 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] ⚙️︎ FINISH [GeofencingService startId: 1, eventCount: 0, sticky: false] 2024-05-20 10:19:02.524 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService f] ⚙️︎ GeofencingService.stopSelfResult(1): true 2024-05-20 10:19:02.525 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService onDestroy] 🔴 GeofencingService stopped 2024-05-20 10:19:07.261 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] 🎾 start [GeofencingService startId: 1, eventCount: 1] 2024-05-20 10:19:07.290 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.s.GeofencingService a] ╔═════════════════════════════════════════════ ║ Geofencing Event: ENTER ╠═════════════════════════════════════════════ ╟─ Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d ╚═════════════════════════════════════════════ 2024-05-20 10:19:07.356 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.d.s.SQLiteLocationDAO persist] ✅ INSERT: 8d445cbe-1593-4402-bb00-06f8a17703ec 2024-05-20 10:19:07.362 20694-21216 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] ⚙️︎ FINISH [GeofencingService startId: 1, eventCount: 0, sticky: false] 2024-05-20 10:19:07.566 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService f] ⚙️︎ GeofencingService.stopSelfResult(1): true 2024-05-20 10:19:07.567 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService onDestroy] 🔴 GeofencingService stopped 2024-05-20 10:19:12.302 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] 🎾 start [GeofencingService startId: 1, eventCount: 1] 2024-05-20 10:19:12.316 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.s.GeofencingService a] ╔═════════════════════════════════════════════ ║ Geofencing Event: ENTER ╠═════════════════════════════════════════════ ╟─ Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d ╚═════════════════════════════════════════════ 2024-05-20 10:19:12.335 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.d.s.SQLiteLocationDAO persist] ✅ INSERT: 14d08e2e-c2fb-4664-a492-491850e64a37 2024-05-20 10:19:12.337 20694-21216 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] ⚙️︎ FINISH [GeofencingService startId: 1, eventCount: 0, sticky: false] 2024-05-20 10:19:12.547 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService f] ⚙️︎ GeofencingService.stopSelfResult(1): true 2024-05-20 10:19:12.551 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService onDestroy] 🔴 GeofencingService stopped 2024-05-20 10:19:17.307 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] 🎾 start [GeofencingService startId: 1, eventCount: 1] 2024-05-20 10:19:17.328 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.s.GeofencingService a] ╔═════════════════════════════════════════════ ║ Geofencing Event: ENTER ╠═════════════════════════════════════════════ ╟─ Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d ╚═════════════════════════════════════════════ 2024-05-20 10:19:17.370 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.d.s.SQLiteLocationDAO persist] ✅ INSERT: f34e1312-e6ab-439d-a4cb-ddcde73ccead 2024-05-20 10:19:17.374 20694-21216 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] ⚙️︎ FINISH [GeofencingService startId: 1, eventCount: 0, sticky: false] 2024-05-20 10:19:17.580 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService f] ⚙️︎ GeofencingService.stopSelfResult(1): true 2024-05-20 10:19:17.582 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService onDestroy] 🔴 GeofencingService stopped 2024-05-20 10:19:22.415 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] 🎾 start [GeofencingService startId: 1, eventCount: 1] 2024-05-20 10:19:22.450 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.s.GeofencingService a] ╔═════════════════════════════════════════════ ║ Geofencing Event: ENTER ╠═════════════════════════════════════════════ ╟─ Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d ╚═════════════════════════════════════════════ 2024-05-20 10:19:22.518 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.d.s.SQLiteLocationDAO persist] ✅ INSERT: 8283ff19-5fea-418b-83d4-63ecaf706757 2024-05-20 10:19:22.524 20694-21216 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] ⚙️︎ FINISH [GeofencingService startId: 1, eventCount: 0, sticky: false] 2024-05-20 10:19:22.732 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService f] ⚙️︎ GeofencingService.stopSelfResult(1): true 2024-05-20 10:19:22.735 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService onDestroy] 🔴 GeofencingService stopped 2024-05-20 10:19:27.447 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] 🎾 start [GeofencingService startId: 1, eventCount: 1] 2024-05-20 10:19:27.473 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.s.GeofencingService a] ╔═════════════════════════════════════════════ ║ Geofencing Event: ENTER ╠═════════════════════════════════════════════ ╟─ Back Entrance%%%699cc1d6-fd21-4171-ae54-ad3a00e1927d ╚═════════════════════════════════════════════ 2024-05-20 10:19:27.532 20694-21216 TSLocationManager com.spica.spica_doorcloud I [c.t.l.d.s.SQLiteLocationDAO persist] ✅ INSERT: 046fb867-1ac4-4756-9538-8ab17b8a55c2 2024-05-20 10:19:27.537 20694-21216 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService a] ⚙️︎ FINISH [GeofencingService startId: 1, eventCount: 0, sticky: false] 2024-05-20 10:19:27.745 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService f] ⚙️︎ GeofencingService.stopSelfResult(1): true 2024-05-20 10:19:27.747 20694-20694 TSLocationManager com.spica.spica_doorcloud D [c.t.l.service.AbstractService onDestroy] 🔴 GeofencingService stopped 2024-05-20 10:19:40.907 20694-20694 VRI[MainActivity] com.spica.spica_doorcloud D visibilityChanged oldVisibility=true newVisibility=false ```
plut9 commented 3 months ago

We are encountering similar issues on our side. Any solution yet?

spehj commented 3 months ago

Same here... any progress on this one?

christocracy commented 3 months ago

I found the problem. Fix is now published to 4.15.4.