transistorsoft/flutter_background_geolocation

Location is not recived when application is closed

Closed this issue · 15 comments

Your Environment

  • Plugin version: 4.15.5
  • Platform: Android
  • OS version: Android 14
  • Device manufacturer / model: Nothing phone 2
  • Flutter info (flutter doctor):
  • Plugin config:
// ignore_for_file: avoid_print

import 'dart:async';
import 'package:delivery/bloc/auth_bloc.dart';
import 'package:delivery/bloc/connection_bloc.dart';
import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg;
import 'package:permission_handler/permission_handler.dart';

class GeoLocationCHandler {
  //   factory LocationServiceHelper() => _instance;

  factory GeoLocationCHandler() => _instance;
  GeoLocationCHandler._init();
  static final GeoLocationCHandler _instance = GeoLocationCHandler._init();

  static Future<void> init() async {
    // Request permissions
    await Permission.locationAlways.request();
    await Permission.locationWhenInUse.request();
    await Permission.activityRecognition.request();

    // Subscribe to location events
    bg.BackgroundGeolocation.onLocation((bg.Location location) {
      AuthBloc().sendLocationData(data: location);
      ConnectionBloc().updateLastLocation(location);
      print('[onLocation] - $location');
    }, (bg.LocationError error) {
      print('[onLocation] ERROR - $error');
    });

    // Subscribe to motion change events
    bg.BackgroundGeolocation.onMotionChange((bg.Location location) {
      print('[onMotionChange] - $location');
    });
    bg.BackgroundGeolocation.onMotionChange((bg.Location location) {
      print('[onMotionChange] - $location');
    });

    // Subscribe to activity change events
    bg.BackgroundGeolocation.onActivityChange((bg.ActivityChangeEvent event) {
      print('[onActivityChange] - $event');
    });

    // Subscribe to provider change events
    bg.BackgroundGeolocation.onProviderChange((bg.ProviderChangeEvent event) {
      print('[onProviderChange] - $event');
    });

    // Subscribe to HTTP events
    bg.BackgroundGeolocation.onHttp((bg.HttpEvent response) {
      print('[onHttp] - $response');
    });
    bg.BackgroundGeolocation.onEnabledChange((bool isEnable) {
      ConnectionBloc().updateStatus(isEnable);
    });

    bg.BackgroundGeolocation.onNotificationAction((String buttonId) {
      print('[onNotificationAction] - $buttonId');
      switch (buttonId) {
        case 'notificationButtonPause':
          bg.BackgroundGeolocation.changePace(false);
          break;
      }
    });

    // Configure the plugin
    await bg.BackgroundGeolocation.ready(
      bg.Config(
        desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH,
        distanceFilter: 0.0,
        locationUpdateInterval: 5000, // 5 seconds
        fastestLocationUpdateInterval: 5000, // 5 seconds
        stopOnTerminate: false,
        backgroundPermissionRationale: bg.PermissionRationale(),
        enableHeadless: true,
        startOnBoot: true,
        stationaryRadius: 1,
        debug: true,
        disableStopDetection: true,
        logLevel: bg.Config.LOG_LEVEL_VERBOSE,
        notificationTitle: 'در حال دریافت موقعیت جغرافیایی',
      ),
    );

    // Start the plugin
    bg.BackgroundGeolocation.start().then((value) => ConnectionBloc().onlineToggle(value: true));
  }

  Future<void> closeSession() async {
    await bg.BackgroundGeolocation.stop().then((value) => ConnectionBloc().onlineToggle(value: false));
    await bg.BackgroundGeolocation.stopSchedule().then((value) => ConnectionBloc().onlineToggle(value: false));
  }
}

Expected Behavior

recive location and send it to server every 5 second when user on moving

Actual Behavior

doesn't recive location when application closed

Steps to Reproduce

Context

Debug logs

Logs
PASTE_YOUR_LOGS_HERE

See wiki “Debugging”. Also read api docs Config.debug and learn what the the debug sound FX mean.

also, don’t test in emulator. Go outside and move at least 200 meters with a real device.

yes my friend, I undrestand and I never tested on emulator, I goes with documents and everything setup currect
and I try headless mode too
but the issue is still on for me

import 'dart:io';

import 'package:delivery/bloc/auth_bloc.dart';
import 'package:delivery/bloc/connection_bloc.dart';
import 'package:delivery/models/destination.dart';
import 'package:delivery/models/order_data.dart';
import 'package:delivery/models/origin.dart';
import 'package:delivery/models/product.dart';
import 'package:delivery/resources/constants.dart';
import 'package:delivery/router/router.dart';
import 'package:delivery/utils/Bglocation/geo_location_handler.dart';
import 'package:delivery/utils/http_override.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg;
import 'package:hive_flutter/hive_flutter.dart';
import 'package:sentry/sentry.dart';

import 'models/order.dart';
import 'zoodex_delivery_app.dart';

@pragma('vm:entry-point')
Future<void> backgroundGeolocationHeadlessTask(bg.HeadlessEvent headlessEvent) async {
  print('[Headless] - Event received: ${headlessEvent.name}');
  switch (headlessEvent.name) {
    case 'location':
      bg.Location location = headlessEvent.event;
      print('[Headless] - Location: $location');
      AuthBloc().sendLocationData(data: location);
      ConnectionBloc().updateLastLocation(location);
      break;
    case bg.Event.TERMINATE:
      bg.State state = headlessEvent.event;
      print('[Headless] - Terminate: State: $state');
      break;
    case 'motionchange':
      bg.Location location = headlessEvent.event;
      print('[Headless] - MotionChange: $location');
      break;
    case 'activitychange':
      bg.ActivityChangeEvent event = headlessEvent.event;
      print('[Headless] - ActivityChange: $event');
      break;
    case 'providerchange':
      bg.ProviderChangeEvent event = headlessEvent.event;
      print('[Headless] - ProviderChange: $event');
      break;
    default:
      print('[Headless] - Unhandled event: ${headlessEvent.name}');
      break;
  }
}

Future<void> main() async {
  HttpOverrides.global = HttpOverride();

  AppRouter.setupRouter();
  WidgetsFlutterBinding.ensureInitialized();
  await EasyLocalization.ensureInitialized();
  await Hive.initFlutter();
  Hive
    ..registerAdapter(OrderAdapter())
    ..registerAdapter(OrderDataAdapter())
    ..registerAdapter(OriginAdapter())
    ..registerAdapter(DestinationAdapter())
    ..registerAdapter(ProductAdapter());

  await bg.BackgroundGeolocation.registerHeadlessTask(backgroundGeolocationHeadlessTask);

  if (!Constants.debugMode) {
    await GeoLocationCHandler.init();
  }

  await Sentry.init(
    (options) {
      options.dsn = Constants.sentry;
    },
    appRunner: () => runApp(
      EasyLocalization(
        supportedLocales: const [Locale('fa', 'IR')],
        path: 'assets/translations',
        fallbackLocale: const Locale('fa', 'IR'),
        child: ZoodexDeliveryApp(),
      ),
    ),
  );
}

also this is the headless configuration

I update last comment my friend and highlighted now, sorry for that.

See wiki “Debugging”. See api docs .emailLog and Config.debug

here the logs

╔═════════════════════════════════════════════
║ TSLocationManager3.5.4 (433)
╠═════════════════════════════════════════════
╟─ Nothing A065 @ 14 (flutter)
{
"activityRecognitionInterval": 10000,
"allowIdenticalLocations": false,
"authorization": {},
"autoSync": true,
"autoSyncThreshold": 0,
"backgroundPermissionRationale": {
"title": "Allow {applicationName} to access this device's location even when closed or not in use?",
"message": "[CHANGEME] This app collects location data for FEATURE X and FEATURE Y.",
"positiveAction": "Change to "{backgroundPermissionOptionLabel}"",
"negativeAction": ""
},
"batchSync": false,
"configUrl": "",
"crashDetector": {
"enabled": false,
"accelerometerThresholdHigh": 20,
"accelerometerThresholdLow": 4.5,
"gyroscopeThresholdHigh": 20,
"gyroscopeThresholdLow": 4.5
},
"debug": false,
"deferTime": 0,
"desiredAccuracy": -1,
"desiredOdometerAccuracy": 100,
"disableAutoSyncOnCellular": false,
"disableElasticity": false,
"disableLocationAuthorizationAlert": false,
"disableMotionActivityUpdates": false,
"disableProviderChangeRecord": false,
"disableStopDetection": true,
"distanceFilter": 1,
"elasticityMultiplier": 1,
"enableHeadless": true,
"enableTimestampMeta": false,
"extras": {},
"fastestLocationUpdateInterval": 5000,
"foregroundService": true,
"geofenceInitialTriggerEntry": true,
"geofenceModeHighAccuracy": false,
"geofenceProximityRadius": 1000,
"geofenceTemplate": "",
"headers": {},
"headlessJobService": "com.transistorsoft.flutter.backgroundgeolocation.HeadlessTask",
"heartbeatInterval": -1,
"httpRootProperty": "location",
"httpTimeout": 60000,
"isMoving": false,
"locationAuthorizationRequest": "Always",
"locationTemplate": "",
"locationTimeout": 60,
"locationUpdateInterval": 5000,
"locationsOrderDirection": "ASC",
"logLevel": 5,
"logMaxDays": 3,
"maxBatchSize": -1,
"maxDaysToPersist": 1,
"maxMonitoredGeofences": 97,
"maxRecordsToPersist": -1,
"method": "POST",
"minimumActivityRecognitionConfidence": 75,
"motionTriggerDelay": 0,
"notification": {
"layout": "",
"title": "در حال دریافت موقعیت جغرافیایی",
"text": "Location Service activated",
"color": "",
"channelName": "TSLocationManager",
"channelId": "",
"smallIcon": "",
"largeIcon": "",
"priority": -1,
"sticky": false,
"strings": {},
"actions": []
},
"params": {},
"persist": true,
"persistMode": 2,
"schedule": [],
"scheduleUseAlarmManager": false,
"speedJumpFilter": 300,
"startOnBoot": true,
"stationaryRadius": 1,
"stopAfterElapsedMinutes": 0,
"stopOnStationary": false,
"stopOnTerminate": false,
"stopTimeout": 5,
"triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
"url": "",
"useSignificantChangesOnly": false,
"enabled": true,
"schedulerEnabled": false,
"trackingMode": 1,
"odometer": 8340.3525390625,
"isFirstBoot": false,
"didLaunchInBackground": false,
"didDeviceReboot": false
}
╔═════════════════════════════════════════════
║ DEVICE SENSORS
╠═════════════════════════════════════════════
╟─ ✅ ACCELEROMETER: {Sensor name="icm4x6xx Accelerometer Non-wakeup", vendor="TDK-Invensense", version=310, type=1, maxRange=156.9064, resolution=0.0047884034, power=0.24, minDelay=5000}
╟─ ✅ GYROSCOPE: {Sensor name="icm4x6xx Gyroscope Non-wakeup", vendor="TDK-Invensense", version=310, type=4, maxRange=34.90656, resolution=0.0010652636, power=0.57, minDelay=5000}
╟─ ✅ MAGNETOMETER: {Sensor name="mmc56x3x Magnetometer Non-wakeup", vendor="memsic", version=20720740, type=2, maxRange=3000.0288, resolution=0.0976, power=1.0, minDelay=10000}
╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="sns_smd Wakeup", vendor="QTI", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.025, minDelay=-1}
╚═════════════════════════════════════════════

Those aren’t the logs. The logs are sent as a large email attachment.

this is the lasts logs my friend:

TSLocationManager version: 3.5.4 (433)
╠═════════════════════════════════════════════
╟─ Nothing A065 @ 14 (flutter)
{
"activityRecognitionInterval": 10000,
"allowIdenticalLocations": false,
"authorization": {},
"autoSync": true,
"autoSyncThreshold": 0,
"backgroundPermissionRationale": {
"title": "Allow {applicationName} to access this device's location even when closed or not in use?",
"message": "[CHANGEME] This app collects location data for FEATURE X and FEATURE Y.",
"positiveAction": "Change to "{backgroundPermissionOptionLabel}"",
"negativeAction": ""
},
"batchSync": false,
"configUrl": "",
"crashDetector": {
"enabled": false,
"accelerometerThresholdHigh": 20,
"accelerometerThresholdLow": 4.5,
"gyroscopeThresholdHigh": 20,
"gyroscopeThresholdLow": 4.5
},
"debug": false,
"deferTime": 0,
"desiredAccuracy": -1,
"desiredOdometerAccuracy": 100,
"disableAutoSyncOnCellular": false,
"disableElasticity": false,
"disableLocationAuthorizationAlert": false,
"disableMotionActivityUpdates": false,
"disableProviderChangeRecord": false,
"disableStopDetection": true,
"distanceFilter": 1,
"elasticityMultiplier": 1,
"enableHeadless": true,
"enableTimestampMeta": false,
"extras": {},
"fastestLocationUpdateInterval": 5000,
"foregroundService": true,
"geofenceInitialTriggerEntry": true,
"geofenceModeHighAccuracy": false,
"geofenceProximityRadius": 1000,
"geofenceTemplate": "",
"headers": {},
"headlessJobService": "com.transistorsoft.flutter.backgroundgeolocation.HeadlessTask",
"heartbeatInterval": -1,
"httpRootProperty": "location",
"httpTimeout": 60000,
"isMoving": false,
"locationAuthorizationRequest": "Always",
"locationTemplate": "",
"locationTimeout": 60,
"locationUpdateInterval": 5000,
"locationsOrderDirection": "ASC",
"logLevel": 5,
"logMaxDays": 3,
"maxBatchSize": -1,
"maxDaysToPersist": 1,
"maxMonitoredGeofences": 97,
"maxRecordsToPersist": -1,
"method": "POST",
"minimumActivityRecognitionConfidence": 75,
"motionTriggerDelay": 0,
"notification": {
"layout": "",
"title": "در حال دریافت موقعیت جغرافیایی",
"text": "Location Service activated",
"color": "",
"channelName": "TSLocationManager",
"channelId": "",
"smallIcon": "",
"largeIcon": "",
"priority": -1,
"sticky": false,
"strings": {},
"actions": []
},
"params": {},
"persist": true,
"persistMode": 2,
"schedule": [],
"scheduleUseAlarmManager": false,
"speedJumpFilter": 300,
"startOnBoot": true,
"stationaryRadius": 1,
"stopAfterElapsedMinutes": 0,
"stopOnStationary": false,
"stopOnTerminate": false,
"stopTimeout": 5,
"triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
"url": "",
"useSignificantChangesOnly": false,
"enabled": true,
"schedulerEnabled": false,
"trackingMode": 1,
"odometer": 8279.1591796875,
"isFirstBoot": false,
"didLaunchInBackground": false,
"didDeviceReboot": false
}
07-25 09:32:04.448 INFO [LoggerFacade$a a]
╔═════════════════════════════════════════════
║ DEVICE SENSORS
╠═════════════════════════════════════════════
╟─ ✅ ACCELEROMETER: {Sensor name="icm4x6xx Accelerometer Non-wakeup", vendor="TDK-Invensense", version=310, type=1, maxRange=156.9064, resolution=0.0047884034, power=0.24, minDelay=5000}
╟─ ✅ GYROSCOPE: {Sensor name="icm4x6xx Gyroscope Non-wakeup", vendor="TDK-Invensense", version=310, type=4, maxRange=34.90656, resolution=0.0010652636, power=0.57, minDelay=5000}
╟─ ✅ MAGNETOMETER: {Sensor name="mmc56x3x Magnetometer Non-wakeup", vendor="memsic", version=20720740, type=2, maxRange=3000.0288, resolution=0.0976, power=1.0, minDelay=10000}
╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="sns_smd Wakeup", vendor="QTI", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.025, minDelay=-1}
╚═════════════════════════════════════════════
07-25 09:32:04.448 INFO [LoggerFacade$a a]
╔═════════════════════════════════════════════
║ BootReceiver: ir.zoodex.delivery
╠═════════════════════════════════════════════
╟─ android.intent.action.MY_PACKAGE_REPLACED

07-25 09:32:04.448 INFO [LoggerFacade$a a]
✅ Google Play Services: connected (version code:12451000)
07-25 09:32:04.448 DEBUG [LoggerFacade$a a] ☯️ onCreate
07-25 09:32:04.448 DEBUG [LoggerFacade$a a]
ℹ️ Load last odometer location: Location[TSLocationManager 30.284773,57.072424 hAcc=13.253 et=0 {Bundle[{odometer=8279.159}]}]
07-25 09:32:04.449 DEBUG [LoggerFacade$a a]
🎾 Start monitoring connectivity changes
07-25 09:32:04.453 DEBUG [TSSQLiteAppender$c run]
ℹ️ Cleared logs older than 72 hours
07-25 09:32:04.459 INFO [TSProviderManager startMonitoring]
🎾 Start monitoring location-provider changes
07-25 09:32:04.460 DEBUG [HttpService a]
╔═════════════════════════════════════════════
║ 📶 Connectivity change: connected? true
╠═════════════════════════════════════════════

07-25 09:32:04.463 DEBUG [HeadlessTask onHeadlessEvent] 💀 [HeadlessTask connectivitychange]
07-25 09:32:04.465 DEBUG [HeadlessTask onHeadlessEvent] 💀 [HeadlessTask providerchange]
07-25 09:32:04.473 INFO [TSGeofenceManager start]
🎾 Start monitoring geofences
07-25 09:32:04.475 DEBUG [TSGeofenceManager d] ℹ️ Persist monitored geofences: []
07-25 09:32:04.478 DEBUG [HttpService startMonitoringConnectivityChanges]
🎾 Start monitoring connectivity changes
07-25 09:32:04.479 DEBUG [DeviceSettings startMonitoringPowerSaveChanges]
🎾 Start monitoring powersave changes
07-25 09:32:04.481 DEBUG [SQLiteLocationDAO prune]
ℹ️ PRUNE -1 days
07-25 09:32:04.488 INFO [ActivityRecognitionService start]
🎾 Start motion-activity updates
07-25 09:32:04.491 INFO [HeartbeatService stop]
🔴 Stop heartbeat
07-25 09:32:04.577 DEBUG [HeadlessTask dispatch] [HeadlessTask] waiting for client to initialize
07-25 09:32:04.578 DEBUG [HeadlessTask dispatch] [HeadlessTask] waiting for client to initialize
07-25 09:32:04.578 DEBUG [LifecycleManager b]
╔═════════════════════════════════════════════
║ ☯️ HeadlessMode? true
╠═════════════════════════════════════════════

07-25 09:32:04.579 DEBUG [HeadlessTask onHeadlessEvent] 💀 [HeadlessTask boot]
07-25 09:32:04.583 DEBUG [HeadlessTask dispatch] [HeadlessTask] waiting for client to initialize
07-25 09:32:04.622 DEBUG [TSGeofenceManager startMonitoringStationaryRegion]
🎾 Start monitoring stationary region (radius: 150.0m 30.2847712,57.0724336 hAcc=15.902)
07-25 09:32:04.627 DEBUG [TSLocationManager a] Median accuracy: 15.902
07-25 09:32:04.627 INFO [TSLocationManager a]
╔═════════════════════════════════════════════
║ motionchange LocationResult: 1 (230044ms old)
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284771,57.072434 hAcc=15.902 et=+12d1h56m35s550ms alt=1769.5 vAcc=1.0], time: 1721887094582

07-25 09:32:04.634 DEBUG [HeadlessTask onHeadlessEvent] 💀 [HeadlessTask location]
07-25 09:32:04.635 DEBUG [LocationAuthorization withPermission]
ℹ️ LocationAuthorization: Permission granted
07-25 09:32:04.637 DEBUG [HeadlessTask onMethodCall] $ initialized
07-25 09:32:04.668 DEBUG [AbstractService a]
🎾 start [LocationRequestService startId: 1, eventCount: 1]
07-25 09:32:04.671 INFO [SingleLocationRequest startUpdatingLocation]
🔵 [SingleLocationRequest start, action: 1, requestId: 1]
07-25 09:32:04.681 DEBUG [AbstractService a]
⚙️︎ FINISH [LocationRequestService startId: 1, eventCount: 0, sticky: true]
07-25 09:32:04.726 DEBUG [TSGeofenceManager$d run] evaluation buffer timer elapsed
07-25 09:32:04.735 DEBUG [TSGeofenceManager$e run]
╔═════════════════════════════════════════════
║ TSGeofenceManager monitoring 0/0
╠═════════════════════════════════════════════
╚═════════════════════════════════════════════
07-25 09:32:04.736 DEBUG [HeadlessTask onHeadlessEvent] 💀 [HeadlessTask geofenceschange]
07-25 09:32:05.552 DEBUG [AbstractService a]
🎾 1:1 [LocationRequestService startId: 2, eventCount: 1]
07-25 09:32:05.553 INFO [TSLocationManager a]
╔═════════════════════════════════════════════
║ motionchange LocationResult: 1 (427ms old)
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284734,57.072474 hAcc=16.689 et=+12d2h0m26s94ms alt=1771.0999755859375 vAcc=1.03033], time: 1721887325126

07-25 09:32:05.554 INFO [TSLocationManager onSingleLocationResult]
🔵 Acquired motionchange position, isMoving: false
07-25 09:32:05.554 DEBUG [TSLocationManager a] Median accuracy: 16.2955
07-25 09:32:05.561 DEBUG [AbstractService a]
⚙️︎ FINISH [LocationRequestService startId: 2, eventCount: 1, sticky: false]
07-25 09:32:05.562 DEBUG [AbstractService b]
🎾 STOP [LocationRequestService startId: 3, eventCount: 1]
07-25 09:32:05.562 DEBUG [AbstractService a]
⚙️︎ FINISH [LocationRequestService startId: 3, eventCount: 0, sticky: false]
07-25 09:32:05.565 DEBUG [HeadlessTask onHeadlessEvent] 💀 [HeadlessTask location]
07-25 09:32:05.565 DEBUG [HeadlessTask onHeadlessEvent] 💀 [HeadlessTask motionchange]
07-25 09:32:05.566 DEBUG [TSGeofenceManager startMonitoringStationaryRegion]
🎾 Start monitoring stationary region (radius: 150.0m 30.2847339,57.0724737 hAcc=16.689)
07-25 09:32:05.584 DEBUG [AbstractService a]
🎾 motionchange [TrackingService startId: 1, eventCount: 1]
07-25 09:32:05.585 INFO [TrackingService k]
╔═════════════════════════════════════════════
║ TrackingService motionchange: false
╠═════════════════════════════════════════════

07-25 09:32:05.587 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 1, eventCount: 0, sticky: false]
07-25 09:32:05.766 DEBUG [AbstractService f]
⚙️︎ LocationRequestService.stopSelfResult(3): true
07-25 09:32:05.766 DEBUG [AbstractService onDestroy]
🔴 LocationRequestService stopped
07-25 09:32:05.793 DEBUG [AbstractService f]
⚙️︎ TrackingService.stopSelfResult(1): true
07-25 09:32:05.793 DEBUG [AbstractService onDestroy]
🔴 TrackingService stopped
07-25 09:32:10.160 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/location
07-25 09:32:10.160 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/motionchange
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/activitychange
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/geofenceschange
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/geofence
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/heartbeat
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/http
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/schedule
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/connectivitychange
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/enabledchange
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/providerchange
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/powersavechange
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/notificationaction
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/authorization
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/location
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/motionchange
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/activitychange
07-25 09:32:10.161 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/geofenceschange
07-25 09:32:10.162 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/geofence
07-25 09:32:10.162 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/heartbeat
07-25 09:32:10.162 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/http
07-25 09:32:10.162 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/schedule
07-25 09:32:10.162 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/connectivitychange
07-25 09:32:10.162 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/enabledchange
07-25 09:32:10.162 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/providerchange
07-25 09:32:10.162 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/powersavechange
07-25 09:32:10.162 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/notificationaction
07-25 09:32:10.162 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/authorization
07-25 09:32:10.162 DEBUG [BackgroundGeolocation a]
🔴 Cleared callbacks
07-25 09:32:10.185 DEBUG [LifecycleManager onStart] ☯️ onStart
07-25 09:32:10.187 DEBUG [LifecycleManager onResume] ☯️ onResume
07-25 09:32:10.217 DEBUG [StreamHandler onListen] location
07-25 09:32:10.218 DEBUG [StreamHandler onListen] motionchange
07-25 09:32:10.218 DEBUG [StreamHandler onListen] activitychange
07-25 09:32:10.218 DEBUG [StreamHandler onListen] providerchange
07-25 09:32:10.218 DEBUG [StreamHandler onListen] http
07-25 09:32:10.218 DEBUG [StreamHandler onListen] enabledchange
07-25 09:32:10.218 DEBUG [StreamHandler onListen] notificationaction
07-25 09:32:10.218 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [desiredAccuracy, disableStopDetection, distanceFilter, enableHeadless, extras, fastestLocationUpdateInterval, headers, headlessJobService, locationUpdateInterval, logLevel, notification, notification.title, params, schedule, startOnBoot, stationaryRadius, stopOnTerminate]
07-25 09:32:10.219 DEBUG [LocationAuthorization withBackgroundPermission]
ℹ️ LocationAuthorization: Permission granted
07-25 09:32:10.221 DEBUG [TSGeofenceManager$e run]
╔═════════════════════════════════════════════
║ TSGeofenceManager monitoring 0/0
╠═════════════════════════════════════════════
╚═════════════════════════════════════════════
07-25 09:32:10.227 DEBUG [HttpService startMonitoringConnectivityChanges]
🎾 Start monitoring connectivity changes
07-25 09:32:10.227 DEBUG [DeviceSettings startMonitoringPowerSaveChanges]
🎾 Start monitoring powersave changes
07-25 09:32:10.227 INFO [ActivityRecognitionService start]
🎾 Start motion-activity updates
07-25 09:32:10.228 INFO [HeartbeatService stop]
🔴 Stop heartbeat
07-25 09:32:10.244 INFO [TSLocationManager a]
╔═════════════════════════════════════════════
║ motionchange LocationResult: 2 (4915ms old)
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284715,57.072480 hAcc=15.286 et=+12d2h0m26s297ms alt=1771.199951171875 vAcc=1.0 vel=0.038675677 sAcc=1.5], time: 1721887325329

07-25 09:32:10.245 INFO [TSLocationManager onSingleLocationResult]
🔵 Acquired motionchange position, isMoving: false
07-25 09:32:10.245 DEBUG [TSLocationManager a] Median accuracy: 15.286
07-25 09:32:10.259 DEBUG [TSGeofenceManager startMonitoringStationaryRegion]
🎾 Start monitoring stationary region (radius: 150.0m 30.2847147,57.0724796 hAcc=15.286)
07-25 09:32:10.270 DEBUG [AbstractService a]
🎾 motionchange [TrackingService startId: 1, eventCount: 1]
07-25 09:32:10.271 INFO [TrackingService k]
╔═════════════════════════════════════════════
║ TrackingService motionchange: false
╠═════════════════════════════════════════════

07-25 09:32:10.271 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 1, eventCount: 0, sticky: false]
07-25 09:32:10.446 DEBUG [TSLocationManagerActivity a] locationsettings
07-25 09:32:10.446 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1
07-25 09:32:10.465 DEBUG [TSLocationManagerActivity c] eventCount: 0
07-25 09:32:10.475 DEBUG [AbstractService f]
⚙️︎ TrackingService.stopSelfResult(1): true
07-25 09:32:10.483 DEBUG [AbstractService onDestroy]
🔴 TrackingService stopped
07-25 09:32:10.524 DEBUG [TSLocationManagerActivity onDestroy]
07-25 09:32:11.116 WARN [BackgroundGeolocationModule ready]
⚠️ #ready already called. Redirecting to #setConfig
07-25 09:32:11.117 DEBUG [LocationAuthorization withBackgroundPermission]
ℹ️ LocationAuthorization: Permission granted
07-25 09:32:11.118 DEBUG [HttpService startMonitoringConnectivityChanges]
🎾 Start monitoring connectivity changes
07-25 09:32:11.118 DEBUG [DeviceSettings startMonitoringPowerSaveChanges]
🎾 Start monitoring powersave changes
07-25 09:32:11.118 INFO [ActivityRecognitionService start]
🎾 Start motion-activity updates
07-25 09:32:11.120 INFO [HeartbeatService stop]
🔴 Stop heartbeat
07-25 09:32:11.124 INFO [TSLocationManager a]
╔═════════════════════════════════════════════
║ motionchange LocationResult: 3 (5795ms old)
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284715,57.072480 hAcc=15.286 et=+12d2h0m26s297ms alt=1771.199951171875 vAcc=1.0 vel=0.038675677 sAcc=1.5], time: 1721887325329

07-25 09:32:11.125 INFO [TSLocationManager onSingleLocationResult]
🔵 Acquired motionchange position, isMoving: false
07-25 09:32:11.125 DEBUG [TSLocationManager a] Median accuracy: 15.286
07-25 09:32:11.128 DEBUG [TSGeofenceManager startMonitoringStationaryRegion]
🎾 Start monitoring stationary region (radius: 150.0m 30.2847147,57.0724796 hAcc=15.286)
07-25 09:32:11.133 DEBUG [AbstractService a]
🎾 motionchange [TrackingService startId: 1, eventCount: 1]
07-25 09:32:11.134 INFO [TrackingService k]
╔═════════════════════════════════════════════
║ TrackingService motionchange: false
╠═════════════════════════════════════════════

07-25 09:32:11.134 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 1, eventCount: 0, sticky: false]
07-25 09:32:11.330 DEBUG [TSLocationManagerActivity a] locationsettings
07-25 09:32:11.331 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1
07-25 09:32:11.337 DEBUG [AbstractService f]
⚙️︎ TrackingService.stopSelfResult(1): true
07-25 09:32:11.343 DEBUG [AbstractService onDestroy]
🔴 TrackingService stopped
07-25 09:32:11.357 DEBUG [TSLocationManagerActivity c] eventCount: 0
07-25 09:32:11.375 DEBUG [TSLocationManagerActivity onDestroy]
07-25 09:32:14.446 INFO [TSScheduleManager oneShot]
⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
07-25 09:32:15.133 DEBUG [LifecycleManager onPause] ☯️ onPause
07-25 09:32:15.133 DEBUG [LifecycleManager onStop] ☯️ onStop
07-25 09:32:15.305 DEBUG [AbstractService a]
🎾 start [ActivityRecognitionService startId: 1, eventCount: 1]
07-25 09:32:15.309 DEBUG [ActivityRecognitionService a]
🚘 ️DetectedActivity [type=TILTING, confidence=100]
07-25 09:32:15.310 DEBUG [AbstractService a]
🎾 start [ActivityRecognitionService startId: 2, eventCount: 2]
07-25 09:32:15.311 DEBUG [ActivityRecognitionService a]
🚘 ️DetectedActivity [type=STILL, confidence=42]
07-25 09:32:15.311 DEBUG [AbstractService a]
⚙️︎ FINISH [ActivityRecognitionService startId: 2, eventCount: 1, sticky: false]
07-25 09:32:15.313 DEBUG [AbstractService a]
⚙️︎ FINISH [ActivityRecognitionService startId: 1, eventCount: 0, sticky: false]
07-25 09:32:15.520 DEBUG [AbstractService f]
⚙️︎ ActivityRecognitionService.stopSelfResult(2): true
07-25 09:32:15.521 DEBUG [AbstractService onDestroy]
🔴 ActivityRecognitionService stopped
07-25 09:32:24.472 INFO [ScheduleEvent a]
╔═════════════════════════════════════════════
║ ⏰ OneShot event fired: TERMINATE_EVENT
╠═════════════════════════════════════════════

07-25 09:32:24.473 DEBUG [TerminateEvent$a onChange]
ℹ️ TERMINATE_EVENT ignored (MainActivity is still active).
07-25 09:32:33.747 DEBUG [LifecycleManager onStart] ☯️ onStart
07-25 09:32:33.757 DEBUG [LifecycleManager onResume] ☯️ onResume
07-25 09:32:36.995 DEBUG [LifecycleManager onPause] ☯️ onPause
07-25 09:32:41.632 DEBUG [LifecycleManager onStop] ☯️ onStop
07-25 09:32:41.634 INFO [TSScheduleManager oneShot]
⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
07-25 09:32:51.650 INFO [ScheduleEvent a]
╔═════════════════════════════════════════════
║ ⏰ OneShot event fired: TERMINATE_EVENT
╠═════════════════════════════════════════════

07-25 09:32:51.650 DEBUG [TerminateEvent$a onChange]
ℹ️ TERMINATE_EVENT ignored (MainActivity is still active).
07-25 09:33:20.001 DEBUG [AbstractService a]
🎾 start [ActivityRecognitionService startId: 1, eventCount: 1]
07-25 09:33:20.001 DEBUG [ActivityRecognitionService a] *** wasMoving: false, nowMoving: true, startedMoving: true, justStopped; false
07-25 09:33:20.002 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [isMoving]
07-25 09:33:20.003 INFO [HeartbeatService stop]
🔴 Stop heartbeat
07-25 09:33:20.003 DEBUG [TSGeofenceManager stopMonitoringStationaryRegion]
🔴 Stop monitoring stationary region
07-25 09:33:20.005 INFO [TrackingService changePace]
🔵 setPace: false → true
07-25 09:33:20.005 INFO [ActivityRecognitionService a]
╔═════════════════════════════════════════════
║ Motion Transition Result
╠═════════════════════════════════════════════
╟─ 🔴 EXIT: still
╟─ 🎾 ENTER: walking
╚═════════════════════════════════════════════
07-25 09:33:20.005 DEBUG [AbstractService a]
⚙️︎ FINISH [ActivityRecognitionService startId: 1, eventCount: 0, sticky: false]
07-25 09:33:20.009 DEBUG [AbstractService a]
🎾 motionchange [TrackingService startId: 1, eventCount: 1]
07-25 09:33:20.009 INFO [TrackingService k]
╔═════════════════════════════════════════════
║ TrackingService motionchange: true
╠═════════════════════════════════════════════

07-25 09:33:20.009 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 1, eventCount: 0, sticky: true]
07-25 09:33:20.019 INFO [TSLocationManager a]
╔═════════════════════════════════════════════
║ motionchange LocationResult: 4 (74690ms old)
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284715,57.072480 hAcc=15.286 et=+12d2h0m26s297ms alt=1771.199951171875 vAcc=1.0 vel=0.038675677 sAcc=1.5], time: 1721887325329

07-25 09:33:20.019 DEBUG [TSLocationManager a] Median accuracy: 15.286
07-25 09:33:20.024 DEBUG [LocationAuthorization withPermission]
ℹ️ LocationAuthorization: Permission granted
07-25 09:33:20.030 DEBUG [AbstractService a]
🎾 start [LocationRequestService startId: 1, eventCount: 1]
07-25 09:33:20.030 INFO [SingleLocationRequest startUpdatingLocation]
🔵 [SingleLocationRequest start, action: 1, requestId: 4]
07-25 09:33:20.031 DEBUG [AbstractService a]
⚙️︎ FINISH [LocationRequestService startId: 1, eventCount: 0, sticky: true]
07-25 09:33:20.206 DEBUG [AbstractService f]
⚙️︎ ActivityRecognitionService.stopSelfResult(1): true
07-25 09:33:20.206 DEBUG [AbstractService onDestroy]
🔴 ActivityRecognitionService stopped
07-25 09:33:20.834 DEBUG [AbstractService a]
🎾 1:4 [LocationRequestService startId: 2, eventCount: 1]
07-25 09:33:20.835 INFO [TSLocationManager a]
╔═════════════════════════════════════════════
║ motionchange LocationResult: 4 (710ms old)
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284751,57.072461 hAcc=14.896 et=+12d2h1m41s93ms alt=1771.199951171875 vAcc=1.0], time: 1721887400125

07-25 09:33:20.837 INFO [TSLocationManager onSingleLocationResult]
🔵 Acquired motionchange position, isMoving: true
07-25 09:33:20.837 DEBUG [TSLocationManager a] Median accuracy: 15.286
07-25 09:33:20.843 INFO [TSLocationManager requestLocationUpdates]
🎾 Location-services: ON
07-25 09:33:20.844 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1
07-25 09:33:20.844 DEBUG [AbstractService b]
🎾 STOP [LocationRequestService startId: 3, eventCount: 2]
07-25 09:33:20.845 DEBUG [AbstractService a]
⚙️︎ FINISH [LocationRequestService startId: 3, eventCount: 1, sticky: false]
07-25 09:33:20.845 INFO [ActivityRecognitionService start]
🎾 Start motion-activity updates
07-25 09:33:20.845 DEBUG [AbstractService a]
⚙️︎ FINISH [LocationRequestService startId: 2, eventCount: 0, sticky: false]
07-25 09:33:20.846 INFO [SQLiteLocationDAO persist]
✅ INSERT: 942b207b-0a8b-411c-b720-3b760018e2ba
07-25 09:33:20.861 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 2, eventCount: 1]
07-25 09:33:20.861 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284751,57.072461 hAcc=14.896 et=+12d2h1m41s93ms alt=1771.199951171875 vAcc=1.0]
╟─ Age: 736ms, time: 1721887400125

07-25 09:33:20.861 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:33:20.861 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 2, eventCount: 0, sticky: true]
07-25 09:33:20.861 DEBUG [TSLocationManager onLocationResult]
ℹ️ IGNORED: same as last location
07-25 09:33:21.052 DEBUG [AbstractService f]
⚙️︎ LocationRequestService.stopSelfResult(3): true
07-25 09:33:21.052 DEBUG [AbstractService onDestroy]
🔴 LocationRequestService stopped
07-25 09:33:32.198 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 3, eventCount: 1]
07-25 09:33:32.199 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284731,57.072490 hAcc=13.291 et=+12d2h1m51s181ms alt=1771.199951171875 vAcc=1.0 vel=0.31162927 sAcc=1.5 bear=133.11449 bAcc=45.0]
╟─ Age: 1985ms, time: 1721887410213

07-25 09:33:32.199 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 3, eventCount: 0, sticky: true]
07-25 09:33:32.199 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:33:32.200 DEBUG [TSLocationManager a] Median accuracy: 15.286
07-25 09:33:32.208 INFO [SQLiteLocationDAO persist]
✅ INSERT: 7074d423-2d34-4443-a53a-ef1e901b3eb8
07-25 09:33:33.440 DEBUG [AbstractService a]
🎾 start [ActivityRecognitionService startId: 1, eventCount: 1]
07-25 09:33:33.441 DEBUG [ActivityRecognitionService a]
🚘 ️DetectedActivity [type=STILL, confidence=98]
07-25 09:33:33.442 DEBUG [AbstractService a]
🎾 start [ActivityRecognitionService startId: 2, eventCount: 2]
07-25 09:33:33.442 DEBUG [AbstractService a]
⚙️︎ FINISH [ActivityRecognitionService startId: 1, eventCount: 1, sticky: false]
07-25 09:33:33.443 DEBUG [ActivityRecognitionService a] *** wasMoving: true, nowMoving: false, startedMoving: false, justStopped; true
07-25 09:33:33.443 INFO [ActivityRecognitionService a]
╔═════════════════════════════════════════════
║ Motion Transition Result
╠═════════════════════════════════════════════
╟─ 🔴 EXIT: walking
╟─ 🎾 ENTER: still
╚═════════════════════════════════════════════
07-25 09:33:33.443 DEBUG [AbstractService a]
⚙️︎ FINISH [ActivityRecognitionService startId: 2, eventCount: 0, sticky: false]
07-25 09:33:33.476 DEBUG [AbstractService a]
🎾 start [ActivityRecognitionService startId: 3, eventCount: 1]
07-25 09:33:33.477 DEBUG [ActivityRecognitionService a] *** wasMoving: true, nowMoving: false, startedMoving: false, justStopped; true
07-25 09:33:33.478 INFO [ActivityRecognitionService a]
╔═════════════════════════════════════════════
║ Motion Transition Result
╠═════════════════════════════════════════════
╟─ 🎾 ENTER: still
╚═════════════════════════════════════════════
07-25 09:33:33.478 DEBUG [AbstractService a]
⚙️︎ FINISH [ActivityRecognitionService startId: 3, eventCount: 0, sticky: false]
07-25 09:33:33.685 DEBUG [AbstractService f]
⚙️︎ ActivityRecognitionService.stopSelfResult(3): true
07-25 09:33:33.686 DEBUG [AbstractService onDestroy]
🔴 ActivityRecognitionService stopped
07-25 09:33:35.933 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 4, eventCount: 1]
07-25 09:33:35.934 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284745,57.072478 hAcc=10.991 et=+12d2h1m56s876ms alt=1771.199951171875 vAcc=1.0 vel=0.11852664 sAcc=0.1446686 bear=213.84334 bAcc=45.0]
╟─ Age: 25ms, time: 1721887415908

07-25 09:33:35.934 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 4, eventCount: 0, sticky: true]
07-25 09:33:35.934 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:33:35.935 DEBUG [TSLocationManager a] Median accuracy: 15.286
07-25 09:33:35.943 INFO [SQLiteLocationDAO persist]
✅ INSERT: bfe34a25-a600-4735-8f55-7e173606fae1
07-25 09:33:40.954 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 5, eventCount: 1]
07-25 09:33:40.955 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284748,57.072467 hAcc=11.67 et=+12d2h2m1s898ms alt=1771.199951171875 vAcc=1.0 vel=0.6455114 sAcc=0.29099807 bear=173.68037 bAcc=45.0]
╟─ Age: 24ms, time: 1721887420930

07-25 09:33:40.956 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 5, eventCount: 0, sticky: true]
07-25 09:33:40.956 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:33:40.956 DEBUG [TSLocationManager a] Median accuracy: 15.286
07-25 09:33:40.964 INFO [SQLiteLocationDAO persist]
✅ INSERT: a8dd565e-a2d2-452c-95b0-18ad7f4ef4fa
07-25 09:33:52.843 DEBUG [LifecycleManager onStart] ☯️ onStart
07-25 09:33:52.846 DEBUG [LifecycleManager onResume] ☯️ onResume
07-25 09:33:52.927 INFO [TSScheduleManager oneShot]
⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
07-25 09:33:53.620 DEBUG [LifecycleManager onPause] ☯️ onPause
07-25 09:33:53.621 DEBUG [LifecycleManager onStop] ☯️ onStop
07-25 09:33:57.041 DEBUG [LifecycleManager onStart] ☯️ onStart
07-25 09:33:57.043 INFO [TSScheduleManager cancelOneShot]
⏰ Cancel OneShot: TERMINATE_EVENT
07-25 09:33:57.045 DEBUG [LifecycleManager onResume] ☯️ onResume
07-25 09:33:58.990 INFO [TSScheduleManager oneShot]
⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
07-25 09:33:59.679 DEBUG [LifecycleManager onPause] ☯️ onPause
07-25 09:33:59.679 DEBUG [LifecycleManager onStop] ☯️ onStop
07-25 09:34:02.844 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 6, eventCount: 1]
07-25 09:34:02.845 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284736,57.072471 hAcc=9.366 et=+12d2h2m23s793ms alt=1771.199951171875 vAcc=1.0 vel=0.37236565 sAcc=0.26999837 bear=50.482334 bAcc=45.0]
╟─ Age: 19ms, time: 1721887442825

07-25 09:34:02.845 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:34:02.845 DEBUG [TSLocationManager a] Median accuracy: 15.594
07-25 09:34:02.846 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 6, eventCount: 0, sticky: true]
07-25 09:34:02.852 INFO [SQLiteLocationDAO persist]
✅ INSERT: 6dbb819e-676e-4865-877d-626a0166e909
07-25 09:34:11.590 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 7, eventCount: 1]
07-25 09:34:11.592 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284751,57.072469 hAcc=8.716 et=+12d2h2m32s534ms alt=1771.199951171875 vAcc=1.0 vel=0.3349487 sAcc=0.2423402 bear=222.27817 bAcc=45.0]
╟─ Age: 25ms, time: 1721887451566

07-25 09:34:11.592 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 7, eventCount: 0, sticky: true]
07-25 09:34:11.592 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:34:11.593 DEBUG [TSLocationManager a] Median accuracy: 15.902
07-25 09:34:11.601 INFO [SQLiteLocationDAO persist]
✅ INSERT: 786c469a-6d2b-4ce9-a3d3-3c3a8f93b8d9
07-25 09:34:16.252 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 8, eventCount: 1]
07-25 09:34:16.253 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284720,57.072466 hAcc=8.324 et=+12d2h2m37s193ms alt=1771.199951171875 vAcc=1.3704824 vel=0.7161533 sAcc=0.26883182 bear=151.65321 bAcc=45.0]
╟─ Age: 27ms, time: 1721887456225

07-25 09:34:16.254 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 8, eventCount: 0, sticky: true]
07-25 09:34:16.255 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:34:16.255 DEBUG [TSLocationManager a] Median accuracy: 13.291
07-25 09:34:16.260 INFO [SQLiteLocationDAO persist]
✅ INSERT: ef3a1ecf-e9ae-4a8a-8b5d-dee45c0b413d
07-25 09:34:16.505 INFO [ScheduleEvent a]
╔═════════════════════════════════════════════
║ ⏰ OneShot event fired: TERMINATE_EVENT
╠═════════════════════════════════════════════

07-25 09:34:16.506 DEBUG [TerminateEvent$a onChange]
ℹ️ TERMINATE_EVENT ignored (MainActivity is still active).
07-25 09:34:20.754 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 9, eventCount: 1]
07-25 09:34:20.755 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284731,57.072479 hAcc=8.974 et=+12d2h2m41s695ms alt=1771.199951171875 vAcc=1.3704824 vel=0.3618711 sAcc=0.23473817 bear=87.48642 bAcc=45.0]
╟─ Age: 28ms, time: 1721887460727

07-25 09:34:20.755 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:34:20.756 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 9, eventCount: 0, sticky: true]
07-25 09:34:20.756 DEBUG [TSLocationManager a] Median accuracy: 11.67
07-25 09:34:20.765 INFO [SQLiteLocationDAO persist]
✅ INSERT: 1ea80b0b-a892-4563-9f9c-02b5cc3dc930
07-25 09:34:26.701 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 10, eventCount: 1]
07-25 09:34:26.702 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284724,57.072486 hAcc=8.566 et=+12d2h2m47s641ms alt=1771.199951171875 vAcc=1.0504262 vel=0.12706308 sAcc=0.14975803 bear=89.00383 bAcc=45.0]
╟─ Age: 28ms, time: 1721887466673

07-25 09:34:26.702 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 10, eventCount: 0, sticky: true]
07-25 09:34:26.703 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:34:26.704 DEBUG [TSLocationManager a] Median accuracy: 10.991
07-25 09:34:26.712 INFO [SQLiteLocationDAO persist]
✅ INSERT: a24ef6cd-750b-495c-9fd8-46ac09163213
07-25 09:35:02.557 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 11, eventCount: 1]
07-25 09:35:02.558 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284738,57.072492 hAcc=31.502 et=+12d2h3m21s528ms alt=1765.0 vAcc=5.1985006 vel=0.035081394 sAcc=1.5]
╟─ Age: 1998ms, time: 1721887500560

07-25 09:35:02.558 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 11, eventCount: 0, sticky: true]
07-25 09:35:02.558 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:35:02.558 DEBUG [TSLocationManager a] Median accuracy: 10.991
07-25 09:35:02.563 INFO [SQLiteLocationDAO persist]
✅ INSERT: d2a20319-0bb0-4733-b763-af3d19c548aa
07-25 09:35:11.653 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 12, eventCount: 1]
07-25 09:35:11.653 INFO [TrackingService b]
ℹ️ Location availability: false
07-25 09:35:11.653 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 12, eventCount: 0, sticky: true]
07-25 09:35:12.632 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 13, eventCount: 1]
07-25 09:35:12.632 INFO [TrackingService b]
ℹ️ Location availability: true
07-25 09:35:12.632 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 13, eventCount: 0, sticky: true]
07-25 09:35:12.640 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 14, eventCount: 1]
07-25 09:35:12.640 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284719,57.072488 hAcc=22.043 et=+12d2h3m31s966ms alt=1756.0 vAcc=2.716898 vel=0.1532514 sAcc=1.5 bear=193.4274 bAcc=45.0]
╟─ Age: 1642ms, time: 1721887510998

07-25 09:35:12.641 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 14, eventCount: 0, sticky: true]
07-25 09:35:12.641 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:35:12.641 DEBUG [TSLocationManager a] Median accuracy: 10.991
07-25 09:35:12.647 INFO [SQLiteLocationDAO persist]
✅ INSERT: 18e81e3f-4f3d-4a2c-931c-d79869ead612
07-25 09:35:22.091 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 15, eventCount: 1]
07-25 09:35:22.091 INFO [TrackingService b]
ℹ️ Location availability: false
07-25 09:35:22.091 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 15, eventCount: 0, sticky: true]
07-25 09:35:22.638 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 16, eventCount: 1]
07-25 09:35:22.638 INFO [TrackingService b]
ℹ️ Location availability: true
07-25 09:35:22.638 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 16, eventCount: 0, sticky: true]
07-25 09:35:22.646 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 17, eventCount: 1]
07-25 09:35:22.647 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284640,57.072344 hAcc=33.946 et=+12d2h3m41s580ms alt=1754.7999267578125 vAcc=2.8472686 vel=1.0582255 sAcc=1.5 bear=234.40747 bAcc=45.0]
╟─ Age: 2035ms, time: 1721887520612

07-25 09:35:22.647 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 17, eventCount: 0, sticky: true]
07-25 09:35:22.647 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:35:22.648 DEBUG [TSLocationManager a] Median accuracy: 10.991
07-25 09:35:22.656 INFO [SQLiteLocationDAO persist]
✅ INSERT: 01f2a1f7-0373-4049-b1d7-09d66fc5ced3
07-25 09:35:25.380 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 18, eventCount: 1]
07-25 09:35:25.381 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284724,57.072475 hAcc=14.868 et=+12d2h3m46s332ms alt=1754.7999267578125 vAcc=2.8472686 vel=0.14983973 sAcc=0.1690097 bear=289.6943 bAcc=45.0]
╟─ Age: 16ms, time: 1721887525364

07-25 09:35:25.381 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:35:25.381 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 18, eventCount: 0, sticky: true]
07-25 09:35:25.382 DEBUG [TSLocationManager d] Distance from last location: 15.684711, apparent speed: 3.3006546
07-25 09:35:25.382 DEBUG [TSLocationManager a] Median accuracy: 10.991
07-25 09:35:25.388 INFO [SQLiteLocationDAO persist]
✅ INSERT: 8a5ccbb2-25f1-4a89-83a8-661e3990e18a
07-25 09:35:31.051 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 19, eventCount: 1]
07-25 09:35:31.052 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284737,57.072421 hAcc=8.626 et=+12d2h3m51s998ms alt=1754.7999267578125 vAcc=3.686343 vel=0.87369597 sAcc=0.2742437 bear=279.87936 bAcc=45.0]
╟─ Age: 21ms, time: 1721887531030

07-25 09:35:31.053 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 19, eventCount: 0, sticky: true]
07-25 09:35:31.053 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:35:31.053 DEBUG [TSLocationManager a] Median accuracy: 8.626
07-25 09:35:31.062 INFO [SQLiteLocationDAO persist]
✅ INSERT: 652d025c-3543-4121-ac43-8fb2dc0fb73b
07-25 09:35:35.568 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 20, eventCount: 1]
07-25 09:35:35.569 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284746,57.072371 hAcc=9.142 et=+12d2h3m56s516ms alt=1754.7999267578125 vAcc=1.0080765 vel=1.1161596 sAcc=0.23661616 bear=334.55304 bAcc=45.0]
╟─ Age: 20ms, time: 1721887535548

07-25 09:35:35.569 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 20, eventCount: 0, sticky: true]
07-25 09:35:35.569 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:35:35.574 DEBUG [TSLocationManager a] Median accuracy: 8.626
07-25 09:35:35.584 INFO [SQLiteLocationDAO persist]
✅ INSERT: cda85910-1eff-4418-a263-0c08fa70ad3b
07-25 09:35:40.193 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 21, eventCount: 1]
07-25 09:35:40.194 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284785,57.072344 hAcc=10.202 et=+12d2h4m1s140ms alt=1755.0 vAcc=1.2820072 vel=1.0627213 sAcc=0.30163857 bear=345.047 bAcc=45.0]
╟─ Age: 21ms, time: 1721887540172

07-25 09:35:40.194 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:35:40.194 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 21, eventCount: 0, sticky: true]
07-25 09:35:40.194 DEBUG [TSLocationManager a] Median accuracy: 9.142
07-25 09:35:40.195 DEBUG [TSLocationManager c] Odometer: 8292.867
07-25 09:35:40.204 INFO [SQLiteLocationDAO persist]
✅ INSERT: da1dc826-6236-4be3-8abf-265764846af3
07-25 09:35:44.886 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 22, eventCount: 1]
07-25 09:35:44.887 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284796,57.072275 hAcc=10.116 et=+12d2h4m5s839ms alt=1754.5999755859375 vAcc=3.3118906 vel=1.1799245 sAcc=0.2592166 bear=338.57382 bAcc=45.0]
╟─ Age: 15ms, time: 1721887544871

07-25 09:35:44.887 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:35:44.888 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 22, eventCount: 0, sticky: true]
07-25 09:35:44.888 DEBUG [TSLocationManager a] Median accuracy: 10.202
07-25 09:35:44.895 INFO [SQLiteLocationDAO persist]
✅ INSERT: 58d810dd-b51c-43b3-a015-2ce6a5c07202
07-25 09:35:48.974 DEBUG [AbstractService a]
🎾 start [ActivityRecognitionService startId: 1, eventCount: 1]
07-25 09:35:48.975 DEBUG [ActivityRecognitionService a] *** wasMoving: true, nowMoving: true, startedMoving: false, justStopped; false
07-25 09:35:48.975 INFO [ActivityRecognitionService a]
╔═════════════════════════════════════════════
║ Motion Transition Result
╠═════════════════════════════════════════════
╟─ 🔴 EXIT: still
╟─ 🎾 ENTER: walking
╚═════════════════════════════════════════════
07-25 09:35:48.976 DEBUG [AbstractService a]
⚙️︎ FINISH [ActivityRecognitionService startId: 1, eventCount: 0, sticky: false]
07-25 09:35:49.181 DEBUG [AbstractService f]
⚙️︎ ActivityRecognitionService.stopSelfResult(1): true
07-25 09:35:49.182 DEBUG [AbstractService onDestroy]
🔴 ActivityRecognitionService stopped
07-25 09:35:49.454 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 23, eventCount: 1]
07-25 09:35:49.455 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284844,57.072238 hAcc=9.485 et=+12d2h4m10s399ms alt=1754.5999755859375 vAcc=2.989721 vel=1.206732 sAcc=0.2321 bear=314.70392 bAcc=45.0]
╟─ Age: 23ms, time: 1721887549431

07-25 09:35:49.455 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 23, eventCount: 0, sticky: true]
07-25 09:35:49.455 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:35:49.456 DEBUG [TSLocationManager a] Median accuracy: 10.116
07-25 09:35:49.456 DEBUG [TSLocationManager c] Odometer: 8304.982
07-25 09:35:49.466 INFO [SQLiteLocationDAO persist]
✅ INSERT: d28ea030-2a6d-4253-aeaf-878147fc97cf
07-25 09:35:54.018 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 24, eventCount: 1]
07-25 09:35:54.018 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284896,57.072215 hAcc=10.052 et=+12d2h4m14s962ms alt=1766.199951171875 vAcc=12.493673 vel=1.2266698 sAcc=0.28693655 bear=345.13712 bAcc=45.0]
╟─ Age: 24ms, time: 1721887553994

07-25 09:35:54.019 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 24, eventCount: 0, sticky: true]
07-25 09:35:54.019 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:35:54.019 DEBUG [TSLocationManager a] Median accuracy: 9.485
07-25 09:35:54.027 INFO [SQLiteLocationDAO persist]
✅ INSERT: cc00161f-2176-4206-8a04-38ada9022308
07-25 09:35:58.551 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 25, eventCount: 1]
07-25 09:35:58.553 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284944,57.072186 hAcc=9.436 et=+12d2h4m19s493ms alt=1765.0999755859375 vAcc=21.627645 vel=1.2507274 sAcc=0.24292997 bear=311.356 bAcc=45.0]
╟─ Age: 27ms, time: 1721887558525

07-25 09:35:58.553 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 25, eventCount: 0, sticky: true]
07-25 09:35:58.554 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:35:58.555 DEBUG [TSLocationManager a] Median accuracy: 10.052
07-25 09:35:58.555 DEBUG [TSLocationManager c] Odometer: 8317.163
07-25 09:35:58.565 INFO [SQLiteLocationDAO persist]
✅ INSERT: 339ef946-c3a8-43b8-ae02-24908310dad5
07-25 09:36:03.524 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 26, eventCount: 1]
07-25 09:36:03.525 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.284982,57.072125 hAcc=9.232 et=+12d2h4m24s475ms alt=1754.5 vAcc=12.991294 vel=1.1971029 sAcc=0.24819848 bear=278.00232 bAcc=45.0]
╟─ Age: 17ms, time: 1721887563507

07-25 09:36:03.525 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 26, eventCount: 0, sticky: true]
07-25 09:36:03.525 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:36:03.525 DEBUG [TSLocationManager a] Median accuracy: 10.052
07-25 09:36:03.533 INFO [SQLiteLocationDAO persist]
✅ INSERT: 8b75dddc-9990-4883-8ea9-62f90092e53e
07-25 09:36:05.619 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: location
07-25 09:36:05.620 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: motionchange
07-25 09:36:05.620 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: activitychange
07-25 09:36:05.620 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: geofence
07-25 09:36:05.620 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: heartbeat
07-25 09:36:05.620 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: http
07-25 09:36:05.620 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: schedule
07-25 09:36:05.620 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: connectivitychange
07-25 09:36:05.620 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: enabledchange
07-25 09:36:05.620 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: providerchange
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: powersavechange
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: notificationaction
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: location
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: motionchange
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: activitychange
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: geofence
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: heartbeat
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: http
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: schedule
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: connectivitychange
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: enabledchange
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: providerchange
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: powersavechange
07-25 09:36:05.621 DEBUG [BackgroundGeolocation removeListener]
✅ removeListener event: notificationaction
07-25 09:36:05.621 DEBUG [LifecycleManager setHeadless]
╔═════════════════════════════════════════════
║ ☯️ HeadlessMode? true
╠═════════════════════════════════════════════

07-25 09:36:05.621 DEBUG [BackgroundGeolocation a]
🔴 Cleared callbacks
07-25 09:36:05.622 INFO [BackgroundGeolocation e]
╔═════════════════════════════════════════════
║ MainActivity was destroyed
╠═════════════════════════════════════════════
╟─ stopOnTerminate: false
╟─ enabled: true

07-25 09:36:08.043 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 27, eventCount: 1]
07-25 09:36:08.044 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.285023,57.072093 hAcc=7.417 et=+12d2h4m28s997ms alt=1754.5 vAcc=14.297314 vel=1.1809188 sAcc=0.2580964 bear=316.40915 bAcc=45.0]
╟─ Age: 15ms, time: 1721887568029

07-25 09:36:08.044 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 27, eventCount: 0, sticky: true]
07-25 09:36:08.044 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:36:08.045 DEBUG [TSLocationManager a] Median accuracy: 9.485
07-25 09:36:08.045 DEBUG [TSLocationManager c] Odometer: 8329.624
07-25 09:36:08.052 DEBUG [HeadlessTask onHeadlessEvent] 💀 [HeadlessTask location]
07-25 09:36:08.053 INFO [SQLiteLocationDAO persist]
✅ INSERT: bcb05610-f640-4ce3-9d0f-10bc28b32ec0
07-25 09:36:12.676 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 28, eventCount: 1]
07-25 09:36:12.677 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.285062,57.072062 hAcc=5.559 et=+12d2h4m33s618ms alt=1754.5 vAcc=14.347316 vel=1.1581885 sAcc=0.23632123 bear=334.40784 bAcc=45.0]
╟─ Age: 26ms, time: 1721887572650

07-25 09:36:12.677 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:36:12.677 DEBUG [TSLocationManager a] Median accuracy: 10.116
07-25 09:36:12.677 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 28, eventCount: 0, sticky: true]
07-25 09:36:12.684 DEBUG [HeadlessTask onHeadlessEvent] 💀 [HeadlessTask location]
07-25 09:36:12.685 INFO [SQLiteLocationDAO persist]
✅ INSERT: f21cf760-d148-4846-9219-62350d77a396
07-25 09:36:17.489 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 29, eventCount: 1]
07-25 09:36:17.490 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.285101,57.072027 hAcc=6.355 et=+12d2h4m38s440ms alt=1754.699951171875 vAcc=4.354051 vel=1.2097181 sAcc=0.24453638 bear=321.70865 bAcc=45.0]
╟─ Age: 17ms, time: 1721887577472

07-25 09:36:17.490 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 29, eventCount: 0, sticky: true]
07-25 09:36:17.490 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:36:17.490 DEBUG [TSLocationManager a] Median accuracy: 10.202
07-25 09:36:17.490 DEBUG [TSLocationManager c] Odometer: 8340.353
07-25 09:36:17.494 DEBUG [HeadlessTask onHeadlessEvent] 💀 [HeadlessTask location]
07-25 09:36:17.494 INFO [SQLiteLocationDAO persist]
✅ INSERT: 0042afcf-d9d9-40e5-8b5f-89fab6168119
07-25 09:36:18.546 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/location
07-25 09:36:18.546 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/motionchange
07-25 09:36:18.546 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/activitychange
07-25 09:36:18.546 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/geofenceschange
07-25 09:36:18.546 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/geofence
07-25 09:36:18.546 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/heartbeat
07-25 09:36:18.546 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/http
07-25 09:36:18.546 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/schedule
07-25 09:36:18.546 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/connectivitychange
07-25 09:36:18.546 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/enabledchange
07-25 09:36:18.546 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/providerchange
07-25 09:36:18.546 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/powersavechange
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/notificationaction
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/authorization
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/location
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/motionchange
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/activitychange
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/geofenceschange
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/geofence
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/heartbeat
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/http
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/schedule
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/connectivitychange
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/enabledchange
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/providerchange
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/powersavechange
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/notificationaction
07-25 09:36:18.547 DEBUG [StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/authorization
07-25 09:36:18.547 DEBUG [BackgroundGeolocation a]
🔴 Cleared callbacks
07-25 09:36:18.565 DEBUG [LifecycleManager onStart] ☯️ onStart
07-25 09:36:18.566 DEBUG [LifecycleManager onResume] ☯️ onResume
07-25 09:36:18.597 DEBUG [StreamHandler onListen] location
07-25 09:36:18.598 DEBUG [StreamHandler onListen] motionchange
07-25 09:36:18.598 DEBUG [StreamHandler onListen] activitychange
07-25 09:36:18.598 DEBUG [StreamHandler onListen] providerchange
07-25 09:36:18.598 DEBUG [StreamHandler onListen] http
07-25 09:36:18.598 DEBUG [StreamHandler onListen] enabledchange
07-25 09:36:18.598 DEBUG [StreamHandler onListen] notificationaction
07-25 09:36:18.601 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [desiredAccuracy, disableStopDetection, distanceFilter, enableHeadless, extras, fastestLocationUpdateInterval, headers, headlessJobService, isMoving, locationUpdateInterval, logLevel, notification, notification.title, params, schedule, startOnBoot, stationaryRadius, stopOnTerminate]
07-25 09:36:18.607 INFO [TSLocationManager requestLocationUpdates]
🎾 Location-services: ON
07-25 09:36:18.608 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1
07-25 09:36:18.609 INFO [TSScheduleManager cancelOneShot]
⏰ Cancel OneShot: MOTION_ACTIVITY_CHECK
07-25 09:36:18.610 DEBUG [LocationAuthorization withBackgroundPermission]
ℹ️ LocationAuthorization: Permission granted
07-25 09:36:18.612 DEBUG [TSGeofenceManager$e run]
╔═════════════════════════════════════════════
║ TSGeofenceManager monitoring 0/0
╠═════════════════════════════════════════════
╚═════════════════════════════════════════════
07-25 09:36:18.614 DEBUG [HttpService startMonitoringConnectivityChanges]
🎾 Start monitoring connectivity changes
07-25 09:36:18.614 DEBUG [DeviceSettings startMonitoringPowerSaveChanges]
🎾 Start monitoring powersave changes
07-25 09:36:18.614 INFO [ActivityRecognitionService start]
🎾 Start motion-activity updates
07-25 09:36:18.615 INFO [HeartbeatService stop]
🔴 Stop heartbeat
07-25 09:36:18.650 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 30, eventCount: 1]
07-25 09:36:18.650 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.285108,57.072018 hAcc=6.697 et=+12d2h4m39s412ms alt=1754.699951171875 vAcc=4.354051 vel=1.1989245 sAcc=0.20063277 bear=319.35147 bAcc=45.0]
╟─ Age: 206ms, time: 1721887578444

07-25 09:36:18.650 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 30, eventCount: 0, sticky: true]
07-25 09:36:18.651 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:36:18.652 DEBUG [TSLocationManager a] Median accuracy: 10.202
07-25 09:36:18.662 INFO [TSLocationManager a]
╔═════════════════════════════════════════════
║ motionchange LocationResult: 5 (217ms old)
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.285108,57.072018 hAcc=6.697 et=+12d2h4m39s412ms alt=1754.699951171875 vAcc=4.354051 vel=1.1989245 sAcc=0.20063277 bear=319.35147 bAcc=45.0], time: 1721887578444

07-25 09:36:18.663 INFO [TSLocationManager onSingleLocationResult]
🔵 Acquired motionchange position, isMoving: false
07-25 09:36:18.663 DEBUG [TSLocationManager a] Median accuracy: 10.202
07-25 09:36:18.665 INFO [SQLiteLocationDAO persist]
✅ INSERT: ff684048-0d4f-4c49-9649-4d186e4437ac
07-25 09:36:18.666 INFO [TSLocationManager d]
🔴 Location-services: OFF
07-25 09:36:18.675 DEBUG [AbstractService a]
🎾 start [TrackingService startId: 31, eventCount: 1]
07-25 09:36:18.676 DEBUG [TrackingService c]
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.285108,57.072018 hAcc=6.697 et=+12d2h4m39s412ms alt=1754.699951171875 vAcc=4.354051 vel=1.1989245 sAcc=0.20063277 bear=319.35147 bAcc=45.0]
╟─ Age: 231ms, time: 1721887578444

07-25 09:36:18.676 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 31, eventCount: 0, sticky: true]
07-25 09:36:18.676 DEBUG [TSLocationManager onLocationResult]
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

07-25 09:36:18.676 DEBUG [TSGeofenceManager startMonitoringStationaryRegion]
🎾 Start monitoring stationary region (radius: 150.0m 30.2851081,57.0720181 hAcc=6.697)
07-25 09:36:18.676 DEBUG [TSLocationManager onLocationResult]
ℹ️ IGNORED: same as last location
07-25 09:36:18.682 DEBUG [AbstractService a]
🎾 motionchange [TrackingService startId: 32, eventCount: 1]
07-25 09:36:18.682 INFO [TrackingService k]
╔═════════════════════════════════════════════
║ TrackingService motionchange: false
╠═════════════════════════════════════════════

07-25 09:36:18.683 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 32, eventCount: 0, sticky: false]
07-25 09:36:18.836 DEBUG [TSLocationManagerActivity a] locationsettings
07-25 09:36:18.836 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1
07-25 09:36:18.846 DEBUG [TSLocationManagerActivity c] eventCount: 0
07-25 09:36:18.886 DEBUG [AbstractService f]
⚙️︎ TrackingService.stopSelfResult(32): true
07-25 09:36:18.886 DEBUG [AbstractService onDestroy]
🔴 TrackingService stopped
07-25 09:36:18.891 DEBUG [TSLocationManagerActivity onDestroy]
07-25 09:36:19.560 WARN [BackgroundGeolocationModule ready]
⚠️ #ready already called. Redirecting to #setConfig
07-25 09:36:19.561 DEBUG [LocationAuthorization withBackgroundPermission]
ℹ️ LocationAuthorization: Permission granted
07-25 09:36:19.561 DEBUG [HttpService startMonitoringConnectivityChanges]
🎾 Start monitoring connectivity changes
07-25 09:36:19.562 DEBUG [DeviceSettings startMonitoringPowerSaveChanges]
🎾 Start monitoring powersave changes
07-25 09:36:19.562 INFO [ActivityRecognitionService start]
🎾 Start motion-activity updates
07-25 09:36:19.562 INFO [HeartbeatService stop]
🔴 Stop heartbeat
07-25 09:36:19.566 INFO [TSLocationManager a]
╔═════════════════════════════════════════════
║ motionchange LocationResult: 6 (1122ms old)
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 30.285108,57.072018 hAcc=6.697 et=+12d2h4m39s412ms alt=1754.699951171875 vAcc=4.354051 vel=1.1989245 sAcc=0.20063277 bear=319.35147 bAcc=45.0], time: 1721887578444

07-25 09:36:19.567 INFO [TSLocationManager onSingleLocationResult]
🔵 Acquired motionchange position, isMoving: false
07-25 09:36:19.567 DEBUG [TSLocationManager a] Median accuracy: 6.697
07-25 09:36:19.571 DEBUG [TSGeofenceManager startMonitoringStationaryRegion]
🎾 Start monitoring stationary region (radius: 150.0m 30.2851081,57.0720181 hAcc=6.697)
07-25 09:36:19.576 DEBUG [AbstractService a]
🎾 motionchange [TrackingService startId: 1, eventCount: 1]
07-25 09:36:19.576 INFO [TrackingService k]
╔═════════════════════════════════════════════
║ TrackingService motionchange: false
╠═════════════════════════════════════════════

07-25 09:36:19.576 DEBUG [AbstractService a]
⚙️︎ FINISH [TrackingService startId: 1, eventCount: 0, sticky: false]
07-25 09:36:19.777 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1
07-25 09:36:19.777 DEBUG [TSLocationManagerActivity a] locationsettings
07-25 09:36:19.785 DEBUG [AbstractService f]
⚙️︎ TrackingService.stopSelfResult(1): true
07-25 09:36:19.785 DEBUG [TSLocationManagerActivity c] eventCount: 0
07-25 09:36:19.799 DEBUG [AbstractService onDestroy]
🔴 TrackingService stopped
07-25 09:36:19.812 DEBUG [TSLocationManagerActivity onDestroy]

I see nothing wrong. Read api docs Config.enableHeadless

07-25 09:36:08.052 DEBUG [HeadlessTask onHeadlessEvent] 💀 [HeadlessTask location]
07-25 09:36:08.053 INFO [SQLiteLocationDAO persist]
✅ INSERT: bcb05610-f640-4ce3-9d0f-10bc28b32ec0

does prints inside headless function inside main.dart should show in logs?
because I think the problem is the headless function is not called and not work
am I right?

And yes I read the Config.enableHeadless
As I said before, and as you can see in my codes, everything is config is exacly like document
and everything work fine when application is on background and foreground
what is not working is when the application closed terminate

Im getting this error while running the app.

E/AndroidRuntime(15144): FATAL EXCEPTION: pool-2-thread-7
E/AndroidRuntime(15144): Process: com.app.abc, PID: 15144
E/AndroidRuntime(15144): java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/~~-vBZnqHBVDN2NBtEj8HeGA==/com.app.abc-7XfLGqZRS1uqOPS--Zjvvw==/base.apk)
E/AndroidRuntime(15144): 	at com.transistorsoft.xms.g.location.FusedLocationProviderClient.removeLocationUpdates(Unknown Source:50)
E/AndroidRuntime(15144): 	at com.transistorsoft.locationmanager.location.TSLocationManager.d(Unknown Source:40)
E/AndroidRuntime(15144): 	at com.transistorsoft.locationmanager.location.TSLocationManager.stopUpdatingLocation(Unknown Source:0)
E/AndroidRuntime(15144): 	at com.transistorsoft.locationmanager.location.TSLocationManager.stop(Unknown Source:0)
E/AndroidRuntime(15144): 	at com.transistorsoft.locationmanager.service.TrackingService.stop(Unknown Source:83)
E/AndroidRuntime(15144): 	at com.transistorsoft.locationmanager.adapter.BackgroundGeolocation.c(Unknown Source:2)
E/AndroidRuntime(15144): 	at com.transistorsoft.locationmanager.adapter.BackgroundGeolocation.$r8$lambda$oSDeWXxQl1jmikdjYQwff60damw(Unknown Source:0)
E/AndroidRuntime(15144): 	at com.transistorsoft.locationmanager.adapter.BackgroundGeolocation$$ExternalSyntheticLambda1.run(Unknown Source:4)
E/AndroidRuntime(15144): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
E/AndroidRuntime(15144): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
E/AndroidRuntime(15144): 	at java.lang.Thread.run(Thread.java:1012)
I/Process (15144): Sending signal. PID: 15144 SIG: 9
Lost connection to device.

my pubspec.yaml

environment:
  sdk: ">=3.1.0 <4.0.0"

dependencies:
  flutter:
    sdk: flutter
  geolocator: ^12.0.0
  url_launcher: ^6.0.10
  http: ^1.2.2
  qr_flutter: ^4.0.0
  protobuf: ^2.0.0
  pin_code_fields: ^8.0.1
  fluttertoast: ^8.0.8
  future_progress_dialog: ^0.2.0
  provider: ^6.0.0
  package_info: ^2.0.2
  device_info: ^2.0.2
  version: ^3.0.2
  get: ^4.3.6
  screenshot: ^3.0.0
  share: ^2.0.4
  path_provider: ^2.0.2
  expansion_tile_card: ^3.0.0
  image_picker: ^1.1.2
  qr_code_scanner: ^1.0.1
  audioplayers: ^6.0.0
  path: ^1.7.0

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.8
  flutter_secure_storage: ^9.2.2
  uuid: ^4.4.2
  flutter_background_geolocation: ^4.5.0
  internet_connection_checker: ^1.0.0+1
  connectivity_plus: ^5.0.2
  flutter_map: ^7.0.2
  amplitude_flutter: ^3.10.0
  event_bus: ^2.0.0
  flutter_jailbreak_detection: ^1.8.0
  rive: ^0.13.9

my android build.gradle

allprojects {
    repositories {
        google()
        mavenCentral()
        maven {
            url "${project(':flutter_background_geolocation').projectDir}/libs"
        }
        maven {
            // [required] background_fetch
            url "${project(':background_fetch').projectDir}/libs"
        }
        maven { url "https://jitpack.io" }
    }
}

rootProject.buildDir = "../build"
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(":app")
}

tasks.register("clean", Delete) {
    delete rootProject.buildDir
}

my app level build.gradle

plugins {
    id "com.android.application"
    id "kotlin-android"
    // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
    id "dev.flutter.flutter-gradle-plugin"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
    flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
    flutterVersionName = '1.0'
}


Project background_geolocation = project(':flutter_background_geolocation')
apply from: "${background_geolocation.projectDir}/background_geolocation.gradle"

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
    keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {

    compileSdk = flutter.compileSdkVersion
    ndkVersion "25.1.8937393"
    
   

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    lintOptions {
        disable 'InvalidPackage'
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        minSdk 24
        targetSdk 34
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        multiDexEnabled true
        manifestPlaceholders = [
                FLUTTER_BG_LICENSE_KEY: keystoreProperties['backgroundGeoLicense'],
        ]
    }

    signingConfigs {
        release {
            keyAlias keystoreProperties['keyAlias']
            keyPassword keystoreProperties['keyPassword']
            storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
            storePassword keystoreProperties['storePassword']
        }
    }

    buildTypes {
        release {
            // TODO: Add your own signing config for the release build.
            // Signing with the debug keys for now, so `flutter run --release` works.
            signingConfig signingConfigs.release
            shrinkResources false
            proguardFiles "${background_geolocation.projectDir}/proguard-rules.pro"
        }
    }
}

flutter {
    source '../..'
}

IncompatibleClassChangeError

Search issues. This has been posted dozens of times before.

Thank you my friend, the issue has fixed when I get logs with logcat, and when I checked logs, I find out the userId is not sending when the application terminated
sorry about the time I gave from you my friend.
wish luck and best.