transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.65k stars 426 forks source link

Unable to fetch location #610

Closed Udbhav12 closed 5 years ago

Udbhav12 commented 5 years ago

Your Environment

Expected Behavior

Plugin should fetch location updates

Actual Behavior

react-native-background geolocation was unable to fetch location. Logs file attached below.

Steps to Reproduce

NA

Context

I was testing tracking on OPPO A3s android phone. As I can see from the logs file below,I continuously got the error code 408 which I understand occurs when there is case of timeout. I was on the field for approximately 1.5 hours and I didn't get even a single location from the plugin. I never destroyed the app during this time

Debug logs

{ "activityRecognitionInterval": 10000, "allowIdenticalLocations": false, "autoSync": true, "autoSyncThreshold": 0, "batchSync": false, "debug": true, "deferTime": 0, "desiredAccuracy": -1, "desiredOdometerAccuracy": 100, "disableElasticity": false, "disableStopDetection": false, "distanceFilter": 10, "elasticityMultiplier": 1, "enableHeadless": false, "enableTimestampMeta": false, "extras": {}, "fastestLocationUpdateInterval": 10000, "forceReloadOnBoot": false, "forceReloadOnGeofence": false, "forceReloadOnHeartbeat": false, "forceReloadOnLocationChange": false, "forceReloadOnMotionChange": false, "forceReloadOnSchedule": false, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": {}, "headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessTask", "heartbeatInterval": -1, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": true, "locationTemplate": "", "locationTimeout": 60, "locationUpdateInterval": 1000, "locationsOrderDirection": "ASC", "logLevel": 5, "logMaxDays": 3, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxRecordsToPersist": -1, "method": "POST", "minimumActivityRecognitionConfidence": 75, "notificationColor": "", "notificationLargeIcon": "", "notificationPriority": 0, "notificationSmallIcon": "", "notificationText": "Location Service activated", "notificationTitle": "", "params": {}, "persist": true, "schedule": [], "startOnBoot": true, "stationaryRadius": 25, "stopAfterElapsedMinutes": 0, "stopOnStationary": false, "stopOnTerminate": false, "stopTimeout": 5, "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking", "url": "", "enabled": true, "schedulerEnabled": false, "trackingMode": 1, "odometer": 0, "isFirstBoot": true } Attachments area

background-geolocation (1).log

christocracy commented 5 years ago

Your device is failing to provide a location to the plugin. Check your device's location settings, particularly the Mode -- make sure it's set to "High Accuracy".

You'll likely also discover the native Google Maps app is failing to get a location, as well.

Udbhav12 commented 5 years ago

I just checked Location settings. It's already set to High Accuracy (Use GPS,Wi-Fi,Bluetooth or mobile network to determine location). Native Google Maps is providing accurate location

Secondly I noticed from logs that I am frequently seeing 'LocationAuthorization: Permission granted' Seems as if permission is being granted regularly after some interval

Is this normal behaviour ?

christocracy commented 5 years ago

I noticed from logs that I am frequently seeing 'LocationAuthorization: Permission granted' Seems as if permission is being granted regularly after some interval

It's normal. It's not actually requesting permission all the time, it's just logging that it does have permission.

Udbhav12 commented 5 years ago

@christocracy - Oh ok, Thanks ! Back to our original problem,How should I proceed further?

christocracy commented 5 years ago
Udbhav12 commented 5 years ago

Please find below the logs

screen shot 2018-11-13 at 9 53 12 pm

christocracy commented 5 years ago

That is not the entire log of your app booting. And post text, not screenshot.

Udbhav12 commented 5 years ago

I just ran adb logcat -s TSLocationManager again after uninstalling and reinstalling the app

Here is the entire log which I received.

FYI, this is a release variant of the app, with Proguard enabled and signed release

$ adb logcat -s TSLocationManager --------- beginning of system --------- beginning of main 11-13 22:15:27.389 5047 5047 I TSLocationManager: [c.t.l.a.BackgroundGeolocation ] 11-13 22:15:27.389 5047 5047 I TSLocationManager: ✅ Google Play Services: connected (version code:12211000) 11-13 22:15:27.476 5047 5047 D TSLocationManager: [c.t.locationmanager.data.a.c a] 11-13 22:15:27.476 5047 5047 D TSLocationManager: ✅ Opened database 11-13 22:15:27.510 5047 5047 D TSLocationManager: [c.t.locationmanager.data.a.c prune] 11-13 22:15:27.510 5047 5047 D TSLocationManager: ℹ️ PRUNE -1 days 11-13 22:15:27.579 5047 5047 D TSLocationManager: [c.t.locationmanager.data.a.a f] 11-13 22:15:27.579 5047 5047 D TSLocationManager: ✅ Opened database 11-13 22:19:27.280 6791 6826 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-13 22:19:27.308 6791 6826 D TSLocationManager: [c.t.l.a.BackgroundGeolocation ready] LocationPermission :true 11-13 22:19:27.341 6791 6826 D TSLocationManager: [c.t.locationmanager.util.b a] 11-13 22:19:27.341 6791 6826 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-13 22:19:27.351 6791 6977 I TSLocationManager: - Enable: false → true, trackingMode: 1 11-13 22:19:27.370 6791 6791 I TSLocationManager: [c.t.l.BackgroundGeolocationService onStartCommand] 11-13 22:19:27.370 6791 6791 I TSLocationManager: ╔═════════════════════════════════════════════ 11-13 22:19:27.370 6791 6791 I TSLocationManager: ║ BackgroundGeolocation Service started 11-13 22:19:27.370 6791 6791 I TSLocationManager: ╠═════════════════════════════════════════════ 11-13 22:19:27.390 6791 6791 I TSLocationManager: [c.t.l.BackgroundGeolocationService d] 11-13 22:19:27.390 6791 6791 I TSLocationManager: ✅ Started in foreground 11-13 22:19:27.421 6791 6791 I TSLocationManager: [c.t.l.ActivityRecognitionService a] 11-13 22:19:27.421 6791 6791 I TSLocationManager: 🎾 Start activity updates: 10000 11-13 22:19:27.460 6791 6791 I TSLocationManager: [c.t.l.BackgroundGeolocationService a] 11-13 22:19:27.460 6791 6791 I TSLocationManager: 🔵 setPace: null → false 11-13 22:19:27.474 6791 6791 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-13 22:19:27.491 6791 6791 D TSLocationManager: [c.t.locationmanager.util.b a] 11-13 22:19:27.491 6791 6791 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-13 22:19:27.675 6791 6976 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%) 11-13 22:20:27.513 6791 6791 W TSLocationManager: [c.t.l.l.SingleLocationRequest e] 11-13 22:20:27.513 6791 6791 W TSLocationManager: ⚠️ timeout: 1 11-13 22:20:27.549 6791 6976 W TSLocationManager: [c.t.l.l.TSLocationManager onLocationTimeout] 11-13 22:20:27.549 6791 6976 W TSLocationManager: ⚠️ TSLocationManager received location timeout 11-13 22:20:27.575 6791 6791 W TSLocationManager: [c.t.l.a.BackgroundGeolocation _onLocationError] 11-13 22:20:27.575 6791 6791 W TSLocationManager: ⚠️ Location error: 408 11-13 22:20:27.577 6791 6976 E TSLocationManager: [c.t.l.l.TSLocationManager getLastLocation] 11-13 22:20:27.577 6791 6976 E TSLocationManager: ‼️ Failed to get last location: com.google.android.gms.tasks.zzp@ed5187 11-13 22:20:27.652 6791 6976 W TSLocationManager: [c.t.l.l.TSLocationManager a] 11-13 22:20:27.652 6791 6976 W TSLocationManager: ⚠️ Failed to acquire stationary location from last-known-location

christocracy commented 5 years ago

Does it work with DEBUG build? I just submitted my demo app to Play Store a few weeks ago with 2.14.0. Does the demo app work on your device?

Install this

Udbhav12 commented 5 years ago

I haven't tested in DEBUG build. So I am not sure whether it will work or not in Debug build. I don't think this issue has anything to do with release or debug build. I can send you my proguard-rules.pro file if it will help in debugging the issue Btw I am using 2.14.1 not 2.14.0

I will install the demo app on my device from Play Store tomorrow and let you know the results by tomorrow

christocracy commented 5 years ago

Test in debug build

Udbhav12 commented 5 years ago

I installed the demo app on my device. I have entered a username, I am posting locations to Transistor Software's demo server. Clicked on the Advanced Example Application

But when I visit the url in the browser,I don't see any tracking. It's showing No device present

Below is the url http://tracker.transistorsoft.com/udbhav1

christocracy commented 5 years ago

do you have any other devices to test on?

Udbhav12 commented 5 years ago

I just tested demo app on OnePlus 6t (Android 9) . Again I am seeing 'No devices present'

URL http://tracker.transistorsoft.com/udbhav2

christocracy commented 5 years ago

I just installed Demo from Play Store on my Pixel (Android 9) http://tracker.transistorsoft.com/tranistor-rn-play

christocracy commented 5 years ago

What does $ adb logcat -s TSLocationManager look like on these devices ?

Udbhav12 commented 5 years ago

For OPPO A3s device, running adb logcat -s TSLocationManager for your Demo app gives following result

