Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin crashing app with: Methods marked with @UiThread must be executed on the main thread #100

Closed
malengatiger opened this issue Jul 23, 2019 · 11 comments

Comments

@malengatiger
Copy link

Your Environment

  • Plugin version: flutter_background_geolocation: ^1.0.11
  • Platform: iOS or Android Android
  • OS version:
  • Device manufacturer / model: Pixel 2
  • Flutter info (flutter doctor):
    [✓] Flutter (Channel stable, v1.7.8+hotfix.3, on Mac OS X 10.14.4 18E2034, locale en-GB)
    • Flutter version 1.7.8+hotfix.3 at /Users/aubs/WORK/flutter
    • Framework revision b712a172f9 (2 weeks ago), 2019-07-09 13:14:38 -0700
    • Engine revision 54ad777fd2
    • Dart version 2.4.0

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
• Android SDK at /Users/aubs/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.

[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.3, Build version 10G8
• CocoaPods version 1.7.4

[✓] iOS tools - develop for iOS devices
• ios-deploy 1.9.4

[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 37.1.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] IntelliJ IDEA Community Edition (version 2019.1.3)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 37.1.3
• Dart plugin version 191.7830

[✓] VS Code (version 1.36.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.2.0

[✓] Connected device (2 available)
• Pixel 2 • HT79S1A03826 • android-arm64 • Android 9 (API 28)
• Redmi 3S • cfe0c29e7d43 • android-arm64 • Android 6.0.1 (API 23)

! Doctor found issues in 1 category.

  • Plugin config:
PASTE_YOUR_CODE_HERE
```bg.BackgroundGeolocation.ready(
      bg.Config(
          desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH,
          geofenceProximityRadius: GEOFENCE_PROXIMITY_RADIUS,
          heartbeatInterval: HEARTBEAT_INTERVAL_SECONDS,
          startOnBoot: true,
          stopOnTerminate: true,
          allowIdenticalLocations: false,
          debug: false,
          logLevel: bg.Config.LOG_LEVEL_OFF,
          distanceFilter: DISTANCE_FILTER,
          enableHeadless: true,
          url: url,
          reset: true,
          schedule: [
            '1-7 1:00-23:59', // Sun-Sat: 1:00am to 12:00am all day
          ]),
    ).then((state) async {
      print(
          ' 🍏 🍏 🍏 🍏 GeoFencer: 🍏 🍏 🍏 🍏 BackgroundGeolocation  :: 💛️ READY state 🍏 🍏 $state');
    }).catchError((err) {
      print(err);
    }).whenComplete(() async {
      print(
          '💜 💜 bg.BackgroundGeolocation.ready 💜 💜 💜 💜  whenComplete: ...........');
      try {
        print(
            '🔆 🔆 🔆 🔆 GeoFencer:️..... run BackgroundGeolocation.startSchedule ... 🔆 🔆 🔆 🔆');
        await bg.BackgroundGeolocation.startSchedule();
        var state = await bg.BackgroundGeolocation.state;
        print(
            '🔆 🔆 🔆 🔆 GeoFencer:️..... 🧩 🧩 🧩 vehicle log schedule started; state.enabled: 💜 💜 ${state.enabled}');
      } catch (e) {
        print('🦀 🦀 ERROR starting schedule');
      }
    });

## Expected Behavior
<!--- Tell us what should happen -->
The plugin should not be crashing the app
## Actual Behavior
<!--- Tell us what happens instead -->
The app suddenly started crashing with what seems to be an error inside your plugin. It had been working for months until now. The errorL
E/AndroidRuntime(23893): java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: pool-4-thread-1
E/AndroidRuntime(23893): 	at io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread(FlutterJNI.java:794)
E/AndroidRuntime(23893): 	at io.flutter.embedding.engine.FlutterJNI.dispatchPlatformMessage(FlutterJNI.java:684)
E/AndroidRuntime(23893): 	at io.flutter.embedding.engine.dart.DartMessenger.send(DartMessenger.java:80)
E/AndroidRuntime(23893): 	at io.flutter.embedding.engine.dart.DartExecutor.send(DartExecutor.java:174)
E/AndroidRuntime(23893): 	at io.flutter.view.FlutterNativeView.send(FlutterNativeView.java:144)
E/AndroidRuntime(23893): 	at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation.success(EventChannel.java:226)
E/AndroidRuntime(23893): 	at com.transistorsoft.flutter.backgroundgeolocation.streams.GeofencesChangeStreamHandler.onGeofencesChange(GeofencesChangeStreamHandler.java:23)
E/AndroidRuntime(23893): 	at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source)
E/AndroidRuntime(23893): 	at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source)
E/AndroidRuntime(23893): 	at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source)
E/AndroidRuntime(23893): 	at com.transistorsoft.locationmanager.geofence.TSGeofenceManager$b$1.run(Unknown Source)
E/AndroidRuntime(23893): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
E/AndroidRuntime(23893): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
E/AndroidRuntime(23893): 	at java.lang.Thread.run(Thread.java:818)
## Steps to Reproduce
<!--- reproduce this issue; include code to reproduce, if relevant -->
1.
2.
3.
4.

## Context
<!--- What were you trying to do? -->

## Debug logs
<!-- include iOS / Android logs
- ios XCode logs,
- use #getLog #emailLog methods (@see docs)
- Android: $ adb logcat -s TSLocationManager
-->
<details>
	<summary>Logs</summary>

``` <!-- syntax-highligting:  DO NOT REMOVE -->
PASTE_YOUR_LOGS_HERE

E/AndroidRuntime(23893): java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: pool-4-thread-1
E/AndroidRuntime(23893): at io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread(FlutterJNI.java:794)
E/AndroidRuntime(23893): at io.flutter.embedding.engine.FlutterJNI.dispatchPlatformMessage(FlutterJNI.java:684)
E/AndroidRuntime(23893): at io.flutter.embedding.engine.dart.DartMessenger.send(DartMessenger.java:80)
E/AndroidRuntime(23893): at io.flutter.embedding.engine.dart.DartExecutor.send(DartExecutor.java:174)
E/AndroidRuntime(23893): at io.flutter.view.FlutterNativeView.send(FlutterNativeView.java:144)
E/AndroidRuntime(23893): at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation.success(EventChannel.java:226)
E/AndroidRuntime(23893): at com.transistorsoft.flutter.backgroundgeolocation.streams.GeofencesChangeStreamHandler.onGeofencesChange(GeofencesChangeStreamHandler.java:23)
E/AndroidRuntime(23893): at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source)
E/AndroidRuntime(23893): at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source)
E/AndroidRuntime(23893): at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source)
E/AndroidRuntime(23893): at com.transistorsoft.locationmanager.geofence.TSGeofenceManager$b$1.run(Unknown Source)
E/AndroidRuntime(23893): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
E/AndroidRuntime(23893): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
E/AndroidRuntime(23893): at java.lang.Thread.run(Thread.java:818)

