Closed codingwithashu closed 1 month ago
Read the api docs Config.stopTimeout.
Also read the wiki “Philosophy of Operation”
Hi, I have gone through the api documents twice.
What I understood is, Stop timeout will check the activity in the given interval of stoptimeout interval and in our case we have given stoptimeout as 1 mins which means plugin should check the motion activity with the interval of 1 mins. But between the logs 14:12 to 13:55 I have travelled for more than 3 kilometers so plugins should trigger the motion change event and send it to server. also as per the document the motion change event will check the geofence radius of 200 meters but I have traveled for about 3 km which was not tracked anywhere
Requesting you please suggest the correct config values so that the plugins should not stop the tracking.
See wiki “Debugging”. Learn to fetch logs using .emailLog method. Also see https://dontkillmyapp.com
we have given stoptimeout as 1 mins which means plugin should check the motion activity with the interval of 1 mins
No that’s not what it means.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Your Environment
cordova -v
): 12.0.0 (cordova-lib@12.0.1)cordova platform ls
): android 12.0.1#ready
:Expected Behavior
Service syncing data each and every motion & location change
Actual Behavior
Service stopped syncing data after while
Context
Tracking employee location & Activity (on event of work start & Stop in my app) 06-24 14:12:26.514 - stopped and start on 06-24 15:55:18.629 (during this time user was on vehicle)
Debug logs
Logs
``` 06-24 14:12:26.282 INFO [TrackingService k] ╔═════════════════════════════════════════════ ║ TrackingService motionchange: false ╠═════════════════════════════════════════════ 06-24 14:12:26.286 DEBUG [AbstractService a] ⚙️︎ FINISH [TrackingService startId: 17, eventCount: 0, sticky: true] 06-24 14:12:26.364 INFO [BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 24 06-24 14:12:26.373 DEBUG [SQLiteLocationDAO first] ✅ Locked 1 records 06-24 14:12:26.374 INFO [HttpService a] 🔵 HTTP POST: 9171b9f1-4eb4-47a1-af74-c7f0bde8b8a0 06-24 14:12:26.478 DEBUG [AbstractService f] ⚙️︎ LocationRequestService.stopSelfResult(5): true 06-24 14:12:26.479 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService stopped 06-24 14:12:26.511 INFO [HttpService$f onResponse] 🔵 Response: 200 06-24 14:12:26.512 DEBUG [SQLiteLocationDAO destroy] ✅ DESTROY: 9171b9f1-4eb4-47a1-af74-c7f0bde8b8a0 06-24 14:12:26.514 INFO [BackgroundTaskManager$Task stop] ⏳ stopBackgroundTask: 24 06-24 15:55:18.629 DEBUG [AbstractService a] 🎾 STATIONARY_GEOFENCE [GeofencingService startId: 1, eventCount: 1] 06-24 15:55:18.644 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [isMoving] 06-24 15:55:18.646 INFO [HeartbeatService stop] 🔴 Stop heartbeat 06-24 15:55:18.647 DEBUG [TSGeofenceManager stopMonitoringStationaryRegion] 🔴 Stop monitoring stationary region 06-24 15:55:18.653 INFO [TrackingService changePace] 🔵 setPace: false → true 06-24 15:55:18.659 DEBUG [AbstractService a] 🎾 motionchange [TrackingService startId: 18, eventCount: 1] 06-24 15:55:18.660 INFO [TrackingService k] ╔═════════════════════════════════════════════ ║ TrackingService motionchange: true ╠═════════════════════════════════════════════ 06-24 15:55:18.660 DEBUG [AbstractService a] ⚙️︎ FINISH [TrackingService startId: 18, eventCount: 0, sticky: true] 06-24 15:55:18.673 INFO [TSLocationManager a] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 18 (141ms old) ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 12.97****,77.57**** hAcc=14.903 et=+8h45m35s877ms alt=847.6000366210938 vAcc=2.1493962 {Bundle[{}]}], time: 1719224718531 ```