adb logcat -s TSLocationManager --------- beginning of system --------- beginning of main 11-14 00:20:35.359 13778 13778 D TSLocationManager: [c.t.l.l.TSLocationManager c] 11-14 00:20:35.359 13778 13778 D TSLocationManager: 🔴 Stop LocationRequest: 9 11-14 00:20:35.388 13778 13778 D TSLocationManager: [c.t.l.g.TSGeofenceManager b] 11-14 00:20:35.388 13778 13778 D TSLocationManager: 🔴 Stop monitoring geofences 11-14 00:20:35.401 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService k] 11-14 00:20:35.401 13778 13778 I TSLocationManager: 🔴 Stop heartbeat 11-14 00:21:51.160 13778 13815 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:21:59.418 13778 14954 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:21:59.418 13778 14954 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:22:01.462 13778 14954 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:22:01.462 13778 14954 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:22:10.154 13778 13815 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:22:10.154 13778 13815 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:22:10.174 13778 14954 I TSLocationManager: - Enable: false → true, trackingMode: 1 11-14 00:22:10.185 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService onStartCommand] 11-14 00:22:10.185 13778 13778 I TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:22:10.185 13778 13778 I TSLocationManager: ║ BackgroundGeolocation Service started 11-14 00:22:10.185 13778 13778 I TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:22:10.202 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService d] 11-14 00:22:10.202 13778 13778 I TSLocationManager: ✅ Started in foreground 11-14 00:22:10.242 13778 13778 I TSLocationManager: [c.t.l.ActivityRecognitionService a] 11-14 00:22:10.242 13778 13778 I TSLocationManager: 🎾 Start activity updates: 10000 11-14 00:22:10.281 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService k] 11-14 00:22:10.281 13778 13778 I TSLocationManager: 🔴 Stop heartbeat 11-14 00:22:10.313 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService a] 11-14 00:22:10.313 13778 13778 I TSLocationManager: 🎾 Start heartbeat (60) 11-14 00:22:10.340 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService a] 11-14 00:22:10.340 13778 13778 I TSLocationManager: 🔵 setPace: null → false 11-14 00:22:10.361 13778 13778 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:22:10.386 13778 13778 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:22:10.386 13778 13778 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:22:10.435 13778 14934 D TSLocationManager: [c.t.l.http.HttpService flush] 11-14 00:22:10.435 13778 14934 D TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:22:10.435 13778 14934 D TSLocationManager: ║ HTTP Service 11-14 00:22:10.435 13778 14934 D TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:22:10.440 13778 14933 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%) 11-14 00:22:14.089 13778 14954 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:22:14.089 13778 14954 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:22:16.151 13778 14933 I TSLocationManager: [c.t.l.BackgroundGeolocationService k] 11-14 00:22:16.151 13778 14933 I TSLocationManager: 🔴 Stop heartbeat 11-14 00:22:16.179 13778 14933 I TSLocationManager: [c.t.l.BackgroundGeolocationService a] 11-14 00:22:16.179 13778 14933 I TSLocationManager: 🔵 setPace: false → true 11-14 00:22:16.205 13778 14933 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:22:16.233 13778 14933 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:22:16.233 13778 14933 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:22:59.451 13778 13778 W TSLocationManager: [c.t.l.l.SingleLocationRequest e] 11-14 00:22:59.451 13778 13778 W TSLocationManager: ⚠️ timeout: 10 11-14 00:22:59.483 13778 14933 W TSLocationManager: [c.t.l.l.TSLocationManager onLocationTimeout] 11-14 00:22:59.483 13778 14933 W TSLocationManager: ⚠️ TSLocationManager received location timeout 11-14 00:22:59.507 13778 13778 W TSLocationManager: [c.t.l.a.BackgroundGeolocation _onLocationError] 11-14 00:22:59.507 13778 13778 W TSLocationManager: ⚠️ Location error: 408 11-14 00:23:01.501 13778 13778 W TSLocationManager: [c.t.l.l.SingleLocationRequest e] 11-14 00:23:01.501 13778 13778 W TSLocationManager: ⚠️ timeout: 11 11-14 00:23:01.546 13778 14933 W TSLocationManager: [c.t.l.l.TSLocationManager onLocationTimeout] 11-14 00:23:01.546 13778 14933 W TSLocationManager: ⚠️ TSLocationManager received location timeout 11-14 00:23:01.568 13778 13778 W TSLocationManager: [c.t.l.a.BackgroundGeolocation _onLocationError] 11-14 00:23:01.568 13778 13778 W TSLocationManager: ⚠️ Location error: 408 11-14 00:23:14.119 13778 13778 W TSLocationManager: [c.t.l.l.SingleLocationRequest e] 11-14 00:23:14.119 13778 13778 W TSLocationManager: ⚠️ timeout: 13 11-14 00:23:14.159 13778 14933 W TSLocationManager: [c.t.l.l.TSLocationManager onLocationTimeout] 11-14 00:23:14.159 13778 14933 W TSLocationManager: ⚠️ TSLocationManager received location timeout 11-14 00:23:14.194 13778 13778 W TSLocationManager: [c.t.l.a.BackgroundGeolocation _onLocationError] 11-14 00:23:14.194 13778 13778 W TSLocationManager: ⚠️ Location error: 408 11-14 00:23:16.260 13778 13778 W TSLocationManager: [c.t.l.l.SingleLocationRequest e] 11-14 00:23:16.260 13778 13778 W TSLocationManager: ⚠️ timeout: 14 11-14 00:23:16.287 13778 14933 W TSLocationManager: [c.t.l.l.TSLocationManager onLocationTimeout] 11-14 00:23:16.287 13778 14933 W TSLocationManager: ⚠️ TSLocationManager received location timeout 11-14 00:23:16.308 13778 13778 W TSLocationManager: [c.t.l.a.BackgroundGeolocation _onLocationError] 11-14 00:23:16.308 13778 13778 W TSLocationManager: ⚠️ Location error: 408 11-14 00:23:21.470 13778 13815 D TSLocationManager: [c.t.l.a.BackgroundGeolocation c] 11-14 00:23:21.470 13778 13815 D TSLocationManager: 🔴 Cleared callbacks 11-14 00:23:21.494 13778 13815 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:23:21.524 13778 13778 D TSLocationManager: [c.t.l.BackgroundGeolocationService onDestroy] 11-14 00:23:21.524 13778 13778 D TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:23:21.524 13778 13778 D TSLocationManager: ║ BackgroundGeolocationService destroyed 11-14 00:23:21.524 13778 13778 D TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:23:21.526 13778 13815 D TSLocationManager: [c.t.l.a.BackgroundGeolocation c] 11-14 00:23:21.526 13778 13815 D TSLocationManager: 🔴 Cleared callbacks 11-14 00:23:21.562 13778 13778 D TSLocationManager: [c.t.l.BackgroundGeolocationService r] 11-14 00:23:21.562 13778 13778 D TSLocationManager: 🔴 Unregister PowerSaveChangeReceiver: com.transistorsoft.locationmanager.BackgroundGeolocationService$1@4b8dd76 11-14 00:23:21.617 13778 13778 D TSLocationManager: [c.t.l.BackgroundGeolocationService r] 11-14 00:23:21.617 13778 13778 D TSLocationManager: 🔴 Unregister ConnectivityReceiver: com.transistorsoft.locationmanager.BackgroundGeolocationService$2@5746f77 11-14 00:23:21.651 13778 13778 I TSLocationManager: [c.t.l.ActivityRecognitionService b] 11-14 00:23:21.651 13778 13778 I TSLocationManager: 🔴 Stop activity updates 11-14 00:23:21.667 13778 13778 D TSLocationManager: [c.t.l.g.TSGeofenceManager b] 11-14 00:23:21.667 13778 13778 D TSLocationManager: 🔴 Stop monitoring geofences 11-14 00:23:21.684 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService k] 11-14 00:23:21.684 13778 13778 I TSLocationManager: 🔴 Stop heartbeat 11-14 00:25:56.505 13778 13815 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:25:59.746 13778 13815 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:25:59.746 13778 13815 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:25:59.778 13778 15087 I TSLocationManager: - Enable: false → true, trackingMode: 1 11-14 00:25:59.809 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService onStartCommand] 11-14 00:25:59.809 13778 13778 I TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:25:59.809 13778 13778 I TSLocationManager: ║ BackgroundGeolocation Service started 11-14 00:25:59.809 13778 13778 I TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:25:59.831 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService d] 11-14 00:25:59.831 13778 13778 I TSLocationManager: ✅ Started in foreground 11-14 00:25:59.864 13778 13778 I TSLocationManager: [c.t.l.ActivityRecognitionService a] 11-14 00:25:59.864 13778 13778 I TSLocationManager: 🎾 Start activity updates: 10000 11-14 00:25:59.892 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService k] 11-14 00:25:59.892 13778 13778 I TSLocationManager: 🔴 Stop heartbeat 11-14 00:25:59.922 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService a] 11-14 00:25:59.922 13778 13778 I TSLocationManager: 🎾 Start heartbeat (60) 11-14 00:25:59.942 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService a] 11-14 00:25:59.942 13778 13778 I TSLocationManager: 🔵 setPace: null → false 11-14 00:25:59.964 13778 13778 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:25:59.997 13778 13778 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:25:59.997 13778 13778 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:26:00.135 13778 15067 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%) 11-14 00:26:00.144 13778 15066 D TSLocationManager: [c.t.l.http.HttpService flush] 11-14 00:26:00.144 13778 15066 D TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:26:00.144 13778 15066 D TSLocationManager: ║ HTTP Service 11-14 00:26:00.144 13778 15066 D TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:26:03.242 13778 15087 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:26:03.242 13778 15087 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:26:04.468 13778 15066 I TSLocationManager: [c.t.l.BackgroundGeolocationService k] 11-14 00:26:04.468 13778 15066 I TSLocationManager: 🔴 Stop heartbeat 11-14 00:26:04.499 13778 15066 I TSLocationManager: [c.t.l.BackgroundGeolocationService a] 11-14 00:26:04.499 13778 15066 I TSLocationManager: 🔵 setPace: false → true 11-14 00:26:04.530 13778 15066 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:26:04.559 13778 15066 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:26:04.559 13778 15066 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:26:27.595 13778 13778 D TSLocationManager: [c.t.l.a.BackgroundGeolocation c] 11-14 00:26:27.595 13778 13778 D TSLocationManager: 🔴 Cleared callbacks 11-14 00:26:27.609 13778 13815 D TSLocationManager: [c.t.l.a.BackgroundGeolocation c] 11-14 00:26:27.609 13778 13815 D TSLocationManager: 🔴 Cleared callbacks 11-14 00:26:27.662 13778 13778 I TSLocationManager: [c.t.l.a.BackgroundGeolocation onActivityDestroy] 11-14 00:26:27.662 13778 13778 I TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:26:27.662 13778 13778 I TSLocationManager: ║ MainActivity was destroyed 11-14 00:26:27.662 13778 13778 I TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:26:27.662 13778 13778 I TSLocationManager: ╟─ stopOnTerminate: false 11-14 00:26:27.662 13778 13778 I TSLocationManager: ╟─ enabled: true 11-14 00:26:27.675 13778 13778 D TSLocationManager: [c.t.l.a.BackgroundGeolocation c] 11-14 00:26:27.675 13778 13778 D TSLocationManager: 🔴 Cleared callbacks 11-14 00:26:27.698 13778 13778 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO 11-14 00:26:27.711 13778 13778 D TSLocationManager: [c.t.r.HeadlessTask onHeadlessEvent] 💀 event: terminate 11-14 00:26:27.723 13778 13778 D TSLocationManager: [c.t.r.HeadlessTask$2 onHeadlessJsTaskStart] taskId: 1 11-14 00:26:27.804 13778 13778 D TSLocationManager: [c.t.r.HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 1 11-14 00:26:30.153 13778 13815 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:26:30.187 13778 13815 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:26:30.187 13778 13815 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:26:30.204 13778 13815 W TSLocationManager: [c.t.l.a.BackgroundGeolocation$24 onPermissionGranted] 11-14 00:26:30.204 13778 13815 W TSLocationManager: ⚠️ Already started. Ignored 11-14 00:26:30.227 13778 13815 D TSLocationManager: [c.t.l.http.HttpService flush] 11-14 00:26:30.227 13778 13815 D TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:26:30.227 13778 13815 D TSLocationManager: ║ HTTP Service 11-14 00:26:30.227 13778 13815 D TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:26:30.257 13778 13815 D TSLocationManager: [c.t.l.a.BackgroundGeolocation ready] LocationPermission :true 11-14 00:26:30.277 13778 13815 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:26:30.277 13778 13815 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:26:31.862 13778 13815 D TSLocationManager: [c.t.l.a.BackgroundGeolocation c] 11-14 00:26:31.862 13778 13815 D TSLocationManager: 🔴 Cleared callbacks 11-14 00:26:31.896 13778 13815 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:26:31.927 13778 13778 D TSLocationManager: [c.t.l.BackgroundGeolocationService onDestroy] 11-14 00:26:31.927 13778 13778 D TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:26:31.927 13778 13778 D TSLocationManager: ║ BackgroundGeolocationService destroyed 11-14 00:26:31.927 13778 13778 D TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:26:31.929 13778 13815 D TSLocationManager: [c.t.l.a.BackgroundGeolocation c] 11-14 00:26:31.929 13778 13815 D TSLocationManager: 🔴 Cleared callbacks 11-14 00:26:31.964 13778 13778 D TSLocationManager: [c.t.l.BackgroundGeolocationService r] 11-14 00:26:31.964 13778 13778 D TSLocationManager: 🔴 Unregister PowerSaveChangeReceiver: com.transistorsoft.locationmanager.BackgroundGeolocationService$1@2cc648a 11-14 00:26:32.023 13778 13778 D TSLocationManager: [c.t.l.BackgroundGeolocationService r] 11-14 00:26:32.023 13778 13778 D TSLocationManager: 🔴 Unregister ConnectivityReceiver: com.transistorsoft.locationmanager.BackgroundGeolocationService$2@1805718 11-14 00:26:32.042 13778 13778 I TSLocationManager: [c.t.l.ActivityRecognitionService b] 11-14 00:26:32.042 13778 13778 I TSLocationManager: 🔴 Stop activity updates 11-14 00:26:32.068 13778 13778 D TSLocationManager: [c.t.l.l.TSLocationManager c] 11-14 00:26:32.068 13778 13778 D TSLocationManager: 🔴 Stop LocationRequest: 16 11-14 00:26:32.088 13778 13778 D TSLocationManager: [c.t.l.l.TSLocationManager c] 11-14 00:26:32.088 13778 13778 D TSLocationManager: 🔴 Stop LocationRequest: 17 11-14 00:26:32.108 13778 13778 D TSLocationManager: [c.t.l.l.TSLocationManager c] 11-14 00:26:32.108 13778 13778 D TSLocationManager: 🔴 Stop LocationRequest: 18 11-14 00:26:32.129 13778 13778 D TSLocationManager: [c.t.l.g.TSGeofenceManager b] 11-14 00:26:32.129 13778 13778 D TSLocationManager: 🔴 Stop monitoring geofences 11-14 00:26:32.152 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService k] 11-14 00:26:32.152 13778 13778 I TSLocationManager: 🔴 Stop heartbeat 11-14 00:27:57.931 13778 13815 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:28:00.149 13778 13815 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:28:00.149 13778 13815 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:28:00.179 13778 15207 I TSLocationManager: - Enable: false → true, trackingMode: 1 11-14 00:28:00.189 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService onStartCommand] 11-14 00:28:00.189 13778 13778 I TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:28:00.189 13778 13778 I TSLocationManager: ║ BackgroundGeolocation Service started 11-14 00:28:00.189 13778 13778 I TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:28:00.208 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService d] 11-14 00:28:00.208 13778 13778 I TSLocationManager: ✅ Started in foreground 11-14 00:28:00.244 13778 13778 I TSLocationManager: [c.t.l.ActivityRecognitionService a] 11-14 00:28:00.244 13778 13778 I TSLocationManager: 🎾 Start activity updates: 10000 11-14 00:28:00.272 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService k] 11-14 00:28:00.272 13778 13778 I TSLocationManager: 🔴 Stop heartbeat 11-14 00:28:00.291 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService a] 11-14 00:28:00.291 13778 13778 I TSLocationManager: 🎾 Start heartbeat (60) 11-14 00:28:00.323 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService a] 11-14 00:28:00.323 13778 13778 I TSLocationManager: 🔵 setPace: null → false 11-14 00:28:00.346 13778 13778 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:28:00.374 13778 13778 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:28:00.374 13778 13778 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:28:00.420 13778 15195 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%) 11-14 00:28:00.422 13778 15194 D TSLocationManager: [c.t.l.http.HttpService flush] 11-14 00:28:00.422 13778 15194 D TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:28:00.422 13778 15194 D TSLocationManager: ║ HTTP Service 11-14 00:28:00.422 13778 15194 D TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:28:01.331 13778 15194 I TSLocationManager: [c.t.l.BackgroundGeolocationService k] 11-14 00:28:01.331 13778 15194 I TSLocationManager: 🔴 Stop heartbeat 11-14 00:28:01.363 13778 15194 I TSLocationManager: [c.t.l.BackgroundGeolocationService a] 11-14 00:28:01.363 13778 15194 I TSLocationManager: 🔵 setPace: false → true 11-14 00:28:01.382 13778 15194 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:28:01.407 13778 15194 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:28:01.407 13778 15194 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:28:02.378 13778 15207 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:28:02.378 13778 15207 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:28:03.757 13778 15207 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:28:03.757 13778 15207 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:28:03.897 13778 15207 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:28:03.897 13778 15207 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:28:05.048 13778 13815 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:28:05.099 13778 13778 D TSLocationManager: [c.t.l.BackgroundGeolocationService onDestroy] 11-14 00:28:05.099 13778 13778 D TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:28:05.099 13778 13778 D TSLocationManager: ║ BackgroundGeolocationService destroyed 11-14 00:28:05.099 13778 13778 D TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:28:05.123 13778 13778 D TSLocationManager: [c.t.l.BackgroundGeolocationService r] 11-14 00:28:05.123 13778 13778 D TSLocationManager: 🔴 Unregister PowerSaveChangeReceiver: com.transistorsoft.locationmanager.BackgroundGeolocationService$1@babc7dc 11-14 00:28:05.157 13778 13778 D TSLocationManager: [c.t.l.BackgroundGeolocationService r] 11-14 00:28:05.157 13778 13778 D TSLocationManager: 🔴 Unregister ConnectivityReceiver: com.transistorsoft.locationmanager.BackgroundGeolocationService$2@f3150e5 11-14 00:28:05.188 13778 13778 I TSLocationManager: [c.t.l.ActivityRecognitionService b] 11-14 00:28:05.188 13778 13778 I TSLocationManager: 🔴 Stop activity updates 11-14 00:28:05.207 13778 13778 D TSLocationManager: [c.t.l.l.TSLocationManager c] 11-14 00:28:05.207 13778 13778 D TSLocationManager: 🔴 Stop LocationRequest: 20 11-14 00:28:05.240 13778 13778 D TSLocationManager: [c.t.l.l.TSLocationManager c] 11-14 00:28:05.240 13778 13778 D TSLocationManager: 🔴 Stop LocationRequest: 21 11-14 00:28:05.264 13778 13778 D TSLocationManager: [c.t.l.l.TSLocationManager c] 11-14 00:28:05.264 13778 13778 D TSLocationManager: 🔴 Stop LocationRequest: 22 11-14 00:28:05.291 13778 13778 D TSLocationManager: [c.t.l.l.TSLocationManager c] 11-14 00:28:05.291 13778 13778 D TSLocationManager: 🔴 Stop LocationRequest: 23 11-14 00:28:05.310 13778 13778 D TSLocationManager: [c.t.l.g.TSGeofenceManager b] 11-14 00:28:05.310 13778 13778 D TSLocationManager: 🔴 Stop monitoring geofences 11-14 00:28:05.333 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService k] 11-14 00:28:05.333 13778 13778 I TSLocationManager: 🔴 Stop heartbeat 11-14 00:28:06.223 13778 15207 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:28:06.223 13778 15207 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:28:08.800 13778 13815 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:28:08.800 13778 13815 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:28:08.834 13778 15207 I TSLocationManager: - Enable: false → true, trackingMode: 1 11-14 00:28:08.849 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService onStartCommand] 11-14 00:28:08.849 13778 13778 I TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:28:08.849 13778 13778 I TSLocationManager: ║ BackgroundGeolocation Service started 11-14 00:28:08.849 13778 13778 I TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:28:08.870 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService d] 11-14 00:28:08.870 13778 13778 I TSLocationManager: ✅ Started in foreground 11-14 00:28:08.907 13778 13778 I TSLocationManager: [c.t.l.ActivityRecognitionService a] 11-14 00:28:08.907 13778 13778 I TSLocationManager: 🎾 Start activity updates: 10000 11-14 00:28:08.935 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService k] 11-14 00:28:08.935 13778 13778 I TSLocationManager: 🔴 Stop heartbeat 11-14 00:28:08.969 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService a] 11-14 00:28:08.969 13778 13778 I TSLocationManager: 🎾 Start heartbeat (60) 11-14 00:28:08.999 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService a] 11-14 00:28:08.999 13778 13778 I TSLocationManager: 🔵 setPace: null → false 11-14 00:28:09.024 13778 13778 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:28:09.046 13778 13778 D TSLocationManager: [c.t.locationmanager.util.b a] 11-14 00:28:09.046 13778 13778 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted 11-14 00:28:09.110 13778 15194 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%) 11-14 00:28:09.112 13778 15195 D TSLocationManager: [c.t.l.http.HttpService flush] 11-14 00:28:09.112 13778 15195 D TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:28:09.112 13778 15195 D TSLocationManager: ║ HTTP Service 11-14 00:28:09.112 13778 15195 D TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:28:15.929 13778 15195 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%) 11-14 00:33:24.366 13778 13778 W TSLocationManager: [c.t.l.l.SingleLocationRequest e] 11-14 00:33:24.366 13778 13778 W TSLocationManager: ⚠️ timeout: 24 11-14 00:33:24.395 13778 13778 W TSLocationManager: [c.t.l.l.SingleLocationRequest e] 11-14 00:33:24.395 13778 13778 W TSLocationManager: ⚠️ timeout: 25 11-14 00:33:24.401 13778 15281 W TSLocationManager: [c.t.l.l.TSLocationManager onLocationTimeout] 11-14 00:33:24.401 13778 15281 W TSLocationManager: ⚠️ TSLocationManager received location timeout 11-14 00:33:24.428 13778 15283 D TSLocationManager: [c.t.l.LocationService onHeartbeat] ❤️ 11-14 00:33:24.443 13778 15281 W TSLocationManager: [c.t.l.l.TSLocationManager onLocationTimeout] 11-14 00:33:24.443 13778 15281 W TSLocationManager: ⚠️ TSLocationManager received location timeout 11-14 00:33:24.444 13778 13778 W TSLocationManager: [c.t.l.a.BackgroundGeolocation _onLocationError] 11-14 00:33:24.444 13778 13778 W TSLocationManager: ⚠️ Location error: 408 11-14 00:33:24.463 13778 15283 E TSLocationManager: [c.t.l.l.TSLocationManager getLastLocation] 11-14 00:33:24.463 13778 15283 E TSLocationManager: ‼️ Failed to get last location: com.google.android.gms.tasks.zzu@d3dc1e1 11-14 00:33:24.502 13778 15281 E TSLocationManager: [c.t.l.l.TSLocationManager getLastLocation] 11-14 00:33:24.502 13778 15281 E TSLocationManager: ‼️ Failed to get last location: com.google.android.gms.tasks.zzu@b33f5c7 11-14 00:33:24.518 13778 15283 D TSLocationManager: [c.t.l.LocationService onHeartbeat] ❤️ 11-14 00:33:24.524 13778 15281 W TSLocationManager: [c.t.l.l.TSLocationManager a] 11-14 00:33:24.524 13778 15281 W TSLocationManager: ⚠️ Failed to acquire stationary location from last-known-location 11-14 00:33:24.545 13778 15283 E TSLocationManager: [c.t.l.l.TSLocationManager getLastLocation] 11-14 00:33:24.545 13778 15283 E TSLocationManager: ‼️ Failed to get last location: com.google.android.gms.tasks.zzu@8ec77f4 11-14 00:33:24.571 13778 13778 W TSLocationManager: [c.t.l.a.BackgroundGeolocation _onLocationError] 11-14 00:33:24.571 13778 13778 W TSLocationManager: ⚠️ Location error: 408 11-14 00:38:24.352 13778 15297 D TSLocationManager: [c.t.l.LocationService onHeartbeat] ❤️ 11-14 00:38:24.372 13778 15297 E TSLocationManager: [c.t.l.l.TSLocationManager getLastLocation] 11-14 00:38:24.372 13778 15297 E TSLocationManager: ‼️ Failed to get last location: com.google.android.gms.tasks.zzu@c33cc19 11-14 00:38:24.410 13778 15297 D TSLocationManager: [c.t.l.LocationService onHeartbeat] ❤️ 11-14 00:38:24.430 13778 15297 E TSLocationManager: [c.t.l.l.TSLocationManager getLastLocation] 11-14 00:38:24.430 13778 15297 E TSLocationManager: ‼️ Failed to get last location: com.google.android.gms.tasks.zzu@7b3d6bf 11-14 00:43:23.355 13778 15333 D TSLocationManager: [c.t.l.LocationService onHeartbeat] ❤️ 11-14 00:43:23.395 13778 15333 E TSLocationManager: [c.t.l.l.TSLocationManager getLastLocation] 11-14 00:43:23.395 13778 15333 E TSLocationManager: ‼️ Failed to get last location: com.google.android.gms.tasks.zzu@62240ea 11-14 00:43:23.424 13778 15333 D TSLocationManager: [c.t.l.LocationService onHeartbeat] ❤️ 11-14 00:43:23.457 13778 15333 E TSLocationManager: [c.t.l.l.TSLocationManager getLastLocation] 11-14 00:43:23.457 13778 15333 E TSLocationManager: ‼️ Failed to get last location: com.google.android.gms.tasks.zzu@729e551 11-14 00:45:27.102 13778 15359 D TSLocationManager: [c.t.l.LocationService onHeartbeat] ❤️ 11-14 00:45:27.252 13778 15359 E TSLocationManager: [c.t.l.l.TSLocationManager getLastLocation] 11-14 00:45:27.252 13778 15359 E TSLocationManager: ‼️ Failed to get last location: com.google.android.gms.tasks.zzu@497c624 11-14 00:46:01.008 13778 13815 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config 11-14 00:46:01.047 13778 13778 D TSLocationManager: [c.t.l.BackgroundGeolocationService onDestroy] 11-14 00:46:01.047 13778 13778 D TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:46:01.047 13778 13778 D TSLocationManager: ║ BackgroundGeolocationService destroyed 11-14 00:46:01.047 13778 13778 D TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:46:01.062 13778 13778 D TSLocationManager: [c.t.l.BackgroundGeolocationService r] 11-14 00:46:01.062 13778 13778 D TSLocationManager: 🔴 Unregister PowerSaveChangeReceiver: com.transistorsoft.locationmanager.BackgroundGeolocationService$1@1767cdf 11-14 00:46:01.075 13778 13778 D TSLocationManager: [c.t.l.BackgroundGeolocationService r] 11-14 00:46:01.075 13778 13778 D TSLocationManager: 🔴 Unregister ConnectivityReceiver: com.transistorsoft.locationmanager.BackgroundGeolocationService$2@cf94d2c 11-14 00:46:01.088 13778 13778 I TSLocationManager: [c.t.l.ActivityRecognitionService b] 11-14 00:46:01.088 13778 13778 I TSLocationManager: 🔴 Stop activity updates 11-14 00:46:01.103 13778 13778 D TSLocationManager: [c.t.l.g.TSGeofenceManager b] 11-14 00:46:01.103 13778 13778 D TSLocationManager: 🔴 Stop monitoring geofences 11-14 00:46:01.122 13778 13778 I TSLocationManager: [c.t.l.BackgroundGeolocationService k] 11-14 00:46:01.122 13778 13778 I TSLocationManager: 🔴 Stop heartbeat 11-14 00:47:01.692 16212 16228 I TSLocationManager: [c.t.l.adapter.TSConfig print] 11-14 00:47:01.692 16212 16228 I TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:47:01.692 16212 16228 I TSLocationManager: ║ TSLocationManager version: 2.13.4 (280) 11-14 00:47:01.692 16212 16228 I TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:47:01.692 16212 16228 I TSLocationManager: { 11-14 00:47:01.692 16212 16228 I TSLocationManager: "activityRecognitionInterval": 10000, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "allowIdenticalLocations": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "autoSync": true, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "autoSyncThreshold": 0, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "batchSync": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "debug": true, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "deferTime": 0, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "desiredAccuracy": 0, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "desiredOdometerAccuracy": 100, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "disableElasticity": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "disableStopDetection": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "distanceFilter": 10, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "elasticityMultiplier": 1, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "enableHeadless": true, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "enableTimestampMeta": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "extras": {}, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "fastestLocationUpdateInterval": 10000, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "forceReloadOnBoot": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "forceReloadOnGeofence": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "forceReloadOnHeartbeat": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "forceReloadOnLocationChange": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "forceReloadOnMotionChange": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "forceReloadOnSchedule": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "foregroundService": true, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "geofenceInitialTriggerEntry": true, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "geofenceProximityRadius": 1000, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "geofenceTemplate": "", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "headers": {}, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessTask", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "heartbeatInterval": 60, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "httpRootProperty": "location", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "httpTimeout": 60000, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "isMoving": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "locationTemplate": "", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "locationTimeout": 60, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "locationUpdateInterval": 1000, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "locationsOrderDirection": "ASC", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "logLevel": 5, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "logMaxDays": 3, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "maxBatchSize": -1, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "maxDaysToPersist": 14, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "maxRecordsToPersist": -1, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "method": "POST", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "minimumActivityRecognitionConfidence": 75, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "notificationColor": "", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "notificationLargeIcon": "", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "notificationPriority": 0, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "notificationSmallIcon": "", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "notificationText": "Location Service activated", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "notificationTitle": "", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "params": { 11-14 00:47:01.692 16212 16228 I TSLocationManager: "device": { 11-14 00:47:01.692 16212 16228 I TSLocationManager: "version": "8.1.0", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "manufacturer": "OPPO", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "framework": "ReactNative", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "platform": "Android", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "model": "CPH1803", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "uuid": "CPH1803-8-1-0" 11-14 00:47:01.692 16212 16228 I TSLocationManager: } 11-14 00:47:01.692 16212 16228 I TSLocationManager: }, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "persist": true, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "schedule": [], 11-14 00:47:01.692 16212 16228 I TSLocationManager: "startOnBoot": true, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "stationaryRadius": 25, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "stopAfterElapsedMinutes": 0, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "stopOnStationary": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "stopOnTerminate": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "stopTimeout": 5, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "url": "http:\/\/tracker.transistorsoft.com\/locations\/udbhav1", 11-14 00:47:01.692 16212 16228 I TSLocationManager: "enabled": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "schedulerEnabled": false, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "trackingMode": 1, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "odometer": 0, 11-14 00:47:01.692 16212 16228 I TSLocationManager: "isFirstBoot": false 11-14 00:47:01.692 16212 16228 I TSLocationManager: } 11-14 00:47:01.692 16212 16228 I TSLocationManager: ╔═════════════════════════════════════════════ 11-14 00:47:01.692 16212 16228 I TSLocationManager: ║ DEVICE SENSORS 11-14 00:47:01.692 16212 16228 I TSLocationManager: ╠═════════════════════════════════════════════ 11-14 00:47:01.692 16212 16228 I TSLocationManager: ╟─ ✅ ACCELEROMETER: {Sensor name="LIS3DH Accelerometer", vendor="STMicroelectronics", version=1, type=1, maxRange=39.22661, resolution=0.019607544, power=0.185, minDelay=5000} 11-14 00:47:01.692 16212 16228 I TSLocationManager: ╟─ ✅ GYROSCOPE: {Sensor name="Oppo_Gyroscope", vendor="OPPO", version=2, type=4, maxRange=4.2949673E9, resolution=0.1, power=0.001, minDelay=5000} 11-14 00:47:01.692 16212 16228 I TSLocationManager: ╟─ ✅ MAGNETOMETER: {Sensor name="AK09911 Magnetometer", vendor="AKM", version=1, type=2, maxRange=4911.9995, resolution=0.5996704, power=2.4, minDelay=10000} 11-14 00:47:01.692 16212 16228 I TSLocationManager: ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="Significant Motion Detector", vendor="QTI", version=2, type=17, maxRange=1.0, resolution=1.0, power=0.18499756, minDelay=-1} 11-14 00:47:01.692 16212 16228 I TSLocationManager: ╚═════════════════════════════════════════════ 11-14 00:47:01.812 16212 16236 I TSLocationManager: [c.t.l.a.BackgroundGeolocation ] 11-14 00:47:01.812 16212 16236 I TSLocationManager: ✅ Google Play Services: connected (version code:12451000) 11-14 00:47:01.852 16212 16236 D TSLocationManager: [c.t.locationmanager.data.a.c a] 11-14 00:47:01.852 16212 16236 D TSLocationManager: ✅ Opened database 11-14 00:47:01.870 16212 16236 D TSLocationManager: [c.t.locationmanager.data.a.c prune] 11-14 00:47:01.870 16212 16236 D TSLocationManager: ℹ️ PRUNE -14 days 11-14 00:47:01.892 16212 16236 D TSLocationManager: [c.t.locationmanager.data.a.a f] 11-14 00:47:01.892 16212 16236 D TSLocationManager: ✅ Opened database 11-14 00:47:03.975 16212 16236 D TSLocationManager: [c.t.l.a.BackgroundGeolocation ready] LocationPermission :true

christocracy commented 5 years ago

My Pixel on Android 9:

11-13 14:22:48.496 14499 14516 I TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:22:48.496 14499 14516 I TSLocationManager: ║ TSLocationManager version: 2.13.4 (280)
11-13 14:22:48.496 14499 14516 I TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:22:48.496 14499 14516 I TSLocationManager: {
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "activityRecognitionInterval": 10000,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "allowIdenticalLocations": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "autoSync": true,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "autoSyncThreshold": 0,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "batchSync": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "debug": true,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "deferTime": 0,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "desiredAccuracy": 0,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "desiredOdometerAccuracy": 100,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "disableElasticity": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "disableStopDetection": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "distanceFilter": 10,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "elasticityMultiplier": 1,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "enableHeadless": true,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "enableTimestampMeta": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "extras": {},
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "fastestLocationUpdateInterval": 10000,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "forceReloadOnBoot": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "forceReloadOnGeofence": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "forceReloadOnHeartbeat": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "forceReloadOnLocationChange": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "forceReloadOnMotionChange": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "forceReloadOnSchedule": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "foregroundService": true,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "geofenceInitialTriggerEntry": true,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "geofenceProximityRadius": 1000,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "geofenceTemplate": "",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "headers": {},
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessTask",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "heartbeatInterval": 60,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "httpRootProperty": "location",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "httpTimeout": 60000,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "isMoving": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "locationTemplate": "",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "locationTimeout": 60,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "locationUpdateInterval": 1000,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "locationsOrderDirection": "ASC",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "logLevel": 5,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "logMaxDays": 3,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "maxBatchSize": -1,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "maxDaysToPersist": 14,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "maxRecordsToPersist": -1,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "method": "POST",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "minimumActivityRecognitionConfidence": 75,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "notificationColor": "",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "notificationLargeIcon": "",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "notificationPriority": 0,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "notificationSmallIcon": "",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "notificationText": "Location Service activated",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "notificationTitle": "",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "params": {
11-13 14:22:48.496 14499 14516 I TSLocationManager:     "device": {
11-13 14:22:48.496 14499 14516 I TSLocationManager:       "version": "9",
11-13 14:22:48.496 14499 14516 I TSLocationManager:       "manufacturer": "Google",
11-13 14:22:48.496 14499 14516 I TSLocationManager:       "framework": "ReactNative",
11-13 14:22:48.496 14499 14516 I TSLocationManager:       "platform": "Android",
11-13 14:22:48.496 14499 14516 I TSLocationManager:       "model": "Pixel",
11-13 14:22:48.496 14499 14516 I TSLocationManager:       "uuid": "Pixel-9"
11-13 14:22:48.496 14499 14516 I TSLocationManager:     }
11-13 14:22:48.496 14499 14516 I TSLocationManager:   },
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "persist": true,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "schedule": [],
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "startOnBoot": true,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "stationaryRadius": 25,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "stopAfterElapsedMinutes": 0,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "stopOnStationary": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "stopOnTerminate": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "stopTimeout": 5,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "url": "http:\/\/tracker.transistorsoft.com\/locations\/transistor-rn",
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "enabled": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "schedulerEnabled": false,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "trackingMode": 1,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "odometer": 2.4619033336639404,
11-13 14:22:48.496 14499 14516 I TSLocationManager:   "isFirstBoot": false
11-13 14:22:48.496 14499 14516 I TSLocationManager: }
11-13 14:22:48.496 14499 14516 I TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:22:48.496 14499 14516 I TSLocationManager: ║ DEVICE SENSORS
11-13 14:22:48.496 14499 14516 I TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:22:48.496 14499 14516 I TSLocationManager: ╟─ ✅  ACCELEROMETER: {Sensor name="BMI160 accelerometer", vendor="Bosch", version=1, type=1, maxRange=156.9064, resolution=0.0047884034, power=0.001, minDelay=2500}
11-13 14:22:48.496 14499 14516 I TSLocationManager: ╟─ ✅  GYROSCOPE: {Sensor name="BMI160 gyroscope", vendor="Bosch", version=1, type=4, maxRange=17.453293, resolution=5.326322E-4, power=0.001, minDelay=2500}
11-13 14:22:48.496 14499 14516 I TSLocationManager: ╟─ ✅  MAGNETOMETER: {Sensor name="AK09915 magnetometer", vendor="AKM", version=1, type=2, maxRange=1300.0, resolution=0.0, power=0.001, minDelay=20000}
11-13 14:22:48.496 14499 14516 I TSLocationManager: ╟─ ✅  SIGNIFICANT_MOTION: {Sensor name="Significant motion", vendor="Google", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.001, minDelay=-1}
11-13 14:22:48.496 14499 14516 I TSLocationManager: ╚═════════════════════════════════════════════
11-13 14:22:48.554 14499 14522 I TSLocationManager: [c.t.l.a.BackgroundGeolocation <init>]
11-13 14:22:48.554 14499 14522 I TSLocationManager:   ✅  Google Play Services: connected (version code:12451000)
11-13 14:22:48.569 14499 14522 D TSLocationManager: [c.t.locationmanager.data.a.c a]
11-13 14:22:48.569 14499 14522 D TSLocationManager:   ✅  Opened database
11-13 14:22:48.574 14499 14522 D TSLocationManager: [c.t.locationmanager.data.a.c prune]
11-13 14:22:48.574 14499 14522 D TSLocationManager:   ℹ️  PRUNE -14 days
11-13 14:22:48.581 14499 14522 D TSLocationManager: [c.t.locationmanager.data.a.a f]
11-13 14:22:48.581 14499 14522 D TSLocationManager:   ✅  Opened database
11-13 14:22:49.987 14499 14522 D TSLocationManager: [c.t.l.a.BackgroundGeolocation ready] LocationPermission :true
11-13 14:22:53.925  3191 14019 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
11-13 14:22:53.954 20275 14021 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)

11-13 14:23:14.646 14499 14522 D TSLocationManager: [c.t.locationmanager.util.b a]
11-13 14:23:14.646 14499 14522 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-13 14:23:14.649 14499 14646 I TSLocationManager: - Enable: false → true, trackingMode: 1
11-13 14:23:14.665 14499 14499 I TSLocationManager: [c.t.l.BackgroundGeolocationService onStartCommand]
11-13 14:23:14.665 14499 14499 I TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:23:14.665 14499 14499 I TSLocationManager: ║ BackgroundGeolocation Service started
11-13 14:23:14.665 14499 14499 I TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:23:14.680 14499 14499 I TSLocationManager: [c.t.l.BackgroundGeolocationService d]
11-13 14:23:14.680 14499 14499 I TSLocationManager:   ✅  Started in foreground
11-13 14:23:14.695 14499 14499 I TSLocationManager: [c.t.l.ActivityRecognitionService a]
11-13 14:23:14.695 14499 14499 I TSLocationManager:   🎾  Start activity updates: 10000
11-13 14:23:14.704 14499 14499 I TSLocationManager: [c.t.l.BackgroundGeolocationService k]
11-13 14:23:14.704 14499 14499 I TSLocationManager:   🔴  Stop heartbeat
11-13 14:23:14.709 14499 14499 I TSLocationManager: [c.t.l.BackgroundGeolocationService a]
11-13 14:23:14.709 14499 14499 I TSLocationManager:   🎾  Start heartbeat (60)
11-13 14:23:14.714 14499 14499 I TSLocationManager: [c.t.l.BackgroundGeolocationService a]
11-13 14:23:14.714 14499 14499 I TSLocationManager:   🔵  setPace: null → false
11-13 14:23:14.716 14499 14499 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️   Persist config
11-13 14:23:14.721 14499 14499 D TSLocationManager: [c.t.locationmanager.util.b a]
11-13 14:23:14.721 14499 14499 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-13 14:23:14.754 14499 14648 D TSLocationManager: [c.t.l.http.HttpService flush]
11-13 14:23:14.754 14499 14648 D TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:23:14.754 14499 14648 D TSLocationManager: ║ HTTP Service
11-13 14:23:14.754 14499 14648 D TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:23:14.784  3191 14019 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
11-13 14:23:14.821 20275 14021 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
11-13 14:23:14.901 14499 14648 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
11-13 14:23:17.245 14499 14499 D TSLocationManager: [c.t.l.l.SingleLocationRequest$2 onLocationResult]
11-13 14:23:17.245 14499 14499 D TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:23:17.245 14499 14499 D TSLocationManager: ║ SingleLocationRequest: 1
11-13 14:23:17.245 14499 14499 D TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:23:17.245 14499 14499 D TSLocationManager: ╟─ 📍  Location[fused 45.519230,-73.617087 hAcc=16 et=+14d6h36m21s742ms alt=44.79999923706055 vAcc=2 sAcc=??? bAcc=??? {Bundle[{requestId=1, verticalAccuracy=2.0}]}], age: 2098ms, time: 1542136995141
11-13 14:23:17.251 14499 14648 I TSLocationManager: [c.t.l.l.TSLocationManager onSingleLocationResult]
11-13 14:23:17.251 14499 14648 I TSLocationManager:   🔵  Acquired motionchange position, isMoving: false
11-13 14:23:17.256 14499 14648 D TSLocationManager: [c.t.l.l.TSLocationManager a] 15.564
11-13 14:23:17.293 14499 14646 I TSLocationManager: [c.t.locationmanager.data.a.c persist]
11-13 14:23:17.293 14499 14646 I TSLocationManager:   ✅  INSERT: 2e8064d1-a059-48d8-8242-0fa90709dfd7
11-13 14:23:17.298 14499 14646 D TSLocationManager: [c.t.l.http.HttpService flush]
11-13 14:23:17.298 14499 14646 D TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:23:17.298 14499 14646 D TSLocationManager: ║ HTTP Service
11-13 14:23:17.298 14499 14646 D TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:23:17.315 14499 14661 D TSLocationManager: [c.t.locationmanager.data.a.c first]
11-13 14:23:17.315 14499 14661 D TSLocationManager:   ✅  Locked 1 records
11-13 14:23:17.323 14499 14661 I TSLocationManager: [c.t.l.http.HttpService a]
11-13 14:23:17.323 14499 14661 I TSLocationManager:   🔵  HTTP POST: 2e8064d1-a059-48d8-8242-0fa90709dfd7
11-13 14:23:17.460 14499 14662 I TSLocationManager: [c.t.l.http.HttpService$a onResponse]
11-13 14:23:17.460 14499 14662 I TSLocationManager:   🔵  Response: 200
11-13 14:23:17.468 14499 14662 D TSLocationManager: [c.t.locationmanager.data.a.c destroy]
11-13 14:23:17.468 14499 14662 D TSLocationManager:   ✅  DESTROY: 2e8064d1-a059-48d8-8242-0fa90709dfd7
Udbhav12 commented 5 years ago

Do I need to move also for this demo app to work? I am sitting on my work desk, Device is still. It's not in motion

Could this be the reason for 'No device present' message ?

christocracy commented 5 years ago

Do I need to move also for this demo app to work?

No. The first thing the plugin does is ask "Where am I?". Your device(s) are not returning locations to the plugin.

11-14 00:33:24.444 13778 13778 W TSLocationManager: ⚠️ Location error: 408
11-14 00:33:24.463 13778 15283 E TSLocationManager: [c.t.l.l.TSLocationManager getLastLocation]
11-14 00:33:24.463 13778 15283 E TSLocationManager: ‼️ Failed to get last location: com.google.android.gms.tasks.zzu@d3dc1e1

My worst Samsung device (J1)

11-13 14:27:24.071 28712 28744 I TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:27:24.071 28712 28744 I TSLocationManager: ║ TSLocationManager version: 2.13.4 (280)
11-13 14:27:24.071 28712 28744 I TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:27:24.071 28712 28744 I TSLocationManager: {
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "activityRecognitionInterval": 10000,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "allowIdenticalLocations": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "autoSync": true,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "autoSyncThreshold": 0,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "batchSync": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "debug": true,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "deferTime": 0,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "desiredAccuracy": 0,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "desiredOdometerAccuracy": 100,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "disableElasticity": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "disableStopDetection": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "distanceFilter": 50,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "elasticityMultiplier": 1,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "enableHeadless": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "enableTimestampMeta": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "extras": {},
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "fastestLocationUpdateInterval": 10000,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "forceReloadOnBoot": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "forceReloadOnGeofence": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "forceReloadOnHeartbeat": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "forceReloadOnLocationChange": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "forceReloadOnMotionChange": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "forceReloadOnSchedule": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "foregroundService": true,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "geofenceInitialTriggerEntry": true,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "geofenceProximityRadius": 1000,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "geofenceTemplate": "",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "headers": {},
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessJobService",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "heartbeatInterval": 60,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "httpRootProperty": "location",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "httpTimeout": 60000,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "isMoving": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "locationTemplate": "",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "locationTimeout": 60,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "locationUpdateInterval": 1000,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "locationsOrderDirection": "ASC",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "logLevel": 5,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "logMaxDays": 3,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "maxBatchSize": -1,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "maxDaysToPersist": 7,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "maxRecordsToPersist": -1,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "method": "POST",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "minimumActivityRecognitionConfidence": 75,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "notificationColor": "",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "notificationLargeIcon": "",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "notificationPriority": 0,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "notificationSmallIcon": "",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "notificationText": "Location Service activated",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "notificationTitle": "",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "params": {
11-13 14:27:24.071 28712 28744 I TSLocationManager:     "device": {
11-13 14:27:24.071 28712 28744 I TSLocationManager:       "version": "6.0.1",
11-13 14:27:24.071 28712 28744 I TSLocationManager:       "manufacturer": "samsung",
11-13 14:27:24.071 28712 28744 I TSLocationManager:       "framework": "ReactNative",
11-13 14:27:24.071 28712 28744 I TSLocationManager:       "platform": "Android",
11-13 14:27:24.071 28712 28744 I TSLocationManager:       "model": "SAMSUNG-SM-J320A",
11-13 14:27:24.071 28712 28744 I TSLocationManager:       "uuid": "c6288a847ca007b2"
11-13 14:27:24.071 28712 28744 I TSLocationManager:     }
11-13 14:27:24.071 28712 28744 I TSLocationManager:   },
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "persist": true,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "schedule": [],

11-13 14:27:24.071 28712 28744 I TSLocationManager:   "startOnBoot": true,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "stationaryRadius": 25,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "stopAfterElapsedMinutes": 0,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "stopOnStationary": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "stopOnTerminate": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "stopTimeout": 1,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "url": "http:\/\/tracker.transistorsoft.com\/locations\/transistor-rn",
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "enabled": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "schedulerEnabled": false,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "trackingMode": 1,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "odometer": 13063.33984375,
11-13 14:27:24.071 28712 28744 I TSLocationManager:   "isFirstBoot": false
11-13 14:27:24.071 28712 28744 I TSLocationManager: }
11-13 14:27:24.071 28712 28744 I TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:27:24.071 28712 28744 I TSLocationManager: ║ DEVICE SENSORS
11-13 14:27:24.071 28712 28744 I TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:27:24.071 28712 28744 I TSLocationManager: ╟─ ✅  ACCELEROMETER: {Sensor name="K2HH Acceleration ", vendor="STM", version=1, type=1, maxRange=39.2266, resolution=0.0011971008, power=0.13, minDelay=10000}
11-13 14:27:24.071 28712 28744 I TSLocationManager: ╟─ ⚠️  GYROSCOPE:  none.  Motion-detection system performance will be degraded
11-13 14:27:24.071 28712 28744 I TSLocationManager: ╟─ ⚠️  MAGNETOMETER:  none.  Motion-detection system performance will be degraded
11-13 14:27:24.071 28712 28744 I TSLocationManager: ╟─ ⚠️  SIGNIFICANT_MOTION:  none.  Motion-detection system performance will be degraded
11-13 14:27:24.071 28712 28744 I TSLocationManager: ╚═════════════════════════════════════════════
11-13 14:27:24.416 28712 28744 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️   Persist config
11-13 14:27:24.816 28712 28802 I TSLocationManager: [c.t.l.a.BackgroundGeolocation <init>]
11-13 14:27:24.816 28712 28802 I TSLocationManager:   ✅  Google Play Services: connected (version code:12451000)
11-13 14:27:24.906 28712 28802 D TSLocationManager: [c.t.locationmanager.data.a.c a]
11-13 14:27:24.906 28712 28802 D TSLocationManager:   ✅  Opened database
11-13 14:27:24.946 28712 28802 D TSLocationManager: [c.t.locationmanager.data.a.c prune]
11-13 14:27:24.946 28712 28802 D TSLocationManager:   ℹ️  PRUNE -7 days
11-13 14:27:25.006 28712 28802 D TSLocationManager: [c.t.locationmanager.data.a.a f]
11-13 14:27:25.006 28712 28802 D TSLocationManager:   ✅  Opened database

11-13 14:27:31.681 28712 28802 D TSLocationManager: [c.t.l.a.BackgroundGeolocation ready] LocationPermission :true
11-13 14:27:36.941 28712 28802 D TSLocationManager: [c.t.locationmanager.util.b a]
11-13 14:27:36.941 28712 28802 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-13 14:27:37.061 28712 29130 I TSLocationManager: - Enable: false → true, trackingMode: 1
11-13 14:27:37.241 28712 28712 I TSLocationManager: [c.t.l.BackgroundGeolocationService onStartCommand]
11-13 14:27:37.241 28712 28712 I TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:27:37.241 28712 28712 I TSLocationManager: ║ BackgroundGeolocation Service started
11-13 14:27:37.241 28712 28712 I TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:27:37.271 28712 28712 I TSLocationManager: [c.t.l.BackgroundGeolocationService d]
11-13 14:27:37.271 28712 28712 I TSLocationManager:   ✅  Started in foreground
11-13 14:27:37.401 28712 28712 I TSLocationManager: [c.t.l.ActivityRecognitionService a]
11-13 14:27:37.401 28712 28712 I TSLocationManager:   🎾  Start activity updates: 10000
11-13 14:27:37.486 28712 28712 I TSLocationManager: [c.t.l.BackgroundGeolocationService k]
11-13 14:27:37.486 28712 28712 I TSLocationManager:   🔴  Stop heartbeat
11-13 14:27:37.511 28712 28712 I TSLocationManager: [c.t.l.BackgroundGeolocationService a]
11-13 14:27:37.511 28712 28712 I TSLocationManager:   🎾  Start heartbeat (60)
11-13 14:27:37.551 28712 28712 I TSLocationManager: [c.t.l.BackgroundGeolocationService a]
11-13 14:27:37.551 28712 28712 I TSLocationManager:   🔵  setPace: null → false
11-13 14:27:37.561 28712 28712 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️   Persist config
11-13 14:27:37.606 28712 28712 D TSLocationManager: [c.t.locationmanager.util.b a]
11-13 14:27:37.606 28712 28712 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-13 14:27:37.726 28712 29136 D TSLocationManager: [c.t.l.http.HttpService flush]
11-13 14:27:37.726 28712 29136 D TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:27:37.726 28712 29136 D TSLocationManager: ║ HTTP Service
11-13 14:27:37.726 28712 29136 D TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:27:40.091 28712 29136 I TSLocationManager: [c.t.l.l.TSLocationManager onSingleLocationResult]
11-13 14:27:40.091 28712 29136 I TSLocationManager:   🔵  Acquired motionchange position, isMoving: false
11-13 14:27:40.096 28712 28712 D TSLocationManager: [c.t.l.l.SingleLocationRequest$2 onLocationResult]
11-13 14:27:40.096 28712 28712 D TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:27:40.096 28712 28712 D TSLocationManager: ║ SingleLocationRequest: 1
11-13 14:27:40.096 28712 28712 D TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:27:40.096 28712 28712 D TSLocationManager: ╟─ 📍  Location[fused 45.519285,-73.616994 acc=15 et=+133d2h32m12s311ms alt=45.0 {Bundle[{requestId=1, verticalAccuracy=2.0}]}], age: 814ms, time: 1542137259260
11-13 14:27:40.111 28712 29136 D TSLocationManager: [c.t.l.l.TSLocationManager a] 15.373
11-13 14:27:40.221 28712 29136 D TSLocationManager: [c.t.l.g.TSGeofenceManager a]
11-13 14:27:40.221 28712 29136 D TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:27:40.221 28712 29136 D TSLocationManager: ║ TSGeofenceManager found 3/4 within 1000 meters
11-13 14:27:40.221 28712 29136 D TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:27:40.221 28712 29136 D TSLocationManager: ╟─ 🎾  jfk
11-13 14:27:40.221 28712 29136 D TSLocationManager: ╟─ 🎾  laj
11-13 14:27:40.221 28712 29136 D TSLocationManager: ╟─ 🎾  bernard
11-13 14:27:40.221 28712 29136 D TSLocationManager: ╚═════════════════════════════════════════════
11-13 14:27:40.371 28712 29130 I TSLocationManager: [c.t.locationmanager.data.a.c persist]
11-13 14:27:40.371 28712 29130 I TSLocationManager:   ✅  INSERT: b36e1df5-e884-4848-a456-4a9305b8ecfc
11-13 14:27:40.401 28712 29130 D TSLocationManager: [c.t.l.http.HttpService flush]
11-13 14:27:40.401 28712 29130 D TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:27:40.401 28712 29130 D TSLocationManager: ║ HTTP Service
11-13 14:27:40.401 28712 29130 D TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:27:40.456 28712 29196 D TSLocationManager: [c.t.locationmanager.data.a.c first]
11-13 14:27:40.456 28712 29196 D TSLocationManager:   ✅  Locked 1 records
11-13 14:27:40.486 28712 29196 I TSLocationManager: [c.t.l.http.HttpService a]
11-13 14:27:40.486 28712 29196 I TSLocationManager:   🔵  HTTP POST: b36e1df5-e884-4848-a456-4a9305b8ecfc
11-13 14:27:40.931 28712 29198 I TSLocationManager: [c.t.l.http.HttpService$a onResponse]
11-13 14:27:40.931 28712 29198 I TSLocationManager:   🔵  Response: 200
11-13 14:27:40.961 28712 29198 D TSLocationManager: [c.t.locationmanager.data.a.c destroy]
11-13 14:27:40.961 28712 29198 D TSLocationManager:   ✅  DESTROY: b36e1df5-e884-4848-a456-4a9305b8ecfc
11-13 14:27:42.016 28712 29136 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
11-13 14:27:42.051 18970 28458 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
11-13 14:27:42.116 18913 28462 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
11-13 14:27:42.136 18913 28462 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
11-13 14:27:52.581 28712 28712 I TSLocationManager: [c.t.l.BootReceiver onReceive]
11-13 14:27:52.581 28712 28712 I TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:27:52.581 28712 28712 I TSLocationManager: ║ BootReceiver: com.transistorsoft.backgroundgeolocation.react
11-13 14:27:52.581 28712 28712 I TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:27:52.581 28712 28712 I TSLocationManager: ╟─ android.intent.action.MY_PACKAGE_REPLACED
11-13 14:27:52.671 28712 28712 I TSLocationManager: [c.t.l.BackgroundGeolocationService onStartCommand]
11-13 14:27:52.671 28712 28712 I TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:27:52.671 28712 28712 I TSLocationManager: ║ BackgroundGeolocation Service started
11-13 14:27:52.671 28712 28712 I TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:27:52.686 28712 28712 I TSLocationManager: [c.t.l.BackgroundGeolocationService d]
11-13 14:27:52.686 28712 28712 I TSLocationManager:   ✅  Started in foreground
11-13 14:27:52.726 28712 28712 I TSLocationManager: [c.t.l.ActivityRecognitionService a]
11-13 14:27:52.726 28712 28712 I TSLocationManager:   🎾  Start activity updates: 10000
11-13 14:27:52.751 28712 28712 I TSLocationManager: [c.t.l.BackgroundGeolocationService k]
11-13 14:27:52.751 28712 28712 I TSLocationManager:   🔴  Stop heartbeat
11-13 14:27:52.776 28712 28712 I TSLocationManager: [c.t.l.BackgroundGeolocationService a]
11-13 14:27:52.776 28712 28712 I TSLocationManager:   🎾  Start heartbeat (60)
11-13 14:27:52.871 28712 28712 I TSLocationManager: [c.t.l.BackgroundGeolocationService a]
11-13 14:27:52.871 28712 28712 I TSLocationManager:   🔵  setPace: null → false
11-13 14:27:52.911 28712 28712 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️   Persist config
11-13 14:27:52.956 28712 28712 D TSLocationManager: [c.t.locationmanager.util.b a]
11-13 14:27:52.956 28712 28712 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-13 14:27:53.061 28712 29136 D TSLocationManager: [c.t.l.http.HttpService flush]
11-13 14:27:53.061 28712 29136 D TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:27:53.061 28712 29136 D TSLocationManager: ║ HTTP Service
11-13 14:27:53.061 28712 29136 D TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:27:53.556 18970 28458 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
11-13 14:27:53.661 28712 29136 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
11-13 14:27:53.826 18913 29588 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
11-13 14:27:53.871 18913 28462 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
11-13 14:27:53.886 18913 28462 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
11-13 14:27:54.431 28712 28712 D TSLocationManager: [c.t.l.l.SingleLocationRequest$2 onLocationResult]
11-13 14:27:54.431 28712 28712 D TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:27:54.431 28712 28712 D TSLocationManager: ║ SingleLocationRequest: 2
11-13 14:27:54.431 28712 28712 D TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:27:54.431 28712 28712 D TSLocationManager: ╟─ 📍  Location[fused 45.519286,-73.616992 acc=15 et=+133d2h32m27s333ms alt=45.0 {Bundle[{requestId=2, verticalAccuracy=2.0}]}], age: 138ms, time: 1542137274282
11-13 14:27:54.431 28712 29136 I TSLocationManager: [c.t.l.l.TSLocationManager onSingleLocationResult]
11-13 14:27:54.431 28712 29136 I TSLocationManager:   🔵  Acquired motionchange position, isMoving: false
11-13 14:27:54.481 28712 29136 D TSLocationManager: [c.t.l.l.TSLocationManager a] 15.33
11-13 14:27:54.561 28712 29196 I TSLocationManager: [c.t.locationmanager.data.a.c persist]
11-13 14:27:54.561 28712 29196 I TSLocationManager:   ✅  INSERT: 7db53665-168d-4d8b-beb7-84889307f61f
11-13 14:27:54.611 28712 29196 D TSLocationManager: [c.t.l.http.HttpService flush]
11-13 14:27:54.611 28712 29196 D TSLocationManager: ╔═════════════════════════════════════════════
11-13 14:27:54.611 28712 29196 D TSLocationManager: ║ HTTP Service
11-13 14:27:54.611 28712 29196 D TSLocationManager: ╠═════════════════════════════════════════════
11-13 14:27:54.641 28712 29130 D TSLocationManager: [c.t.locationmanager.data.a.c first]
11-13 14:27:54.641 28712 29130 D TSLocationManager:   ✅  Locked 1 records
11-13 14:27:54.661 28712 29130 I TSLocationManager: [c.t.l.http.HttpService a]
11-13 14:27:54.661 28712 29130 I TSLocationManager:   🔵  HTTP POST: 7db53665-168d-4d8b-beb7-84889307f61f
11-13 14:27:54.796 28712 29198 I TSLocationManager: [c.t.l.http.HttpService$a onResponse]
11-13 14:27:54.796 28712 29198 I TSLocationManager:   🔵  Response: 200
11-13 14:27:54.816 28712 29198 D TSLocationManager: [c.t.locationmanager.data.a.c destroy]
11-13 14:27:54.816 28712 29198 D TSLocationManager:   ✅  DESTROY: 7db53665-168d-4d8b-beb7-84889307f61f
christocracy commented 5 years ago

It must be a device Settings problem. Anything here?

Udbhav12 commented 5 years ago

I just turned off my GPS, turned it back again and now your demo app is working perfectly on OnePlus 6T device.

http://tracker.transistorsoft.com/udbhav2

Udbhav12 commented 5 years ago

It must be a device Settings problem. Anything here?

Thanks for the above link, I restarted the phone, and now the demo app is working fine

http://tracker.transistorsoft.com/udbhav1

christocracy commented 5 years ago

Youtube is wonky for me today, but here

Udbhav12 commented 5 years ago

Youtube is wonky for me today, but here LOL.

Let me field test this app tomorrow again on OPPO device for release build. I will share you my findings

christocracy commented 5 years ago

You can easily configure your own app to post to tracker.transistorsoft.com using the method BackgroundGeolocation.transistorTrackerParams

Requires you import react-native-device-info:

BackgroundGeolocation.ready({
  url: 'http://tracker.transistorsoft.com/locations/udbhav1',
  params: BackgroundGeolocation.transistorTrackerParams(device)
})

Btw, you don't need to use different usernames for each device. The test-server offers a drop-down to select each device.

Udbhav12 commented 5 years ago

You can easily configure your own app to post to tracker.transistorsoft.com

I am already sending locations to my own server using my own logic. I am not using 'url' of react native background geolocation

Anyhow I again tested tracking for my app on my OPPO device today. I was on the field for approximately 2 hours. Surprisingly today tracking worked fine.

Logs attached below background-geolocation 2.log

christocracy commented 5 years ago

I am already sending locations to my own server using my own logic. I am not using 'url' of react native background geolocation

For quick testing, I mean. not for production usage.

Logs look normal.

Udbhav12 commented 5 years ago

@christocracy - Can you please elaborate exactly when error 408 is returned? And is there any solution for this problem?

I don't understand why device was not able to fetch location yesterday not even once during course of 2 hours even when GPS (High Accuracy Mode) and Mobile Network were turned on

Anyhow I would again test tracking today evening on multiple devices

christocracy commented 5 years ago

408 is returned after locationTimeout (default 60 s).

Device location API is like a tap of water -- the plugin provides an API for you to turn on the taps and adjust the flow (distanceFilter) and heat (desiredAccuracy).

The plugin holds a cup of water beneath the tap and delivers the water to you.

When 408 fires, the plugin turned on the tap and waited for water to flow from the native location API. No water came out. When no water flows, it's the fault of the City's water system (Device / OS).

christocracy commented 5 years ago

You will get a 408 if you set device settings Location Mode to Device Only (ie GPS only) and attempt to get a location while indoors, where GPS doesn’t work.

You could have problems if device WiFi is disabled and attempt to get a location while indoors, as well.

Udbhav12 commented 5 years ago

Thanks for such clear explanation. Anyhow I field tested the app once again on my OPPO device and this time also tracking worked fine

I guess I would be closing this issue now, as I don't know how to recreate it

vovkind commented 5 years ago

May I ask some question relevant to error 408?

We frequently have it (yes, probably due to some testing indoor). Our problem is with further behavior. After 408 happened, we never get new locations after that.

Will not the plugin try again to reconnect to location services?

christocracy commented 5 years ago

Will not the plugin try again to reconnect to location services?

The plugin doesn't disconnect from location-services.