@christocracy
Copy link
Member

Fixed in master:

dependencies:
  flutter_background_geolocation:
    git:
      url: https://github.com/transistorsoft/flutter_background_geolocation.git

@malengatiger
Copy link
Author

I have cleaned up and recompiled the app after changing pubspec.yaml as you suggest. The error is still occurring:

E/AndroidRuntime( 6949): java.lang.RuntimeException: An error occurred while executing doInBackground()
E/AndroidRuntime( 6949): at android.os.AsyncTask$3.done(AsyncTask.java:354)
E/AndroidRuntime( 6949): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
E/AndroidRuntime( 6949): at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
E/AndroidRuntime( 6949): at java.util.concurrent.FutureTask.run(FutureTask.java:271)
E/AndroidRuntime( 6949): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
E/AndroidRuntime( 6949): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime( 6949): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime( 6949): at java.lang.Thread.run(Thread.java:764)
E/AndroidRuntime( 6949): Caused by: java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: AsyncTask #3
E/AndroidRuntime( 6949): at io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread(FlutterJNI.java:794)
E/AndroidRuntime( 6949): at io.flutter.embedding.engine.FlutterJNI.dispatchPlatformMessage(FlutterJNI.java:684)
E/AndroidRuntime( 6949): at io.flutter.embedding.engine.dart.DartMessenger.send(DartMessenger.java:80)
E/AndroidRuntime( 6949): at io.flutter.embedding.engine.dart.DartExecutor.send(DartExecutor.java:174)
E/AndroidRuntime( 6949): at io.flutter.view.FlutterNativeView.send(FlutterNativeView.java:144)
E/AndroidRuntime( 6949): at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation.success(EventChannel.java:226)
E/AndroidRuntime( 6949): at com.transistorsoft.flutter.backgroundgeolocation.streams.GeofencesChangeStreamHandler.onGeofencesChange(GeofencesChangeStreamHandler.java:23)
E/AndroidRuntime( 6949): at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source:24)
E/AndroidRuntime( 6949): at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source:536)
E/AndroidRuntime( 6949): at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.evaluate(Unknown Source:4)
E/AndroidRuntime( 6949): at com.transistorsoft.locationmanager.geofence.TSGeofenceManager$d.a(Unknown Source:47)
E/AndroidRuntime( 6949): at com.transistorsoft.locationmanager.geofence.TSGeofenceManager$d.doInBackground(Unknown Source:2)
E/AndroidRuntime( 6949): at android.os.AsyncTask$2.call(AsyncTask.java:333)
E/AndroidRuntime( 6949): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
E/AndroidRuntime( 6949): ... 4 more
I/Process ( 6949): Sending signal. PID: 6949 SIG: 9

@christocracy
Copy link
Member

While monitoring $ adb logcat -s TSLocationManager, launch your app. I want to see the first log header output by the plugin:

07-24 10:03:33.145 31501 31501 I TSLocationManager: ╔═════════════════════════════════════════════
07-24 10:03:33.145 31501 31501 I TSLocationManager: ║ TSLocationManager version: 3.0.24 (324)
07-24 10:03:33.145 31501 31501 I TSLocationManager: ╠═════════════════════════════════════════════
07-24 10:03:33.145 31501 31501 I TSLocationManager: {
07-24 10:03:33.145 31501 31501 I TSLocationManager:   "activityRecognitionInterval": 10000,
07-24 10:03:33.145 31501 31501 I TSLocationManager:   "allowIdenticalLocations": false,
07-24 10:03:33.145 31501 31501 I TSLocationManager:   "autoSync": true,
07-24 10:03:33.145 31501 31501 I TSLocationManager:   "autoSyncThreshold": 0,
07-24 10:03:33.145 31501 31501 I TSLocationManager:   "batchSync": false,
.
.
.

@malengatiger
Copy link
Author

cool. will do in a few minutes

@malengatiger
Copy link
Author

Here is the result from running the adb command:

aubreys-imac:carapp aubs$ adb logcat -s TSLocationManager

  • waiting for device -
    error: more than one device/emulator
    aubreys-imac:carapp aubs$ adb logcat -s TSLocationManager
    --------- beginning of system
    --------- beginning of crash
    --------- beginning of main
    07-24 17:51:01.169 7660 13809 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:01.171 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
    07-24 17:51:01.176 7660 13810 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
    07-24 17:51:01.204 7660 13810 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:02.983 7660 13834 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:02.985 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
    07-24 17:51:02.986 7660 13810 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
    07-24 17:51:02.987 7660 13810 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:03.081 7660 13835 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:03.084 7660 13810 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
    07-24 17:51:03.084 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
    07-24 17:51:03.086 7660 13810 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:06.505 13676 13881 I TSLocationManager: [c.t.l.data.sqlite.GeofenceDAO destroyAll] ✅
    07-24 17:51:06.532 13676 13728 I TSLocationManager: [c.t.l.data.sqlite.GeofenceDAO create]
    07-24 17:51:06.532 13676 13728 I TSLocationManager: ✅ -KWRdKWapb-0PtFiiZHs
    07-24 17:51:06.534 13676 13728 D TSLocationManager: [c.t.l.g.TSGeofenceManager c] ℹ️ Persist monitored geofences: []
    07-24 17:51:06.540 13676 13728 I TSLocationManager: [c.t.l.data.sqlite.GeofenceDAO destroy]
    07-24 17:51:06.540 13676 13728 I TSLocationManager: ✅ -KWRdKWapb-0PtFiiZHs
    07-24 17:51:06.545 13676 13728 I TSLocationManager: [c.t.l.data.sqlite.GeofenceDAO create]
    07-24 17:51:06.545 13676 13728 I TSLocationManager: ✅ -KWRdKWapb-0PtFiiZHs
    07-24 17:51:06.546 13676 13728 D TSLocationManager: [c.t.l.g.TSGeofenceManager c] ℹ️ Persist monitored geofences: []
    07-24 17:51:06.799 13676 13676 D TSLocationManager: [c.t.l.g.TSGeofenceManager$b run] evaluation buffer timer elapsed
    07-24 17:51:06.848 13676 13676 D TSLocationManager: [c.t.l.g.TSGeofenceManager$2 a] ℹ️ GeofencingClient addGeofences
    07-24 17:51:06.855 13676 13676 D TSLocationManager: [c.t.l.g.TSGeofenceManager c] ℹ️ Persist monitored geofences: [-KWRdKWapb-0PtFiiZHs]
    07-24 17:51:06.859 13676 13676 D TSLocationManager: [c.t.l.g.TSGeofenceManager$2 a]
    07-24 17:51:06.859 13676 13676 D TSLocationManager: ╔═════════════════════════════════════════════
    07-24 17:51:06.859 13676 13676 D TSLocationManager: ║ TSGeofenceManager found 1/1 within 5000 meters
    07-24 17:51:06.859 13676 13676 D TSLocationManager: ╠═════════════════════════════════════════════
    07-24 17:51:06.859 13676 13676 D TSLocationManager: ╟─ 🎾 -KWRdKWapb-0PtFiiZHs
    07-24 17:51:06.859 13676 13676 D TSLocationManager: ╚═════════════════════════════════════════════
    07-24 17:51:06.876 13676 13882 E TSLocationManager: [c.t.l.a.BackgroundGeolocation$e uncaughtException]
    07-24 17:51:06.876 13676 13882 E TSLocationManager: ‼️ Uncaught Exception: Methods marked with @UiThread must be executed on the main thread. Current thread: pool-5-thread-2
    07-24 17:51:06.876 13676 13882 E TSLocationManager: {"activityRecognitionInterval":10000,"allowIdenticalLocations":false,"autoSync":true,"autoSyncThreshold":0,"batchSync":false,"debug":true,"deferTime":0,"desiredAccuracy":-1,"desiredOdometerAccuracy":100,"disableElasticity":false,"disableLocationAuthorizationAlert":false,"disableStopDetection":false,"distanceFilter":50,"elasticityMultiplier":1,"enableHeadless":false,"enableTimestampMeta":false,"extras":{},"fastestLocationUpdateInterval":-1,"forceReloadOnBoot":false,"forceReloadOnGeofence":false,"forceReloadOnHeartbeat":false,"forceReloadOnLocationChange":false,"forceReloadOnMotionChange":false,"forceReloadOnSchedule":false,"foregroundService":true,"geofenceInitialTriggerEntry":true,"geofenceModeHighAccuracy":false,"geofenceProximityRadius":5000,"geofenceTemplate":"","headers":{},"headlessJobService":"com.transistorsoft.flutter.backgroundgeolocation.HeadlessTask","heartbeatInterval":180,"httpRootProperty":"location","httpTimeout":60000,"isMoving":false,"locationTemplate":"","locationTimeout":60,"locationUpdateInterval":1000,"locationsOrderDirection":"ASC","logLevel":5,"logMaxDays":3,"maxBatchSize":-1,"maxDaysToPersist":1,"maxRecordsToPersist":-1,"method":"POST","minimumActivityRecognitionConfidence":75,"notification":{"layout":"","title":"","text":"Location Service activated","color":"","channelName":"TSLocationManager","smallIcon":"","largeIcon":"","priority":0,"strings":{},"actions":[]},"params":{},"persist":true,"persistMode":2,"schedule":["1-7 1:00-23:59"],"scheduleUseAlarmManager":false,"speedJumpFilter":300,"startOnBoot":true,"stationaryRadius":25,"stopAfterElapsedMinutes":0,"stopOnStationary":false,"stopOnTerminate":true,"stopTimeout":5,"triggerActivities":"in_vehicle, on_bicycle, on_foot, running, walking","url":"http://tracker.transistorsoft.com/locations/aftarobot","useSignificantChangesOnly":false,"enabled":true,"schedulerEnabled":true,"trackingMode":1,"odometer":0,"isFirstBoot":false}
    07-24 17:51:06.876 13676 13882 E TSLocationManager: java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: pool-5-thread-2
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread(FlutterJNI.java:794)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at io.flutter.embedding.engine.FlutterJNI.dispatchPlatformMessage(FlutterJNI.java:684)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at io.flutter.embedding.engine.dart.DartMessenger.send(DartMessenger.java:80)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at io.flutter.embedding.engine.dart.DartExecutor.send(DartExecutor.java:174)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at io.flutter.view.FlutterNativeView.send(FlutterNativeView.java:144)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation.success(EventChannel.java:226)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at com.transistorsoft.flutter.backgroundgeolocation.streams.GeofencesChangeStreamHandler.onGeofencesChange(GeofencesChangeStreamHandler.java:23)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source:24)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source:536)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source:0)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at com.transistorsoft.locationmanager.geofence.TSGeofenceManager$b$1.run(Unknown Source:59)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    07-24 17:51:06.876 13676 13882 E TSLocationManager: at java.lang.Thread.run(Thread.java:764)
    07-24 17:51:07.272 7660 13901 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:07.287 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
    07-24 17:51:07.288 7660 13810 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
    07-24 17:51:07.291 7660 13810 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:07.327 7660 13909 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:07.330 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
    07-24 17:51:07.332 7660 13810 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
    07-24 17:51:07.334 7660 13810 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:07.369 7660 13910 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:07.370 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
    07-24 17:51:07.372 7660 13810 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
    07-24 17:51:07.374 7660 13810 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:10.403 13913 13913 E TSLocationManager:
    07-24 17:51:10.403 13913 13913 E TSLocationManager: ╔═════════════════════════════════════════════
    07-24 17:51:10.403 13913 13913 E TSLocationManager: ║ LICENSE VALIDATION FAILURE: com.aftarobot.vehicle
    07-24 17:51:10.403 13913 13913 E TSLocationManager: ╠═════════════════════════════════════════════
    07-24 17:51:10.403 13913 13913 E TSLocationManager: ╟─ Failed to find license key in AndroidManifest. Ensure you've added the key within
    07-24 17:51:10.403 13913 13913 E TSLocationManager: ╟─ BackgroundGeolocation is fully functional in DEBUG builds without a license.
    07-24 17:51:10.403 13913 13913 E TSLocationManager: ╚═════════════════════════════════════════════
    07-24 17:51:10.588 13913 13913 I TSLocationManager: [c.t.l.adapter.TSConfig print]
    07-24 17:51:10.588 13913 13913 I TSLocationManager: ╔═════════════════════════════════════════════
    07-24 17:51:10.588 13913 13913 I TSLocationManager: ║ TSLocationManager version: 3.0.23 (323)
    07-24 17:51:10.588 13913 13913 I TSLocationManager: ╠═════════════════════════════════════════════
    07-24 17:51:10.588 13913 13913 I TSLocationManager: {
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "activityRecognitionInterval": 10000,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "allowIdenticalLocations": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "autoSync": true,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "autoSyncThreshold": 0,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "batchSync": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "debug": true,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "deferTime": 0,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "desiredAccuracy": -1,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "desiredOdometerAccuracy": 100,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "disableElasticity": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "disableLocationAuthorizationAlert": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "disableStopDetection": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "distanceFilter": 50,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "elasticityMultiplier": 1,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "enableHeadless": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "enableTimestampMeta": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "extras": {},
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "fastestLocationUpdateInterval": -1,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "forceReloadOnBoot": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "forceReloadOnGeofence": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "forceReloadOnHeartbeat": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "forceReloadOnLocationChange": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "forceReloadOnMotionChange": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "forceReloadOnSchedule": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "foregroundService": true,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "geofenceInitialTriggerEntry": true,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "geofenceModeHighAccuracy": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "geofenceProximityRadius": 5000,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "geofenceTemplate": "",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "headers": {},
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "headlessJobService": "com.transistorsoft.flutter.backgroundgeolocation.HeadlessTask",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "heartbeatInterval": 180,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "httpRootProperty": "location",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "httpTimeout": 60000,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "isMoving": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "locationTemplate": "",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "locationTimeout": 60,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "locationUpdateInterval": 1000,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "locationsOrderDirection": "ASC",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "logLevel": 5,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "logMaxDays": 3,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "maxBatchSize": -1,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "maxDaysToPersist": 1,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "maxRecordsToPersist": -1,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "method": "POST",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "minimumActivityRecognitionConfidence": 75,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "notification": {
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "layout": "",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "title": "",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "text": "Location Service activated",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "color": "",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "channelName": "TSLocationManager",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "smallIcon": "",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "largeIcon": "",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "priority": 0,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "strings": {},
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "actions": []
    07-24 17:51:10.588 13913 13913 I TSLocationManager: },
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "params": {},
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "persist": true,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "persistMode": 2,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "schedule": [
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "1-7 1:00-23:59"
    07-24 17:51:10.588 13913 13913 I TSLocationManager: ],
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "scheduleUseAlarmManager": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "speedJumpFilter": 300,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "startOnBoot": true,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "stationaryRadius": 25,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "stopAfterElapsedMinutes": 0,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "stopOnStationary": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "stopOnTerminate": true,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "stopTimeout": 5,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "url": "http://tracker.transistorsoft.com/locations/aftarobot",
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "useSignificantChangesOnly": false,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "enabled": true,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "schedulerEnabled": true,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "trackingMode": 1,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "odometer": 0,
    07-24 17:51:10.588 13913 13913 I TSLocationManager: "isFirstBoot": false
    07-24 17:51:10.588 13913 13913 I TSLocationManager: }
    07-24 17:51:10.588 13913 13913 I TSLocationManager: ╔═════════════════════════════════════════════
    07-24 17:51:10.588 13913 13913 I TSLocationManager: ║ DEVICE SENSORS
    07-24 17:51:10.588 13913 13913 I TSLocationManager: ╠═════════════════════════════════════════════
    07-24 17:51:10.588 13913 13913 I TSLocationManager: ╟─ ✅ ACCELEROMETER: {Sensor name="LSM6DSM Accelerometer", vendor="STMicroelectronics", version=1, type=1, maxRange=156.9064, resolution=0.0023956299, power=0.15, minDelay=2500}
    07-24 17:51:10.588 13913 13913 I TSLocationManager: ╟─ ✅ GYROSCOPE: {Sensor name="LSM6DSM Gyroscope", vendor="STMicroelectronics", version=1, type=4, maxRange=17.453293, resolution=0.0012207031, power=0.45, minDelay=2500}
    07-24 17:51:10.588 13913 13913 I TSLocationManager: ╟─ ✅ MAGNETOMETER: {Sensor name="AK09915 Magnetometer", vendor="AKM", version=1, type=2, maxRange=5160.0005, resolution=0.14953613, power=1.8, minDelay=10000}
    07-24 17:51:10.588 13913 13913 I TSLocationManager: ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="Significant Motion", vendor="Google", version=2, type=17, maxRange=1.0, resolution=1.0, power=0.25, minDelay=-1}
    07-24 17:51:10.588 13913 13913 I TSLocationManager: ╚═════════════════════════════════════════════
    07-24 17:51:10.630 13913 13949 I TSLocationManager: [c.t.l.adapter.TSConfig$b a]
    07-24 17:51:10.630 13913 13949 I TSLocationManager: ⚠️ Tracking initiated in background with stopOnTerminate: true. Launch refused.
    07-24 17:51:10.680 13913 13913 W TSLocationManager: [c.t.l.service.AbstractService a]
    07-24 17:51:10.680 13913 13913 W TSLocationManager: ⚠️ Refusing to start service, enabled: false
    07-24 17:51:10.705 13913 13913 D TSLocationManager: [c.t.l.s.GeofencingService onDestroy]
    07-24 17:51:10.705 13913 13913 D TSLocationManager: 🔴 GeofencingService destroyed
    07-24 17:51:10.826 13913 13949 D TSLocationManager: [c.t.l.l.TSLocationManager clearLastOdometerLocation]
    07-24 17:51:10.826 13913 13949 D TSLocationManager: ℹ️ Clear last odometer location
    07-24 17:51:10.849 13913 13949 D TSLocationManager: [c.t.l.g.TSGeofenceManager c] ℹ️ Persist monitored geofences: []
    07-24 17:51:10.855 13913 13949 D TSLocationManager: [c.t.l.g.TSGeofenceManager b]
    07-24 17:51:10.855 13913 13949 D TSLocationManager: 🔴 Stop monitoring geofences
    07-24 17:51:10.874 13913 13949 I TSLocationManager: [c.t.l.g.TSGeofenceManager stopMonitoringSignificantLocationChanges]
    07-24 17:51:10.874 13913 13949 I TSLocationManager: 🔴 Stop monitoring significant location changes
    07-24 17:51:10.878 13913 13949 D TSLocationManager: [c.t.l.g.TSGeofenceManager stopMonitoringStationaryRegion]
    07-24 17:51:10.878 13913 13949 D TSLocationManager: 🔴 Stop monitoring stationary region
    07-24 17:51:10.883 13913 13949 I TSLocationManager: [c.t.l.s.ActivityRecognitionService b]
    07-24 17:51:10.883 13913 13949 I TSLocationManager: 🔴 Stop motion-activity updates
    07-24 17:51:10.898 13913 13949 I TSLocationManager: [c.t.l.service.HeartbeatService a]
    07-24 17:51:10.898 13913 13949 I TSLocationManager: 🔴 Stop heartbeat
    07-24 17:51:10.975 13913 13949 D TSLocationManager: [c.t.l.http.HttpService stopMonitoringConnectivityChanges]
    07-24 17:51:10.975 13913 13949 D TSLocationManager: 🔴 Stop monitoring connectivity changes
    07-24 17:51:11.018 13913 13913 D TSLocationManager: [c.t.l.service.TrackingService onDestroy]
    07-24 17:51:11.018 13913 13913 D TSLocationManager: 🔴 TrackingService destroyed
    07-24 17:51:11.022 13913 13913 D TSLocationManager: [c.t.l.s.GeofencingService onDestroy]
    07-24 17:51:11.022 13913 13913 D TSLocationManager: 🔴 GeofencingService destroyed
    07-24 17:51:11.027 13913 13913 D TSLocationManager: [c.t.l.s.ActivityRecognitionService onDestroy]
    07-24 17:51:11.027 13913 13913 D TSLocationManager: 🔴 ActivityRecognitionService destroyed
    07-24 17:51:11.042 13913 13949 I TSLocationManager: [c.t.l.a.BackgroundGeolocation ]
    07-24 17:51:11.042 13913 13949 I TSLocationManager: ✅ Google Play Services: connected (version code:12451000)
    07-24 17:51:11.046 13913 13949 D TSLocationManager: [c.t.l.data.sqlite.b a]
    07-24 17:51:11.046 13913 13949 D TSLocationManager: ✅ Opened database
    07-24 17:51:11.049 13913 13949 D TSLocationManager: [c.t.l.data.sqlite.b prune]
    07-24 17:51:11.049 13913 13949 D TSLocationManager: ℹ️ PRUNE -1 days
    07-24 17:51:11.054 13913 13949 I TSLocationManager: [c.t.l.a.BackgroundGeolocation e]
    07-24 17:51:11.054 13913 13949 I TSLocationManager: 🎾 Start monitoring location-provider changes
    07-24 17:51:11.057 13913 13949 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:11.066 13913 13913 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:11.078 13913 13949 D TSLocationManager: [c.t.l.a.BackgroundGeolocation c]
    07-24 17:51:11.078 13913 13949 D TSLocationManager: 🔴 Cleared callbacks
    07-24 17:51:11.081 13913 13949 I TSLocationManager: [c.t.l.a.BackgroundGeolocation f]
    07-24 17:51:11.081 13913 13949 I TSLocationManager: 🔴 Stop monitoring location-provider changes
    07-24 17:51:11.083 13913 13949 I TSLocationManager: [c.t.l.s.TSScheduleManager stop]
    07-24 17:51:11.083 13913 13949 I TSLocationManager: 🔴 Scheduler OFF
    07-24 17:51:11.092 13913 13949 I TSLocationManager: [c.t.l.a.BackgroundGeolocation onActivityDestroy]
    07-24 17:51:11.092 13913 13949 I TSLocationManager: ╔═════════════════════════════════════════════
    07-24 17:51:11.092 13913 13949 I TSLocationManager: ║ MainActivity was destroyed
    07-24 17:51:11.092 13913 13949 I TSLocationManager: ╠═════════════════════════════════════════════
    07-24 17:51:11.092 13913 13949 I TSLocationManager: ╟─ stopOnTerminate: true
    07-24 17:51:11.092 13913 13949 I TSLocationManager: ╟─ enabled: false
    07-24 17:51:58.050 7660 13994 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
    07-24 17:51:58.053 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
    07-24 17:51:58.053 7660 13810 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
    07-24 17:51:58.055 7660 13810 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO

@christocracy
Copy link
Member

christocracy commented Jul 24, 2019

You are not using the latest from master.

╔═════════════════════════════════════════════
07-24 17:51:10.588 13913 13913 I TSLocationManager: ║ TSLocationManager version: 3.0.23 (323)
07-24 17:51:10.588 13913 13913 I TSLocationManager: ╠═════════════════════════════════════════════

When you have latest from master (posted yesterday), you will see:

TSLocationManager version: 3.0.24 (324)

@malengatiger
Copy link
Author

I ran the command again, hope there are more clues :)
By the way, thanks ever so much. We are about to pull the trigger on purchasing licenses and we want to be sure everything's OK.

aubreys-imac:carapp aubs$ adb logcat -s TSLocationManager
--------- beginning of system
--------- beginning of crash
--------- beginning of main
07-24 18:48:27.750 7660 17188 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:48:27.754 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:48:27.755 7660 17144 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:48:27.756 7660 17144 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:48:27.830 7660 17190 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:48:27.833 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:48:27.834 7660 17144 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:48:27.837 7660 17144 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:48:28.553 7660 17205 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:48:28.554 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:48:28.555 7660 17144 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:48:28.562 7660 17144 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:34.007 7660 17544 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:34.010 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:50:34.012 7660 17545 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:50:34.016 7660 17545 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:34.043 7660 17546 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:34.046 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:50:34.047 7660 17545 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:50:34.049 7660 17545 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:34.099 7660 17548 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:34.103 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:50:34.103 7660 17545 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:50:34.107 7660 17545 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:38.244 7660 17610 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:38.245 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:50:38.248 7660 17545 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:50:38.251 7660 17545 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:38.704 7660 17621 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:38.708 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:50:38.708 7660 17545 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:50:38.710 7660 17545 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:40.200 7660 17644 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:40.202 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:50:40.203 7660 17545 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:50:40.205 7660 17545 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:40.322 7660 17645 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:40.325 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:50:40.325 7660 17545 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:50:40.327 7660 17545 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:41.102 7660 17657 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:41.116 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:50:41.117 7660 17545 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:50:41.120 7660 17545 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:41.250 17522 17660 I TSLocationManager: [c.t.l.data.sqlite.GeofenceDAO destroyAll] ✅
07-24 18:50:41.255 17522 17660 D TSLocationManager: [c.t.l.g.TSGeofenceManager c] ℹ️ Persist monitored geofences: []
07-24 18:50:41.257 17522 17660 D TSLocationManager: [c.t.l.g.TSGeofenceManager a]
07-24 18:50:41.257 17522 17660 D TSLocationManager: ╔═════════════════════════════════════════════
07-24 18:50:41.257 17522 17660 D TSLocationManager: ║ TSGeofenceManager found 0/1 within 5000 meters
07-24 18:50:41.257 17522 17660 D TSLocationManager: ╠═════════════════════════════════════════════
07-24 18:50:41.257 17522 17660 D TSLocationManager: ╚═════════════════════════════════════════════
07-24 18:50:41.271 17522 17660 E TSLocationManager: [c.t.l.a.BackgroundGeolocation$e uncaughtException]
07-24 18:50:41.271 17522 17660 E TSLocationManager: ‼️ Uncaught Exception: An error occurred while executing doInBackground()
07-24 18:50:41.271 17522 17660 E TSLocationManager: {"activityRecognitionInterval":10000,"allowIdenticalLocations":false,"autoSync":true,"autoSyncThreshold":0,"batchSync":false,"debug":true,"deferTime":0,"desiredAccuracy":-1,"desiredOdometerAccuracy":100,"disableElasticity":false,"disableLocationAuthorizationAlert":false,"disableStopDetection":false,"distanceFilter":50,"elasticityMultiplier":1,"enableHeadless":false,"enableTimestampMeta":false,"extras":{},"fastestLocationUpdateInterval":-1,"forceReloadOnBoot":false,"forceReloadOnGeofence":false,"forceReloadOnHeartbeat":false,"forceReloadOnLocationChange":false,"forceReloadOnMotionChange":false,"forceReloadOnSchedule":false,"foregroundService":true,"geofenceInitialTriggerEntry":true,"geofenceModeHighAccuracy":false,"geofenceProximityRadius":5000,"geofenceTemplate":"","headers":{},"headlessJobService":"com.transistorsoft.flutter.backgroundgeolocation.HeadlessTask","heartbeatInterval":180,"httpRootProperty":"location","httpTimeout":60000,"isMoving":false,"locationTemplate":"","locationTimeout":60,"locationUpdateInterval":1000,"locationsOrderDirection":"ASC","logLevel":5,"logMaxDays":3,"maxBatchSize":-1,"maxDaysToPersist":1,"maxRecordsToPersist":-1,"method":"POST","minimumActivityRecognitionConfidence":75,"notification":{"layout":"","title":"","text":"Location Service activated","color":"","channelName":"TSLocationManager","smallIcon":"","largeIcon":"","priority":0,"strings":{},"actions":[]},"params":{},"persist":true,"persistMode":2,"schedule":["1-7 1:00-23:59"],"scheduleUseAlarmManager":false,"speedJumpFilter":300,"startOnBoot":true,"stationaryRadius":25,"stopAfterElapsedMinutes":0,"stopOnStationary":false,"stopOnTerminate":true,"stopTimeout":5,"triggerActivities":"in_vehicle, on_bicycle, on_foot, running, walking","url":"http://tracker.transistorsoft.com/locations/aftarobot","useSignificantChangesOnly":false,"enabled":true,"schedulerEnabled":true,"trackingMode":1,"odometer":0,"isFirstBoot":false}
07-24 18:50:41.271 17522 17660 E TSLocationManager: java.lang.RuntimeException: An error occurred while executing doInBackground()
07-24 18:50:41.271 17522 17660 E TSLocationManager: at android.os.AsyncTask$3.done(AsyncTask.java:354)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at java.util.concurrent.FutureTask.run(FutureTask.java:271)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at java.lang.Thread.run(Thread.java:764)
07-24 18:50:41.271 17522 17660 E TSLocationManager: Caused by: java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: AsyncTask #3
07-24 18:50:41.271 17522 17660 E TSLocationManager: at io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread(FlutterJNI.java:794)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at io.flutter.embedding.engine.FlutterJNI.dispatchPlatformMessage(FlutterJNI.java:684)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at io.flutter.embedding.engine.dart.DartMessenger.send(DartMessenger.java:80)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at io.flutter.embedding.engine.dart.DartExecutor.send(DartExecutor.java:174)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at io.flutter.view.FlutterNativeView.send(FlutterNativeView.java:144)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation.success(EventChannel.java:226)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at com.transistorsoft.flutter.backgroundgeolocation.streams.GeofencesChangeStreamHandler.onGeofencesChange(GeofencesChangeStreamHandler.java:23)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source:24)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.a(Unknown Source:536)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at com.transistorsoft.locationmanager.geofence.TSGeofenceManager.evaluate(Unknown Source:4)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at com.transistorsoft.locationmanager.geofence.TSGeofenceManager$d.a(Unknown Source:47)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at com.transistorsoft.locationmanager.geofence.TSGeofenceManager$d.doInBackground(Unknown Source:2)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at android.os.AsyncTask$2.call(AsyncTask.java:333)
07-24 18:50:41.271 17522 17660 E TSLocationManager: at java.util.concurrent.FutureTask.run(FutureT
07-24 18:50:41.581 7660 17675 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:41.582 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:50:41.586 7660 17545 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:50:41.596 7660 17545 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:41.668 7660 17677 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:41.669 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:50:41.670 7660 17545 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:50:41.675 7660 17545 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:41.725 7660 17678 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:41.727 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:50:41.728 7660 17545 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:50:41.731 7660 17545 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:43.169 17682 17682 E TSLocationManager:
07-24 18:50:43.169 17682 17682 E TSLocationManager: ╔═════════════════════════════════════════════
07-24 18:50:43.169 17682 17682 E TSLocationManager: ║ LICENSE VALIDATION FAILURE: com.aftarobot.vehicle
07-24 18:50:43.169 17682 17682 E TSLocationManager: ╠═════════════════════════════════════════════
07-24 18:50:43.169 17682 17682 E TSLocationManager: ╟─ Failed to find license key in AndroidManifest. Ensure you've added the key within
07-24 18:50:43.169 17682 17682 E TSLocationManager: ╟─ BackgroundGeolocation is fully functional in DEBUG builds without a license.
07-24 18:50:43.169 17682 17682 E TSLocationManager: ╚═════════════════════════════════════════════
07-24 18:50:43.202 17682 17682 I TSLocationManager: [c.t.l.adapter.TSConfig print]
07-24 18:50:43.202 17682 17682 I TSLocationManager: ╔═════════════════════════════════════════════
07-24 18:50:43.202 17682 17682 I TSLocationManager: ║ TSLocationManager version: 3.0.23 (323)
07-24 18:50:43.202 17682 17682 I TSLocationManager: ╠═════════════════════════════════════════════
07-24 18:50:43.202 17682 17682 I TSLocationManager: {
07-24 18:50:43.202 17682 17682 I TSLocationManager: "activityRecognitionInterval": 10000,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "allowIdenticalLocations": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "autoSync": true,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "autoSyncThreshold": 0,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "batchSync": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "debug": true,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "deferTime": 0,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "desiredAccuracy": -1,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "desiredOdometerAccuracy": 100,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "disableElasticity": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "disableLocationAuthorizationAlert": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "disableStopDetection": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "distanceFilter": 50,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "elasticityMultiplier": 1,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "enableHeadless": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "enableTimestampMeta": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "extras": {},
07-24 18:50:43.202 17682 17682 I TSLocationManager: "fastestLocationUpdateInterval": -1,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "forceReloadOnBoot": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "forceReloadOnGeofence": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "forceReloadOnHeartbeat": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "forceReloadOnLocationChange": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "forceReloadOnMotionChange": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "forceReloadOnSchedule": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "foregroundService": true,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "geofenceInitialTriggerEntry": true,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "geofenceModeHighAccuracy": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "geofenceProximityRadius": 5000,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "geofenceTemplate": "",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "headers": {},
07-24 18:50:43.202 17682 17682 I TSLocationManager: "headlessJobService": "com.transistorsoft.flutter.backgroundgeolocation.HeadlessTask",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "heartbeatInterval": 180,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "httpRootProperty": "location",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "httpTimeout": 60000,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "isMoving": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "locationTemplate": "",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "locationTimeout": 60,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "locationUpdateInterval": 1000,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "locationsOrderDirection": "ASC",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "logLevel": 5,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "logMaxDays": 3,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "maxBatchSize": -1,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "maxDaysToPersist": 1,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "maxRecordsToPersist": -1,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "method": "POST",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "minimumActivityRecognitionConfidence": 75,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "notification": {
07-24 18:50:43.202 17682 17682 I TSLocationManager: "layout": "",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "title": "",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "text": "Location Service activated",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "color": "",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "channelName": "TSLocationManager",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "smallIcon": "",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "largeIcon": "",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "priority": 0,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "strings": {},
07-24 18:50:43.202 17682 17682 I TSLocationManager: "actions": []
07-24 18:50:43.202 17682 17682 I TSLocationManager: },
07-24 18:50:43.202 17682 17682 I TSLocationManager: "params": {},
07-24 18:50:43.202 17682 17682 I TSLocationManager: "persist": true,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "persistMode": 2,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "schedule": [
07-24 18:50:43.202 17682 17682 I TSLocationManager: "1-7 1:00-23:59"
07-24 18:50:43.202 17682 17682 I TSLocationManager: ],
07-24 18:50:43.202 17682 17682 I TSLocationManager: "scheduleUseAlarmManager": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "speedJumpFilter": 300,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "startOnBoot": true,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "stationaryRadius": 25,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "stopAfterElapsedMinutes": 0,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "stopOnStationary": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "stopOnTerminate": true,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "stopTimeout": 5,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "url": "http://tracker.transistorsoft.com/locations/aftarobot",
07-24 18:50:43.202 17682 17682 I TSLocationManager: "useSignificantChangesOnly": false,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "enabled": true,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "schedulerEnabled": true,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "trackingMode": 1,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "odometer": 0,
07-24 18:50:43.202 17682 17682 I TSLocationManager: "isFirstBoot": false
07-24 18:50:43.202 17682 17682 I TSLocationManager: }
07-24 18:50:43.202 17682 17682 I TSLocationManager: ╔═════════════════════════════════════════════
07-24 18:50:43.202 17682 17682 I TSLocationManager: ║ DEVICE SENSORS
07-24 18:50:43.202 17682 17682 I TSLocationManager: ╠═════════════════════════════════════════════
07-24 18:50:43.202 17682 17682 I TSLocationManager: ╟─ ✅ ACCELEROMETER: {Sensor name="LSM6DSM Accelerometer", vendor="STMicroelectronics", version=1, type=1, maxRange=156.9064, resolution=0.0023956299, power=0.15, minDelay=2500}
07-24 18:50:43.202 17682 17682 I TSLocationManager: ╟─ ✅ GYROSCOPE: {Sensor name="LSM6DSM Gyroscope", vendor="STMicroelectronics", version=1, type=4, maxRange=17.453293, resolution=0.0012207031, power=0.45, minDelay=2500}
07-24 18:50:43.202 17682 17682 I TSLocationManager: ╟─ ✅ MAGNETOMETER: {Sensor name="AK09915 Magnetometer", vendor="AKM", version=1, type=2, maxRange=5160.0005, resolution=0.14953613, power=1.8, minDelay=10000}
07-24 18:50:43.202 17682 17682 I TSLocationManager: ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="Significant Motion", vendor="Google", version=2, type=17, maxRange=1.0, resolution=1.0, power=0.25, minDelay=-1}
07-24 18:50:43.202 17682 17682 I TSLocationManager: ╚═════════════════════════════════════════════
07-24 18:50:43.207 17682 17717 I TSLocationManager: [c.t.l.adapter.TSConfig$b a]
07-24 18:50:43.207 17682 17717 I TSLocationManager: ⚠️ Tracking initiated in background with stopOnTerminate: true. Launch refused.
07-24 18:50:43.221 17682 17682 I TSLocationManager: [c.t.l.s.LocationRequestService a]
07-24 18:50:43.221 17682 17682 I TSLocationManager: ╔═════════════════════════════════════════════
07-24 18:50:43.221 17682 17682 I TSLocationManager: ║ getCurrentPosition LocationResult: 7
07-24 18:50:43.221 17682 17682 I TSLocationManager: ╠═════════════════════════════════════════════
07-24 18:50:43.221 17682 17682 I TSLocationManager: ╟─ 📍 Location[fused -25.760588,27.852564 hAcc=18 et=+7h22m24s113ms alt=1199.2999267578125 vAcc=2 sAcc=??? bAcc=??? {Bundle[mParcelledData.dataSize=52]}], age: 2792ms, time: 1563987040427
07-24 18:50:43.223 17682 17682 W TSLocationManager: [c.t.l.s.LocationRequestService a]
07-24 18:50:43.223 17682 17682 W TSLocationManager: ⚠️ Failed to find SingleLocationRequest: 7
07-24 18:50:43.232 17682 17682 W TSLocationManager: [c.t.l.u.BackgroundTaskManager onStartJob]
07-24 18:50:43.232 17682 17682 W TSLocationManager: ⚠️ Failed to find Task: 1
07-24 18:50:43.236 17682 17717 D TSLocationManager: [c.t.l.l.TSLocationManager clearLastOdometerLocation]
07-24 18:50:43.236 17682 17717 D TSLocationManager: ℹ️ Clear last odometer location
07-24 18:50:43.243 17682 17682 W TSLocationManager: [c.t.l.u.BackgroundTaskManager onStartJob]
07-24 18:50:43.243 17682 17682 W TSLocationManager: ⚠️ Failed to find Task: 2
07-24 18:50:43.250 17682 17717 D TSLocationManager: [c.t.l.g.TSGeofenceManager c] ℹ️ Persist monitored geofences: []
07-24 18:50:43.254 17682 17717 D TSLocationManager: [c.t.l.g.TSGeofenceManager b]
07-24 18:50:43.254 17682 17717 D TSLocationManager: 🔴 Stop monitoring geofences
07-24 18:50:43.260 17682 17717 I TSLocationManager: [c.t.l.g.TSGeofenceManager stopMonitoringSignificantLocationChanges]
07-24 18:50:43.260 17682 17717 I TSLocationManager: 🔴 Stop monitoring significant location changes
07-24 18:50:43.269 17682 17717 D TSLocationManager: [c.t.l.g.TSGeofenceManager stopMonitoringStationaryRegion]
07-24 18:50:43.269 17682 17717 D TSLocationManager: 🔴 Stop monitoring stationary region
07-24 18:50:43.279 17682 17717 I TSLocationManager: [c.t.l.s.ActivityRecognitionService b]
07-24 18:50:43.279 17682 17717 I TSLocationManager: 🔴 Stop motion-activity updates
07-24 18:50:43.286 17682 17682 D TSLocationManager: [c.t.l.s.BackgroundTaskService onDestroy]
07-24 18:50:43.286 17682 17717 I TSLocationManager: [c.t.l.service.HeartbeatService a]
07-24 18:50:43.286 17682 17717 I TSLocationManager: 🔴 Stop heartbeat
07-24 18:50:43.312 17682 17682 D TSLocationManager: [c.t.l.service.TrackingService onDestroy]
07-24 18:50:43.312 17682 17682 D TSLocationManager: 🔴 TrackingService destroyed
07-24 18:50:43.324 17682 17682 D TSLocationManager: [c.t.l.s.GeofencingService onDestroy]
07-24 18:50:43.324 17682 17682 D TSLocationManager: 🔴 GeofencingService destroyed
07-24 18:50:43.354 17682 17682 D TSLocationManager: [c.t.l.s.ActivityRecognitionService onDestroy]
07-24 18:50:43.354 17682 17682 D TSLocationManager: 🔴 ActivityRecognitionService destroyed
07-24 18:50:43.369 17682 17717 D TSLocationManager: [c.t.l.http.HttpService stopMonitoringConnectivityChanges]
07-24 18:50:43.369 17682 17717 D TSLocationManager: 🔴 Stop monitoring connectivity changes
07-24 18:50:43.476 17682 17717 I TSLocationManager: [c.t.l.a.BackgroundGeolocation ]
07-24 18:50:43.476 17682 17717 I TSLocationManager: ✅ Google Play Services: connected (version code:12451000)
07-24 18:50:43.492 17682 17717 D TSLocationManager: [c.t.l.data.sqlite.b a]
07-24 18:50:43.492 17682 17717 D TSLocationManager: ✅ Opened database
07-24 18:50:43.519 17682 17717 D TSLocationManager: [c.t.l.data.sqlite.b prune]
07-24 18:50:43.519 17682 17717 D TSLocationManager: ℹ️ PRUNE -1 days
07-24 18:50:43.529 17682 17717 I TSLocationManager: [c.t.l.a.BackgroundGeolocation e]
07-24 18:50:43.529 17682 17717 I TSLocationManager: 🎾 Start monitoring location-provider changes
07-24 18:50:43.537 17682 17717 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:43.542 17682 17682 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:50:43.559 17682 17717 D TSLocationManager: [c.t.l.a.BackgroundGeolocation c]
07-24 18:50:43.559 17682 17717 D TSLocationManager: 🔴 Cleared callbacks
07-24 18:50:43.563 17682 17717 I TSLocationManager: [c.t.l.a.BackgroundGeolocation f]
07-24 18:50:43.563 17682 17717 I TSLocationManager: 🔴 Stop monitoring location-provider changes
07-24 18:50:43.565 17682 17717 I TSLocationManager: [c.t.l.s.TSScheduleManager stop]
07-24 18:50:43.565 17682 17717 I TSLocationManager: 🔴 Scheduler OFF
07-24 18:50:43.569 17682 17717 I TSLocationManager: [c.t.l.a.BackgroundGeolocation onActivityDestroy]
07-24 18:50:43.569 17682 17717 I TSLocationManager: ╔═════════════════════════════════════════════
07-24 18:50:43.569 17682 17717 I TSLocationManager: ║ MainActivity was destroyed
07-24 18:50:43.569 17682 17717 I TSLocationManager: ╠═════════════════════════════════════════════
07-24 18:50:43.569 17682 17717 I TSLocationManager: ╟─ stopOnTerminate: true
07-24 18:50:43.569 17682 17717 I TSLocationManager: ╟─ enabled: false
07-24 18:51:05.471 17682 17682 I TSLocationManager: [c.t.l.s.LocationRequestService a]
07-24 18:51:05.471 17682 17682 I TSLocationManager: ╔═════════════════════════════════════════════
07-24 18:51:05.471 17682 17682 I TSLocationManager: ║ getCurrentPosition LocationResult: 7
07-24 18:51:05.471 17682 17682 I TSLocationManager: ╠═════════════════════════════════════════════
07-24 18:51:05.471 17682 17682 I TSLocationManager: ╟─ 📍 Location[fused -25.760588,27.852564 hAcc=53 et=+7h22m44s85ms alt=1199.2999267578125 vAcc=2 sAcc=??? bAcc=??? {Bundle[mParcelledData.dataSize=52]}], age: 5070ms, time: 1563987060399
07-24 18:51:05.474 17682 17682 W TSLocationManager: [c.t.l.s.LocationRequestService a]
07-24 18:51:05.474 17682 17682 W TSLocationManager: ⚠️ Failed to find SingleLocationRequest: 7
07-24 18:51:05.498 7660 17738 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO
07-24 18:51:05.499 7660 7660 D TSLocationManager: [c.t.f.b.HeadlessTask onHeadlessEvent] 💀 [HeadlessTask activitychange]
07-24 18:51:05.500 7660 17545 D TSLocationManager: [c.t.l.BackgroundGeolocationService onActivityRecognitionResult] still (100%)
07-24 18:51:05.502 7660 17545 D TSLocationManager: [c.t.l.a.BackgroundGeolocation isMainActivityActive] NO

@christocracy
Copy link
Member

christocracy commented Jul 24, 2019

As you can see, you're still not using the latest from master:

07-24 18:50:43.202 17682 17682 I TSLocationManager: ╔═════════════════════════════════════════════
07-24 18:50:43.202 17682 17682 I TSLocationManager: ║ TSLocationManager version: 3.0.23 (323)
07-24 18:50:43.202 17682 17682 I TSLocationManager: ╠═════════════════════════════════════════════

Until you see this in your logs, it's not going to work:

07-24 10:03:33.145 31501 31501 I TSLocationManager: ╔═════════════════════════════════════════════
07-24 10:03:33.145 31501 31501 I TSLocationManager: ║ TSLocationManager version: 3.0.24 (324)
07-24 10:03:33.145 31501 31501 I TSLocationManager: ╠═════════════════════════════════════════════

@malengatiger
Copy link
Author

Thank you ever so much!! Everything is working as expected. Much appreciated! 👌👌👌

@christocracy
Copy link
Member

Master is released to 1.0.12

@malengatiger
Copy link
Author

Thanks again! will update to 1.0.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants