react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

<app> has used your location X times in the background in the past N days.

Open benjamin-beau opened this issue 1 year ago • 4 comments

Your Environment

  • Plugin version: 4.16.1
  • Platform: iOS
  • OS version: 17+
  • Device manufacturer / model: iPhone SE and other
  • React Native version (react-native -v): 0.72.6
  • Plugin config
{
  reset: false,
  desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_NAVIGATION,
  distanceFilter: 10,
  stopTimeout: 5,
  stationaryRadius: 1,
  stopOnTerminate: false,
  startOnBoot: true,
  foregroundService: true,
  enableHeadless: true,
  preventSuspend: true,
  showsBackgroundLocationIndicator: true,
  locationAuthorizationRequest: "Always",
  locationAuthorizationAlert: {
    titleWhenNotEnabled: "La géolocalisation en arrière plan n'est pas activée",
    titleWhenOff: "La géolocalisation est désactivée",
    instructions:
      "Pour garantir un bon enregistrement, il faut choisir '{locationAuthorizationRequest}' dans tes paramètres de géolocalisation.",
    settingsButton: "Paramètres",
    cancelButton: "Annuler",
  },
  backgroundPermissionRationale: {
    title:
      "Autoriser {applicationName} à accéder à la localisation de cet appareil en arrière-plan ?",
    message:
      "Afin de suivre votre activité en arrière-plan, veuillez activer l'autorisation de localisation {backgroundPermissionOptionLabel}.",
    positiveAction: "Changer pour {backgroundPermissionOptionLabel}",
    negativeAction: "Annuler",
  },
  notification: {
    channelName: "Enregistrement en cours",
    title: "Enregistrement en cours",
    text: "Surlo est actuellement en train d'enregistrer votre progression. Appuyer pour revenir à l'application.",
    smallIcon: "mipmap/ic_notification",
  },
  debug: isAndroid && Config.ENV === "staging",
  logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
  // HTTP & Persistence
  method: "POST",
  httpRootProperty: "trackings",
  locationTemplate:
    "{" +
    '"lat": <%= latitude %>,' +
    '"lng": <%= longitude %>,' +
    '"bearing": 1,' +
    '"trackTime": "<%= timestamp %>",' +
    '"specifics": {' +
    '"heading": <%= heading %>,' +
    '"speed":<%= speed %>,' +
    '"accuracy":<%= accuracy %>,' +
    '"event":"<%= event %>",' +
    '"activity_type":"<%= activity.type %>",' +
    '"activity_confidence":<%= activity.confidence %>,' +
    '"battery_level":<%= battery.level %>,' +
    '"battery_is_charging":<%= battery.is_charging %>,' +
    '"mock":<%= mock %>,' +
    '"is_moving":<%= is_moving %>,' +
    `"os":"${isAndroid ? "android" : "ios"}",` +
    `"osVersion":"${DeviceInfo.getSystemVersion()}",` +
    `"brand":"${DeviceInfo.getBrand()}",` +
    `"device":"${DeviceInfo.getDeviceId()}",` +
    `"appVersion":"${getVersion()}.${getBuildNumber()}"` +
    (__DEV__ ? ',"emulated" : true' : "") +
    "}" +
    "}",
  url: `${Config.API_URL}api/surlo_trackings/multiple`,
  autoSync: true,
  autoSyncThreshold: 5,
  batchSync: true,
  maxBatchSize: 100,
  maxDaysToPersist: 14,
};

Expected Behavior

When the plugin is off it should not periodically fetch user's location.

Actual Behavior

We observed this message from iOS that clearly shows that the plugin has been recording some location along a car trip however the app (and thus the plugin) was not actively tracking. BackgroundGeolocation.start()has not been called at this time. 78AAAC0C-186A-45E4-B717-E33C95C50333 (1)

The green part is actual tracking while the red part is unwanted background tracking. 78AAAC0C-186A-45E4-B717-E33C95C50333 (1) copy

There are multiple records of TSLocationManager locationManager:didVisit:. What does it mean and what does it do ?

Context

Track user location activities on sailing boat (similar to running app). User manually starts and stop the activity (and thus the plugin). We are not using geofencing.

Debug logs

Logs

2024-03-30 11:57:47.070 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 11:58:05.138 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 11:58:05.139 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.204490, -1.458810

2024-03-30 11:58:05.139 🔵-[TSLocationManager locationManager:didVisit:]   acy: 19.830246

2024-03-30 11:58:05.139 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 07:15:44 +0000

2024-03-30 11:58:05.139 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-30 10:57:07 +0000

2024-03-30 12:03:02.062 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 12:03:02.062 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 12:10:42.800 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 12:10:42.800 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 12:17:29.414 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 12:17:29.414 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 12:33:19.224 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 12:33:19.224 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 12:33:19.269 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 12:33:19.269 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.240597, -1.557388

2024-03-30 12:33:19.269 🔵-[TSLocationManager locationManager:didVisit:]   acy: 134.219637

2024-03-30 12:33:19.269 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 11:17:29 +0000

2024-03-30 12:33:19.269 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-30 12:39:43.254 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 12:39:43.254 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 12:39:43.292 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 12:39:43.292 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.240715, -1.556605

2024-03-30 12:39:43.292 🔵-[TSLocationManager locationManager:didVisit:]   acy: 107.713750

2024-03-30 12:39:43.292 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 11:17:29 +0000

2024-03-30 12:39:43.292 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-30 11:34:51 +0000

2024-03-30 12:42:14.790 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 12:42:14.863 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 12:42:14.863 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.244028, -1.560932

2024-03-30 12:42:14.863 🔵-[TSLocationManager locationManager:didVisit:]   acy: 55.333333

2024-03-30 12:42:14.863 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 11:37:49 +0000

2024-03-30 12:42:14.863 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-30 12:49:36.061 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 12:49:36.061 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 12:57:21.395 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 13:06:29.021 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 13:29:41.128 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 13:29:41.128 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 13:29:58.523 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 13:29:58.523 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.244240, -1.561141

2024-03-30 13:29:58.523 🔵-[TSLocationManager locationManager:didVisit:]   acy: 64.184618

2024-03-30 13:29:58.523 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 11:37:49 +0000

2024-03-30 13:29:58.523 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-30 12:23:40 +0000

2024-03-30 13:34:55.292 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 13:34:55.292 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 13:50:35.180 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 13:50:35.180 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 13:50:35.237 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 13:50:35.237 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.229115, -1.541645

2024-03-30 13:50:35.237 🔵-[TSLocationManager locationManager:didVisit:]   acy: 76.080742

2024-03-30 13:50:35.237 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 12:34:35 +0000

2024-03-30 13:50:35.237 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-30 15:46:47.811 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 15:46:47.811 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 15:46:47.827 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 15:46:47.827 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.228903, -1.541548

2024-03-30 15:46:47.827 🔵-[TSLocationManager locationManager:didVisit:]   acy: 54.340937

2024-03-30 15:46:47.827 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 12:34:35 +0000

2024-03-30 15:46:47.827 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-30 14:43:12 +0000

2024-03-30 15:52:00.535 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 15:52:00.535 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 15:57:13.097 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 15:57:13.097 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 16:02:42.636 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 16:02:42.636 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 16:07:44.044 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 16:07:44.044 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 16:11:26.240 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 16:11:26.240 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 16:11:26.302 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 16:11:26.302 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.204908, -1.363460

2024-03-30 16:11:26.302 🔵-[TSLocationManager locationManager:didVisit:]   acy: 134.371501

2024-03-30 16:11:26.302 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 15:06:50 +0000

2024-03-30 16:11:26.302 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-30 16:23:40.017 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 16:23:40.017 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 16:24:04.874 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 16:24:04.874 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.204636, -1.362809

2024-03-30 16:24:04.874 🔵-[TSLocationManager locationManager:didVisit:]   acy: 76.266704

2024-03-30 16:24:04.874 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 15:06:50 +0000

2024-03-30 16:24:04.874 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-30 15:22:51 +0000

2024-03-30 16:29:35.467 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 16:29:35.467 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 16:29:35.500 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 16:29:35.500 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.205766, -1.363697

2024-03-30 16:29:35.500 🔵-[TSLocationManager locationManager:didVisit:]   acy: 37.000000

2024-03-30 16:29:35.500 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 15:23:41 +0000

2024-03-30 16:29:35.500 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-30 16:35:56.354 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 16:35:56.354 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 16:35:56.369 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 16:35:56.369 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.204708, -1.363051

2024-03-30 16:35:56.369 🔵-[TSLocationManager locationManager:didVisit:]   acy: 35.022658

2024-03-30 16:35:56.369 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 15:30:22 +0000

2024-03-30 16:35:56.369 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-30 17:06:58.957 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 17:06:58.958 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 17:06:59.002 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 17:06:59.002 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.204625, -1.363429

2024-03-30 17:06:59.002 🔵-[TSLocationManager locationManager:didVisit:]   acy: 86.162541

2024-03-30 17:06:59.002 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 15:30:22 +0000

2024-03-30 17:06:59.002 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-30 16:03:19 +0000

2024-03-30 17:07:05.777 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 17:19:12.850 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 17:19:12.850 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 17:19:12.881 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 17:19:12.881 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.205093, -1.367662

2024-03-30 17:19:12.881 🔵-[TSLocationManager locationManager:didVisit:]   acy: 98.447011

2024-03-30 17:19:12.881 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 16:03:28 +0000

2024-03-30 17:19:12.881 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-30 18:05:42.515 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 18:05:42.515 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 18:05:42.548 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 18:05:42.548 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.205154, -1.367491

2024-03-30 18:05:42.548 🔵-[TSLocationManager locationManager:didVisit:]   acy: 74.338346

2024-03-30 18:05:42.548 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 16:03:28 +0000

2024-03-30 18:05:42.548 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-30 17:00:31 +0000

2024-03-30 18:05:50.759 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 18:05:50.759 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.205437, -1.362695

2024-03-30 18:05:50.759 🔵-[TSLocationManager locationManager:didVisit:]   acy: 59.666667

2024-03-30 18:05:50.759 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 17:00:38 +0000

2024-03-30 18:05:50.759 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-30 18:05:53.712 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 18:05:53.712 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.205437, -1.362695

2024-03-30 18:05:53.712 🔵-[TSLocationManager locationManager:didVisit:]   acy: 59.666667

2024-03-30 18:05:53.712 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 17:00:38 +0000

2024-03-30 18:05:53.712 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-30 18:10:38.129 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 18:10:41.027 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 18:10:41.027 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.205173, -1.363037

2024-03-30 18:10:41.027 🔵-[TSLocationManager locationManager:didVisit:]   acy: 103.843076

2024-03-30 18:10:41.027 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 17:00:38 +0000

2024-03-30 18:10:41.027 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-30 17:10:11 +0000

2024-03-30 18:17:00.867 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 18:17:00.868 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 18:22:34.787 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 18:22:34.787 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 18:36:26.481 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 18:36:26.481 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-30 18:36:26.486 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 18:36:26.486 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.192028, -1.427180

2024-03-30 18:36:26.486 🔵-[TSLocationManager locationManager:didVisit:]   acy: 114.433757

2024-03-30 18:36:26.486 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 17:19:20 +0000

2024-03-30 18:36:26.486 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-30 18:46:47.390 ℹ️-[TSDBLogger db_save] Log committed

2024-03-30 18:46:47.430 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-30 18:46:47.430 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.192036, -1.427595

2024-03-30 18:46:47.430 🔵-[TSLocationManager locationManager:didVisit:]   acy: 112.104551

2024-03-30 18:46:47.430 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 17:19:20 +0000

2024-03-30 18:46:47.430 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-30 17:46:18 +0000

2024-03-30 18:47:25.047 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 09:50:53.150 ℹ️-[TSDBLogger db_delete] maxAge: 259200

2024-03-31 09:50:53.155 ℹ️-[TSLocationManager init] 
╔═════════════════════════════════════════════
║ TSLocationManager (build 388)
╠══════════════════════════════════════════════
{
    activityRecognitionInterval = 10000;
    activityType = 1;
    authorization =     {
        accessToken = "eyJ0e<redacted>";
        expires = 86400;
        refreshHeaders =         {
            Authorization = "Bearer {accessToken}";
        };
        refreshPayload =         {
            "refresh_token" = "{refreshToken}";
        };
        refreshToken = "5f254<redacted>";
        refreshUrl = "https://staging.backend.surlo.app/token/refresh";
        strategy = JWT;
    };
    autoSync = 1;
    autoSyncThreshold = 0;
    batchSync = 1;
    debug = 0;
    desiredAccuracy = "-2";
    desiredOdometerAccuracy = 100;
    didDeviceReboot = 0;
    didLaunchInBackground = 0;
    didRequestUpgradeLocationAuthorization = 1;
    disableAutoSyncOnCellular = 0;
    disableElasticity = 0;
    disableLocationAuthorizationAlert = 0;
    disableMotionActivityUpdates = 1;
    disableStopDetection = 1;
    distanceFilter = 10;
    elasticityMultiplier = 1;
    enableTimestampMeta = 0;
    enabled = 0;
    extras =     {
        activity = "api/surlo_activities/1000924";
    };
    geofenceInitialTriggerEntry = 1;
    geofenceProximityRadius = 2000;
    geofenceTemplate = "";
    headers =     {
    };
    heartbeatInterval = 60;
    httpRootProperty = trackings;
    httpTimeout = 60000;
    iOSHasWarnedLocationServicesOff = 0;
    isFirstBoot = 0;
    isMoving = 0;
    lastLocationAuthorizationStatus = 3;
    locationAuthorizationAlert =     {
        cancelButton = Annuler;
        instructions = "Pour garantir un bon enregistrement, il faut choisir '{locationAuthorizationRequest}' dans tes param\U00e8tres de g\U00e9olocalisation.";
        settingsButton = "Param\U00e8tres";
        titleWhenNotEnabled = "La g\U00e9olocalisation en arri\U00e8re plan n'est pas activ\U00e9e";
        titleWhenOff = "La g\U00e9olocalisation est d\U00e9sactiv\U00e9e";
    };
    locationAuthorizationRequest = Always;
    locationTemplate = "{\"lat\": <%= latitude %>,\"lng\": <%= longitude %>,\"bearing\": 1,\"trackTime\": \"<%= timestamp %>\",\"specifics\": {\"heading\": <%= heading %>,\"speed\":<%= speed %>,\"accuracy\":<%= accuracy %>,\"event\":\"<%= event %>\",\"activity_type\":\"<%= activity.type %>\",\"activity_confidence\":<%= activity.confidence %>,\"battery_level\":<%= battery.level %>,\"battery_is_charging\":<%= battery.is_charging %>,\"mock\":<%= mock %>,\"is_moving\":<%= is_moving %>,\"os\":\"ios\",\"osVersion\":\"15.4.1\",\"brand\":\"Apple\",\"device\":\"iPhone12,8\",\"appVersion\":\"2.2.46.139\"}}";
    locationTimeout = 60;
    locationsOrderDirection = ASC;
    logLevel = 5;
    logMaxDays = 3;
    maxBatchSize = 100;
    maxDaysToPersist = 14;
    maxRecordsToPersist = "-1";
    method = POST;
    minimumActivityRecognitionConfidence = 70;
    odometer = "46463.11318188864";
    params =     {
    };
    pausesLocationUpdatesAutomatically = 0;
    persistMode = 2;
    preventSuspend = 1;
    schedule =     (
    );
    schedulerEnabled = 0;
    showsBackgroundLocationIndicator = 1;
    startOnBoot = 1;
    stationaryRadius = 25;
    stopAfterElapsedMinutes = "-1";
    stopDetectionDelay = 0;
    stopOnStationary = 0;
    stopOnTerminate = 0;
    stopTimeout = 5;
    trackingMode = 1;
    url = "https://staging.backend.surlo.app/api/surlo_trackings/multiple";
    useSignificantChangesOnly = 0;
}

2024-03-31 09:50:53.160 ℹ️-[GeofenceDAO init] CREATE TABLE IF NOT EXISTS geofences (id INTEGER PRIMARY KEY AUTOINCREMENT, identifier TEXT NOT NULL UNIQUE, latitude DOUBLE NOT NULL, sin_latitude DOUBLE NOT NULL, cos_latitude DOUBLE NOT NULL, longitude DOUBLE NOT NULL, sin_longitude DOUBLE NOT NULL, cos_longitude DOUBLE NOT NULL, radius DOUBLE NOT NULL, notifyOnEntry BOOLEAN NOT NULL DEFAULT 0, notifyOnExit BOOLEAN NOT NULL DEFAULT 0, notifyOnDwell BOOLEAN NOT NULL DEFAULT 0, loiteringDelay DOUBLE NOT NULL DEFAULT 0, extras TEXT, vertices TEXT)

2024-03-31 09:50:53.161 ℹ️-[GeofenceDAO init] CREATE index IF NOT EXISTS identifier ON geofences (identifier);CREATE index IF NOT EXISTS latitude ON geofences (latitude);CREATE index IF NOT EXISTS longitude ON geofences (longitude);CREATE index IF NOT EXISTS sin_latitude ON geofences (sin_latitude);CREATE index IF NOT EXISTS cos_latitude ON geofences (cos_latitude);CREATE index IF NOT EXISTS sin_longitude ON geofences (sin_longitude);CREATE index IF NOT EXISTS cos_longitude ON geofences (cos_longitude);

2024-03-31 09:50:53.200 🔵-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 3

2024-03-31 09:50:53.207 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 09:50:53.207 🔵-[PolygonGeofencingService locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 09:50:53.207 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 09:50:53.207 🔵-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 09:50:53.207 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 09:50:54.992 ℹ️-[TSConfig persist] 

2024-03-31 09:50:55.433 ℹ️-[TSConfig persist] 

2024-03-31 09:50:55.904 ℹ️-[TSConfig persist] 

2024-03-31 09:50:56.342 ℹ️-[TSConfig persist] 

2024-03-31 09:50:56.774 ℹ️-[TSConfig persist] 

2024-03-31 09:51:54.178 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 09:52:54.835 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 09:53:54.926 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 09:54:54.997 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 09:55:54.165 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 09:55:55.023 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 09:58:39.999 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 11:10:51.385 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 11:10:51.385 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 13:01:06.785 ℹ️-[TSDBLogger db_delete] maxAge: 259200

2024-03-31 13:01:06.786 ℹ️-[TSLocationManager init] 
╔═════════════════════════════════════════════
║ TSLocationManager (build 388)
╠══════════════════════════════════════════════
{
    activityRecognitionInterval = 10000;
    activityType = 1;
    authorization =     {
        accessToken = "eyJ0e<redacted>";
        expires = 86400;
        refreshHeaders =         {
            Authorization = "Bearer {accessToken}";
        };
        refreshPayload =         {
            "refresh_token" = "{refreshToken}";
        };
        refreshToken = "5f254<redacted>";
        refreshUrl = "https://staging.backend.surlo.app/token/refresh";
        strategy = JWT;
    };
    autoSync = 1;
    autoSyncThreshold = 0;
    batchSync = 1;
    debug = 0;
    desiredAccuracy = "-2";
    desiredOdometerAccuracy = 100;
    didDeviceReboot = 0;
    didLaunchInBackground = 0;
    didRequestUpgradeLocationAuthorization = 1;
    disableAutoSyncOnCellular = 0;
    disableElasticity = 0;
    disableLocationAuthorizationAlert = 0;
    disableMotionActivityUpdates = 1;
    disableStopDetection = 1;
    distanceFilter = 10;
    elasticityMultiplier = 1;
    enableTimestampMeta = 0;
    enabled = 0;
    extras =     {
        activity = "api/surlo_activities/1000924";
    };
    geofenceInitialTriggerEntry = 1;
    geofenceProximityRadius = 2000;
    geofenceTemplate = "";
    headers =     {
    };
    heartbeatInterval = 60;
    httpRootProperty = trackings;
    httpTimeout = 60000;
    iOSHasWarnedLocationServicesOff = 0;
    isFirstBoot = 0;
    isMoving = 0;
    lastLocationAuthorizationStatus = 3;
    locationAuthorizationAlert =     {
        cancelButton = Annuler;
        instructions = "Pour garantir un bon enregistrement, il faut choisir '{locationAuthorizationRequest}' dans tes param\U00e8tres de g\U00e9olocalisation.";
        settingsButton = "Param\U00e8tres";
        titleWhenNotEnabled = "La g\U00e9olocalisation en arri\U00e8re plan n'est pas activ\U00e9e";
        titleWhenOff = "La g\U00e9olocalisation est d\U00e9sactiv\U00e9e";
    };
    locationAuthorizationRequest = Always;
    locationTemplate = "{\"lat\": <%= latitude %>,\"lng\": <%= longitude %>,\"bearing\": 1,\"trackTime\": \"<%= timestamp %>\",\"specifics\": {\"heading\": <%= heading %>,\"speed\":<%= speed %>,\"accuracy\":<%= accuracy %>,\"event\":\"<%= event %>\",\"activity_type\":\"<%= activity.type %>\",\"activity_confidence\":<%= activity.confidence %>,\"battery_level\":<%= battery.level %>,\"battery_is_charging\":<%= battery.is_charging %>,\"mock\":<%= mock %>,\"is_moving\":<%= is_moving %>,\"os\":\"ios\",\"osVersion\":\"15.4.1\",\"brand\":\"Apple\",\"device\":\"iPhone12,8\",\"appVersion\":\"2.2.46.139\"}}";
    locationTimeout = 60;
    locationsOrderDirection = ASC;
    logLevel = 5;
    logMaxDays = 3;
    maxBatchSize = 100;
    maxDaysToPersist = 14;
    maxRecordsToPersist = "-1";
    method = POST;
    minimumActivityRecognitionConfidence = 70;
    odometer = "46463.11318188864";
    params =     {
    };
    pausesLocationUpdatesAutomatically = 0;
    persistMode = 2;
    preventSuspend = 1;
    schedule =     (
    );
    schedulerEnabled = 0;
    showsBackgroundLocationIndicator = 1;
    startOnBoot = 1;
    stationaryRadius = 25;
    stopAfterElapsedMinutes = "-1";
    stopDetectionDelay = 0;
    stopOnStationary = 0;
    stopOnTerminate = 0;
    stopTimeout = 5;
    trackingMode = 1;
    url = "https://staging.backend.surlo.app/api/surlo_trackings/multiple";
    useSignificantChangesOnly = 0;
}

2024-03-31 13:01:06.788 ℹ️-[GeofenceDAO init] CREATE TABLE IF NOT EXISTS geofences (id INTEGER PRIMARY KEY AUTOINCREMENT, identifier TEXT NOT NULL UNIQUE, latitude DOUBLE NOT NULL, sin_latitude DOUBLE NOT NULL, cos_latitude DOUBLE NOT NULL, longitude DOUBLE NOT NULL, sin_longitude DOUBLE NOT NULL, cos_longitude DOUBLE NOT NULL, radius DOUBLE NOT NULL, notifyOnEntry BOOLEAN NOT NULL DEFAULT 0, notifyOnExit BOOLEAN NOT NULL DEFAULT 0, notifyOnDwell BOOLEAN NOT NULL DEFAULT 0, loiteringDelay DOUBLE NOT NULL DEFAULT 0, extras TEXT, vertices TEXT)

2024-03-31 13:01:06.788 ℹ️-[GeofenceDAO init] CREATE index IF NOT EXISTS identifier ON geofences (identifier);CREATE index IF NOT EXISTS latitude ON geofences (latitude);CREATE index IF NOT EXISTS longitude ON geofences (longitude);CREATE index IF NOT EXISTS sin_latitude ON geofences (sin_latitude);CREATE index IF NOT EXISTS cos_latitude ON geofences (cos_latitude);CREATE index IF NOT EXISTS sin_longitude ON geofences (sin_longitude);CREATE index IF NOT EXISTS cos_longitude ON geofences (cos_longitude);

2024-03-31 13:01:06.822 🔵-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 3

2024-03-31 13:01:06.826 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 13:01:06.826 🔵-[PolygonGeofencingService locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 13:01:06.826 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 13:01:06.826 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 13:01:06.826 🔵-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 13:01:07.577 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-31 13:01:07.577 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.204522, -1.458787

2024-03-31 13:01:07.577 🔵-[TSLocationManager locationManager:didVisit:]   acy: 13.152665

2024-03-31 13:01:07.577 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-30 17:50:07 +0000

2024-03-31 13:01:07.577 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-31 11:00:38 +0000

2024-03-31 13:06:22.060 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 13:06:22.061 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 13:06:47.308 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-31 13:06:47.308 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.220607, -1.458536

2024-03-31 13:06:47.308 🔵-[TSLocationManager locationManager:didVisit:]   acy: 200.000000

2024-03-31 13:06:47.308 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-31 11:02:22 +0000

2024-03-31 13:06:47.308 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-31 13:25:11.562 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 13:25:11.562 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 13:25:11.583 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-31 13:25:11.583 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.220344, -1.458466

2024-03-31 13:25:11.583 🔵-[TSLocationManager locationManager:didVisit:]   acy: 81.506943

2024-03-31 13:25:11.583 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-31 11:02:22 +0000

2024-03-31 13:25:11.583 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-31 11:24:47 +0000

2024-03-31 13:30:14.011 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 13:30:14.011 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 13:35:14.024 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 13:35:14.024 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 13:40:14.114 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 13:40:14.114 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 13:49:56.391 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 13:49:56.391 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 13:59:25.424 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 13:59:25.424 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 14:21:21.351 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 14:21:21.351 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 14:21:21.382 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-31 14:21:21.382 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.188160, -1.323572

2024-03-31 14:21:21.382 🔵-[TSLocationManager locationManager:didVisit:]   acy: 108.004808

2024-03-31 14:21:21.382 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-31 11:59:25 +0000

2024-03-31 14:21:21.382 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-31 16:21:37.624 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 16:21:37.624 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 16:35:23.265 ℹ️-[TSDBLogger db_delete] maxAge: 259200

2024-03-31 16:35:23.268 ℹ️-[TSLocationManager init] 
╔═════════════════════════════════════════════
║ TSLocationManager (build 388)
╠══════════════════════════════════════════════
{
    activityRecognitionInterval = 10000;
    activityType = 1;
    authorization =     {
        accessToken = "eyJ0e<redacted>";
        expires = 86400;
        refreshHeaders =         {
            Authorization = "Bearer {accessToken}";
        };
        refreshPayload =         {
            "refresh_token" = "{refreshToken}";
        };
        refreshToken = "5f254<redacted>";
        refreshUrl = "https://staging.backend.surlo.app/token/refresh";
        strategy = JWT;
    };
    autoSync = 1;
    autoSyncThreshold = 0;
    batchSync = 1;
    debug = 0;
    desiredAccuracy = "-2";
    desiredOdometerAccuracy = 100;
    didDeviceReboot = 0;
    didLaunchInBackground = 0;
    didRequestUpgradeLocationAuthorization = 1;
    disableAutoSyncOnCellular = 0;
    disableElasticity = 0;
    disableLocationAuthorizationAlert = 0;
    disableMotionActivityUpdates = 1;
    disableStopDetection = 1;
    distanceFilter = 10;
    elasticityMultiplier = 1;
    enableTimestampMeta = 0;
    enabled = 0;
    extras =     {
        activity = "api/surlo_activities/1000924";
    };
    geofenceInitialTriggerEntry = 1;
    geofenceProximityRadius = 2000;
    geofenceTemplate = "";
    headers =     {
    };
    heartbeatInterval = 60;
    httpRootProperty = trackings;
    httpTimeout = 60000;
    iOSHasWarnedLocationServicesOff = 0;
    isFirstBoot = 0;
    isMoving = 0;
    lastLocationAuthorizationStatus = 3;
    locationAuthorizationAlert =     {
        cancelButton = Annuler;
        instructions = "Pour garantir un bon enregistrement, il faut choisir '{locationAuthorizationRequest}' dans tes param\U00e8tres de g\U00e9olocalisation.";
        settingsButton = "Param\U00e8tres";
        titleWhenNotEnabled = "La g\U00e9olocalisation en arri\U00e8re plan n'est pas activ\U00e9e";
        titleWhenOff = "La g\U00e9olocalisation est d\U00e9sactiv\U00e9e";
    };
    locationAuthorizationRequest = Always;
    locationTemplate = "{\"lat\": <%= latitude %>,\"lng\": <%= longitude %>,\"bearing\": 1,\"trackTime\": \"<%= timestamp %>\",\"specifics\": {\"heading\": <%= heading %>,\"speed\":<%= speed %>,\"accuracy\":<%= accuracy %>,\"event\":\"<%= event %>\",\"activity_type\":\"<%= activity.type %>\",\"activity_confidence\":<%= activity.confidence %>,\"battery_level\":<%= battery.level %>,\"battery_is_charging\":<%= battery.is_charging %>,\"mock\":<%= mock %>,\"is_moving\":<%= is_moving %>,\"os\":\"ios\",\"osVersion\":\"15.4.1\",\"brand\":\"Apple\",\"device\":\"iPhone12,8\",\"appVersion\":\"2.2.46.139\"}}";
    locationTimeout = 60;
    locationsOrderDirection = ASC;
    logLevel = 5;
    logMaxDays = 3;
    maxBatchSize = 100;
    maxDaysToPersist = 14;
    maxRecordsToPersist = "-1";
    method = POST;
    minimumActivityRecognitionConfidence = 70;
    odometer = "46463.11318188864";
    params =     {
    };
    pausesLocationUpdatesAutomatically = 0;
    persistMode = 2;
    preventSuspend = 1;
    schedule =     (
    );
    schedulerEnabled = 0;
    showsBackgroundLocationIndicator = 1;
    startOnBoot = 1;
    stationaryRadius = 25;
    stopAfterElapsedMinutes = "-1";
    stopDetectionDelay = 0;
    stopOnStationary = 0;
    stopOnTerminate = 0;
    stopTimeout = 5;
    trackingMode = 1;
    url = "https://staging.backend.surlo.app/api/surlo_trackings/multiple";
    useSignificantChangesOnly = 0;
}

2024-03-31 16:35:23.270 ℹ️-[GeofenceDAO init] CREATE TABLE IF NOT EXISTS geofences (id INTEGER PRIMARY KEY AUTOINCREMENT, identifier TEXT NOT NULL UNIQUE, latitude DOUBLE NOT NULL, sin_latitude DOUBLE NOT NULL, cos_latitude DOUBLE NOT NULL, longitude DOUBLE NOT NULL, sin_longitude DOUBLE NOT NULL, cos_longitude DOUBLE NOT NULL, radius DOUBLE NOT NULL, notifyOnEntry BOOLEAN NOT NULL DEFAULT 0, notifyOnExit BOOLEAN NOT NULL DEFAULT 0, notifyOnDwell BOOLEAN NOT NULL DEFAULT 0, loiteringDelay DOUBLE NOT NULL DEFAULT 0, extras TEXT, vertices TEXT)

2024-03-31 16:35:23.270 ℹ️-[GeofenceDAO init] CREATE index IF NOT EXISTS identifier ON geofences (identifier);CREATE index IF NOT EXISTS latitude ON geofences (latitude);CREATE index IF NOT EXISTS longitude ON geofences (longitude);CREATE index IF NOT EXISTS sin_latitude ON geofences (sin_latitude);CREATE index IF NOT EXISTS cos_latitude ON geofences (cos_latitude);CREATE index IF NOT EXISTS sin_longitude ON geofences (sin_longitude);CREATE index IF NOT EXISTS cos_longitude ON geofences (cos_longitude);

2024-03-31 16:35:23.307 🔵-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 3

2024-03-31 16:35:23.308 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-31 16:35:23.308 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.189574, -1.326869

2024-03-31 16:35:23.308 🔵-[TSLocationManager locationManager:didVisit:]   acy: 41.843608

2024-03-31 16:35:23.309 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-31 14:24:36 +0000

2024-03-31 16:35:23.309 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-31 16:35:23.309 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 16:35:23.309 🔵-[PolygonGeofencingService locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 16:35:23.309 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 16:35:23.309 🔵-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 16:35:23.309 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-03-31 17:10:15.674 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 17:10:15.676 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 17:10:15.689 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-31 17:10:15.690 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.189854, -1.327377

2024-03-31 17:10:15.690 🔵-[TSLocationManager locationManager:didVisit:]   acy: 77.329532

2024-03-31 17:10:15.690 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-31 14:24:36 +0000

2024-03-31 17:10:15.690 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-31 15:03:16 +0000

2024-03-31 17:10:15.717 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-31 17:10:15.717 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.190964, -1.330328

2024-03-31 17:10:15.717 🔵-[TSLocationManager locationManager:didVisit:]   acy: 74.000000

2024-03-31 17:10:15.717 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-31 15:03:25 +0000

2024-03-31 17:10:15.717 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-31 17:11:01.199 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-31 17:11:01.199 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.190837, -1.333723

2024-03-31 17:11:01.199 🔵-[TSLocationManager locationManager:didVisit:]   acy: 12.053695

2024-03-31 17:11:01.200 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-31 15:03:25 +0000

2024-03-31 17:11:01.200 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-03-31 15:10:35 +0000

2024-03-31 17:15:35.361 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 17:15:35.373 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 17:20:49.867 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 17:20:49.867 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 17:29:47.837 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 17:30:28.430 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-03-31 17:30:28.430 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.204518, -1.458807

2024-03-31 17:30:28.430 🔵-[TSLocationManager locationManager:didVisit:]   acy: 35.000000

2024-03-31 17:30:28.430 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-31 15:25:29 +0000

2024-03-31 17:30:28.430 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-03-31 17:35:12.877 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 17:35:12.877 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 17:39:52.334 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 17:39:52.334 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 18:45:06.790 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 18:45:06.790 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 19:00:11.029 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 19:00:11.029 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 19:15:12.054 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 19:15:12.054 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-03-31 19:45:09.761 ℹ️-[TSDBLogger db_save] Log committed

2024-03-31 19:45:09.761 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-01 12:30:58.048 ℹ️-[TSDBLogger db_delete] maxAge: 259200

2024-04-01 12:30:58.050 ℹ️-[TSLocationManager init] 
╔═════════════════════════════════════════════
║ TSLocationManager (build 388)
╠══════════════════════════════════════════════
{
    activityRecognitionInterval = 10000;
    activityType = 1;
    authorization =     {
        accessToken = "eyJ0e<redacted>";
        expires = 86400;
        refreshHeaders =         {
            Authorization = "Bearer {accessToken}";
        };
        refreshPayload =         {
            "refresh_token" = "{refreshToken}";
        };
        refreshToken = "5f254<redacted>";
        refreshUrl = "https://staging.backend.surlo.app/token/refresh";
        strategy = JWT;
    };
    autoSync = 1;
    autoSyncThreshold = 0;
    batchSync = 1;
    debug = 0;
    desiredAccuracy = "-2";
    desiredOdometerAccuracy = 100;
    didDeviceReboot = 0;
    didLaunchInBackground = 0;
    didRequestUpgradeLocationAuthorization = 1;
    disableAutoSyncOnCellular = 0;
    disableElasticity = 0;
    disableLocationAuthorizationAlert = 0;
    disableMotionActivityUpdates = 1;
    disableStopDetection = 1;
    distanceFilter = 10;
    elasticityMultiplier = 1;
    enableTimestampMeta = 0;
    enabled = 0;
    extras =     {
        activity = "api/surlo_activities/1000924";
    };
    geofenceInitialTriggerEntry = 1;
    geofenceProximityRadius = 2000;
    geofenceTemplate = "";
    headers =     {
    };
    heartbeatInterval = 60;
    httpRootProperty = trackings;
    httpTimeout = 60000;
    iOSHasWarnedLocationServicesOff = 0;
    isFirstBoot = 0;
    isMoving = 0;
    lastLocationAuthorizationStatus = 3;
    locationAuthorizationAlert =     {
        cancelButton = Annuler;
        instructions = "Pour garantir un bon enregistrement, il faut choisir '{locationAuthorizationRequest}' dans tes param\U00e8tres de g\U00e9olocalisation.";
        settingsButton = "Param\U00e8tres";
        titleWhenNotEnabled = "La g\U00e9olocalisation en arri\U00e8re plan n'est pas activ\U00e9e";
        titleWhenOff = "La g\U00e9olocalisation est d\U00e9sactiv\U00e9e";
    };
    locationAuthorizationRequest = Always;
    locationTemplate = "{\"lat\": <%= latitude %>,\"lng\": <%= longitude %>,\"bearing\": 1,\"trackTime\": \"<%= timestamp %>\",\"specifics\": {\"heading\": <%= heading %>,\"speed\":<%= speed %>,\"accuracy\":<%= accuracy %>,\"event\":\"<%= event %>\",\"activity_type\":\"<%= activity.type %>\",\"activity_confidence\":<%= activity.confidence %>,\"battery_level\":<%= battery.level %>,\"battery_is_charging\":<%= battery.is_charging %>,\"mock\":<%= mock %>,\"is_moving\":<%= is_moving %>,\"os\":\"ios\",\"osVersion\":\"15.4.1\",\"brand\":\"Apple\",\"device\":\"iPhone12,8\",\"appVersion\":\"2.2.46.139\"}}";
    locationTimeout = 60;
    locationsOrderDirection = ASC;
    logLevel = 5;
    logMaxDays = 3;
    maxBatchSize = 100;
    maxDaysToPersist = 14;
    maxRecordsToPersist = "-1";
    method = POST;
    minimumActivityRecognitionConfidence = 70;
    odometer = "46463.11318188864";
    params =     {
    };
    pausesLocationUpdatesAutomatically = 0;
    persistMode = 2;
    preventSuspend = 1;
    schedule =     (
    );
    schedulerEnabled = 0;
    showsBackgroundLocationIndicator = 1;
    startOnBoot = 1;
    stationaryRadius = 25;
    stopAfterElapsedMinutes = "-1";
    stopDetectionDelay = 0;
    stopOnStationary = 0;
    stopOnTerminate = 0;
    stopTimeout = 5;
    trackingMode = 1;
    url = "https://staging.backend.surlo.app/api/surlo_trackings/multiple";
    useSignificantChangesOnly = 0;
}

2024-04-01 12:30:58.052 ℹ️-[GeofenceDAO init] CREATE TABLE IF NOT EXISTS geofences (id INTEGER PRIMARY KEY AUTOINCREMENT, identifier TEXT NOT NULL UNIQUE, latitude DOUBLE NOT NULL, sin_latitude DOUBLE NOT NULL, cos_latitude DOUBLE NOT NULL, longitude DOUBLE NOT NULL, sin_longitude DOUBLE NOT NULL, cos_longitude DOUBLE NOT NULL, radius DOUBLE NOT NULL, notifyOnEntry BOOLEAN NOT NULL DEFAULT 0, notifyOnExit BOOLEAN NOT NULL DEFAULT 0, notifyOnDwell BOOLEAN NOT NULL DEFAULT 0, loiteringDelay DOUBLE NOT NULL DEFAULT 0, extras TEXT, vertices TEXT)

2024-04-01 12:30:58.052 ℹ️-[GeofenceDAO init] CREATE index IF NOT EXISTS identifier ON geofences (identifier);CREATE index IF NOT EXISTS latitude ON geofences (latitude);CREATE index IF NOT EXISTS longitude ON geofences (longitude);CREATE index IF NOT EXISTS sin_latitude ON geofences (sin_latitude);CREATE index IF NOT EXISTS cos_latitude ON geofences (cos_latitude);CREATE index IF NOT EXISTS sin_longitude ON geofences (sin_longitude);CREATE index IF NOT EXISTS cos_longitude ON geofences (cos_longitude);

2024-04-01 12:30:58.079 🔵-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 3

2024-04-01 12:30:58.083 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-04-01 12:30:58.083 🔵-[PolygonGeofencingService locationManager:didChangeAuthorizationStatus:] 3

2024-04-01 12:30:58.083 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-04-01 12:30:58.083 🔵-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 3

2024-04-01 12:30:58.083 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-04-01 12:30:59.105 ℹ️-[TSConfig persist] 

2024-04-01 12:30:59.556 ℹ️-[TSConfig persist] 

2024-04-01 12:30:59.972 ℹ️-[TSConfig persist] 

2024-04-01 12:31:00.315 ℹ️-[TSConfig persist] 

2024-04-01 12:31:23.419 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-04-01 12:31:23.420 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.204532, -1.458748

2024-04-01 12:31:23.420 🔵-[TSLocationManager locationManager:didVisit:]   acy: 12.384773

2024-04-01 12:31:23.420 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-03-31 15:27:33 +0000

2024-04-01 12:31:23.420 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-04-01 10:25:53 +0000

2024-04-01 12:37:06.671 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 12:43:50.648 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 12:43:50.648 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-01 12:48:51.148 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 12:54:01.254 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-01 12:54:01.264 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 13:03:09.119 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-04-01 13:03:09.119 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.204480, -1.458790

2024-04-01 13:03:09.119 🔵-[TSLocationManager locationManager:didVisit:]   acy: 73.668817

2024-04-01 13:03:09.119 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-04-01 10:53:20 +0000

2024-04-01 13:03:09.119 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-04-01 13:03:16.788 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 14:15:43.181 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 14:15:43.181 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-01 14:15:55.603 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-04-01 14:15:55.603 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.204278, -1.459085

2024-04-01 14:15:55.603 🔵-[TSLocationManager locationManager:didVisit:]   acy: 78.333220

2024-04-01 14:15:55.603 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-04-01 10:53:20 +0000

2024-04-01 14:15:55.603 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-04-01 12:15:27 +0000

2024-04-01 14:20:44.117 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 14:20:44.117 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-01 14:43:05.617 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 15:20:42.056 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-01 15:20:42.065 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 16:01:30.207 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 16:04:43.205 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-01 16:04:43.229 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 16:04:43.269 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-04-01 16:04:43.269 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.572313, -1.117110

2024-04-01 16:04:43.269 🔵-[TSLocationManager locationManager:didVisit:]   acy: 53.961343

2024-04-01 16:04:43.269 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-04-01 13:55:07 +0000

2024-04-01 16:04:43.269 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 4001-01-01 00:00:00 +0000

2024-04-01 16:10:52.052 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 16:10:52.052 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-01 16:11:07.864 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didVisit:] 
╚═══════════════════════════════════════════════════════════

2024-04-01 16:11:07.864 🔵-[TSLocationManager locationManager:didVisit:] - CLVisit 46.572276, -1.117121

2024-04-01 16:11:07.864 🔵-[TSLocationManager locationManager:didVisit:]   acy: 49.155858

2024-04-01 16:11:07.864 🔵-[TSLocationManager locationManager:didVisit:]   arrival: 2024-04-01 13:55:07 +0000

2024-04-01 16:11:07.864 🔵-[TSLocationManager locationManager:didVisit:]   departutre: 2024-04-01 14:07:51 +0000

2024-04-01 16:16:59.788 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 16:35:54.847 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-01 16:35:54.899 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 17:16:56.691 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 17:28:55.897 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-01 17:28:55.909 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 17:40:17.242 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 17:45:18.237 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 17:45:18.237 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-01 18:00:28.531 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 18:05:42.353 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-01 18:05:42.364 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 18:32:59.467 ℹ️-[TSDBLogger db_save] Log committed

2024-04-01 18:32:59.467 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-02 11:50:45.377 ℹ️-[TSLocationManager init] 
╔═════════════════════════════════════════════
║ TSLocationManager (build 388)
╠══════════════════════════════════════════════
{
    activityRecognitionInterval = 10000;
    activityType = 1;
    authorization =     {
        accessToken = "eyJ0e<redacted>";
        expires = 86400;
        refreshHeaders =         {
            Authorization = "Bearer {accessToken}";
        };
        refreshPayload =         {
            "refresh_token" = "{refreshToken}";
        };
        refreshToken = "5f254<redacted>";
        refreshUrl = "https://staging.backend.surlo.app/token/refresh";
        strategy = JWT;
    };
    autoSync = 1;
    autoSyncThreshold = 0;
    batchSync = 1;
    debug = 0;
    desiredAccuracy = "-2";
    desiredOdometerAccuracy = 100;
    didDeviceReboot = 1;
    didLaunchInBackground = 0;
    didRequestUpgradeLocationAuthorization = 1;
    disableAutoSyncOnCellular = 0;
    disableElasticity = 0;
    disableLocationAuthorizationAlert = 0;
    disableMotionActivityUpdates = 1;
    disableStopDetection = 1;
    distanceFilter = 10;
    elasticityMultiplier = 1;
    enableTimestampMeta = 0;
    enabled = 0;
    extras =     {
        activity = "api/surlo_activities/1000924";
    };
    geofenceInitialTriggerEntry = 1;
    geofenceProximityRadius = 2000;
    geofenceTemplate = "";
    headers =     {
    };
    heartbeatInterval = 60;
    httpRootProperty = trackings;
    httpTimeout = 60000;
    iOSHasWarnedLocationServicesOff = 0;
    isFirstBoot = 0;
    isMoving = 0;
    lastLocationAuthorizationStatus = 3;
    locationAuthorizationAlert =     {
        cancelButton = Annuler;
        instructions = "Pour garantir un bon enregistrement, il faut choisir '{locationAuthorizationRequest}' dans tes param\U00e8tres de g\U00e9olocalisation.";
        settingsButton = "Param\U00e8tres";
        titleWhenNotEnabled = "La g\U00e9olocalisation en arri\U00e8re plan n'est pas activ\U00e9e";
        titleWhenOff = "La g\U00e9olocalisation est d\U00e9sactiv\U00e9e";
    };
    locationAuthorizationRequest = Always;
    locationTemplate = "{\"lat\": <%= latitude %>,\"lng\": <%= longitude %>,\"bearing\": 1,\"trackTime\": \"<%= timestamp %>\",\"specifics\": {\"heading\": <%= heading %>,\"speed\":<%= speed %>,\"accuracy\":<%= accuracy %>,\"event\":\"<%= event %>\",\"activity_type\":\"<%= activity.type %>\",\"activity_confidence\":<%= activity.confidence %>,\"battery_level\":<%= battery.level %>,\"battery_is_charging\":<%= battery.is_charging %>,\"mock\":<%= mock %>,\"is_moving\":<%= is_moving %>,\"os\":\"ios\",\"osVersion\":\"15.4.1\",\"brand\":\"Apple\",\"device\":\"iPhone12,8\",\"appVersion\":\"2.2.46.139\"}}";
    locationTimeout = 60;
    locationsOrderDirection = ASC;
    logLevel = 5;
    logMaxDays = 3;
    maxBatchSize = 100;
    maxDaysToPersist = 14;
    maxRecordsToPersist = "-1";
    method = POST;
    minimumActivityRecognitionConfidence = 70;
    odometer = "46463.11318188864";
    params =     {
    };
    pausesLocationUpdatesAutomatically = 0;
    persistMode = 2;
    preventSuspend = 1;
    schedule =     (
    );
    schedulerEnabled = 0;
    showsBackgroundLocationIndicator = 1;
    startOnBoot = 1;
    stationaryRadius = 25;
    stopAfterElapsedMinutes = "-1";
    stopDetectionDelay = 0;
    stopOnStationary = 0;
    stopOnTerminate = 0;
    stopTimeout = 5;
    trackingMode = 1;
    url = "https://staging.backend.surlo.app/api/surlo_trackings/multiple";
    useSignificantChangesOnly = 0;
}

2024-04-02 11:50:45.394 ℹ️-[GeofenceDAO init] CREATE TABLE IF NOT EXISTS geofences (id INTEGER PRIMARY KEY AUTOINCREMENT, identifier TEXT NOT NULL UNIQUE, latitude DOUBLE NOT NULL, sin_latitude DOUBLE NOT NULL, cos_latitude DOUBLE NOT NULL, longitude DOUBLE NOT NULL, sin_longitude DOUBLE NOT NULL, cos_longitude DOUBLE NOT NULL, radius DOUBLE NOT NULL, notifyOnEntry BOOLEAN NOT NULL DEFAULT 0, notifyOnExit BOOLEAN NOT NULL DEFAULT 0, notifyOnDwell BOOLEAN NOT NULL DEFAULT 0, loiteringDelay DOUBLE NOT NULL DEFAULT 0, extras TEXT, vertices TEXT)

2024-04-02 11:50:45.394 ℹ️-[GeofenceDAO init] CREATE index IF NOT EXISTS identifier ON geofences (identifier);CREATE index IF NOT EXISTS latitude ON geofences (latitude);CREATE index IF NOT EXISTS longitude ON geofences (longitude);CREATE index IF NOT EXISTS sin_latitude ON geofences (sin_latitude);CREATE index IF NOT EXISTS cos_latitude ON geofences (cos_latitude);CREATE index IF NOT EXISTS sin_longitude ON geofences (sin_longitude);CREATE index IF NOT EXISTS cos_longitude ON geofences (cos_longitude);

2024-04-02 11:50:45.485 🔵-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 3

2024-04-02 11:50:47.817 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-04-02 11:50:47.817 🔵-[PolygonGeofencingService locationManager:didChangeAuthorizationStatus:] 3

2024-04-02 11:50:47.817 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-04-02 11:50:47.817 🔵-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 3

2024-04-02 11:50:47.817 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 3

2024-04-02 12:29:13.007 ℹ️-[TSDBLogger db_save] Log committed

2024-04-02 12:29:13.007 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2024-04-02 12:29:13.066 🔵-[TSLocationManager onResume:] enabled? 0

2024-04-02 12:29:35.472 ℹ️-[TSLocationManager log:message:] [Feedback Message] Tracking même hors session

benjamin-beau avatar May 17 '24 09:05 benjamin-beau

You are using some other plug-in which is implementing the iOS “visits” api. This plug-in does have a passive callback registered on the “visits” api (from some experimentation I did about 8 years ago) but it does not initiate that api.

that other location plug-in you have installed is likely also initiating the “significant changes” api.

show me the dependencies from you package.json.

when this plugin is told to .stop(), no location is ever recorded.

christocracy avatar May 17 '24 12:05 christocracy

Thanks for your answer, here is my dependancies list :

"dependencies": {
    "@hookform/resolvers": "^3.3.2",
    "@miblanchard/react-native-slider": "^2.3.1",
    "@react-native-async-storage/async-storage": "^1.19.3",
    "@react-native-clipboard/clipboard": "^1.12.1",
    "@react-native-community/datetimepicker": "^7.6.1",
    "@react-native-community/netinfo": "^9.4.1",
    "@react-native-firebase/app": "^18.5.0",
    "@react-native-firebase/messaging": "^18.5.0",
    "@react-native-masked-view/masked-view": "^0.3.0",
    "@react-native-picker/picker": "^2.5.1",
    "@react-navigation/bottom-tabs": "^6.5.10",
    "@react-navigation/elements": "^1.3.20",
    "@react-navigation/native": "^6.1.9",
    "@react-navigation/stack": "^6.3.19",
    "@rematch/core": "^2.2.0",
    "@rematch/loading": "^2.1.2",
    "@rematch/persist": "^2.1.2",
    "@rnmapbox/maps": "^10.0.19",
    "@sentry/react-native": "^5.11.1",
    "@storybook/react-native": "^6.5.7",
    "@turf/turf": "^6.5.0",
    "@twotalltotems/react-native-otp-input": "^1.3.11",
    "async-mutex": "^0.4.0",
    "axios": "^1.5.1",
    "camelcase-keys": "^9.1.2",
    "chroma-js": "^2.4.2",
    "dayjs": "^1.11.10",
    "expo": "^49.0.0",
    "expo-image-manipulator": "~11.3.0",
    "expo-location": "~16.1.0",
    "i18n-iso-countries": "^7.7.0",
    "i18next": "^23.6.0",
    "libphonenumber-js": "^1.10.48",
    "lodash": "^4.17.21",
    "lottie-react-native": "^6.3.1",
    "luxon": "^3.4.3",
    "moment": "^2.29.4",
    "normalize-strings": "^1.1.1",
    "react": "18.2.0",
    "react-hook-form": "^7.47.0",
    "react-i18next": "^13.3.1",
    "react-native": "0.72.6",
    "react-native-android-location-enabler": "^2.0.1",
    "react-native-background-fetch": "^4.2.1",
    "react-native-background-geolocation": "^4.14.3",
    "react-native-chart-kit": "^6.12.0",
    "react-native-config": "^1.5.1",
    "react-native-device-info": "^10.11.0",
    "react-native-document-picker": "^9.0.1",
    "react-native-error-boundary": "^1.2.3",
    "react-native-flash-message": "^0.4.2",
    "react-native-gesture-handler": "^2.13.3",
    "react-native-glassfy-module": "^1.5.3",
    "react-native-health": "^1.18.0",
    "react-native-image-crop-picker": "^0.40.2",
    "react-native-inappbrowser-reborn": "^3.7.0",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-linear-gradient": "^2.8.3",
    "react-native-linear-gradient-text": "^1.1.2",
    "react-native-localize": "^3.0.2",
    "react-native-modal": "^13.0.1",
    "react-native-permissions": "^3.10.0",
    "react-native-picker-select": "^8.1.0",
    "react-native-reanimated": "^3.5.4",
    "react-native-safe-area-context": "^4.7.3",
    "react-native-screens": "^3.26.0",
    "react-native-sha256": "^1.4.9",
    "react-native-snap-carousel": "^3.9.1",
    "react-native-svg": "^13.14.0",
    "react-native-webview": "^13.6.2",
    "react-query": "^3.39.3",
    "react-redux": "^8.1.3",
    "redux": "^4.2.1",
    "redux-persist": "^6.0.0",
    "snakecase-keys": "^5.5.0",
    "zod": "^3.22.4"
  },

benjamin-beau avatar May 24 '24 16:05 benjamin-beau

MapBox is known to do dirty tricks, like steal location data from every device you use it on, particularly when you don’t pay them any money.

I wouldn’t be surprised if MapBox is responsible.

christocracy avatar May 24 '24 16:05 christocracy

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 24 '24 01:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 08 '24 01:07 github-actions[bot]

We're seeing the same warning. Do you know of anything in our package.json that would be triggering the iOS Visits API?

  "dependencies": {
    "@exodus/heat-map-view": "github:ExodusMovement/heat-map-view",
    "@expo/react-native-action-sheet": "^3.14.0",
    "@fullstory/react-native": "^1.6.3",
    "@gorhom/bottom-sheet": "^4.6.3",
    "@mapbox/polyline": "^1.2.1",
    "@opencreek/provider-stack": "^0.3.1",
    "@react-native-async-storage/async-storage": "^1.23.1",
    "@react-native-clipboard/clipboard": "^1.14.1",
    "@react-native-community/blur": "^4.4.0",
    "@react-native-community/netinfo": "^11.3.2",
    "@react-native-community/push-notification-ios": "^1.11.0",
    "@react-native-firebase/analytics": "^20.0.0",
    "@react-native-firebase/app": "^20.0.0",
    "@react-native-picker/picker": "^2.7.6",
    "@react-navigation/bottom-tabs": "^6.5.20",
    "@react-navigation/drawer": "^6.6.15",
    "@react-navigation/material-top-tabs": "^6.6.13",
    "@react-navigation/native": "^6.1.17",
    "@react-navigation/native-stack": "^6.9.26",
    "@react-navigation/stack": "^6.3.29",
    "@segment/analytics-react-native": "^2.19.1",
    "@segment/sovran-react-native": "^0.4.5",
    "@sentry/fullstory": "^2.1.0",
    "@sentry/react-native": "^5.22.3",
    "@shopify/flash-list": "^1.6.4",
    "@tanstack/query-async-storage-persister": "^4.22.0",
    "@tanstack/react-query": "^4.36.1",
    "@tanstack/react-query-persist-client": "^4.22.0",
    "axios": "^1.7.2",
    "geolib": "^3.3.4",
    "gql.tada": "^1.8.0",
    "graphql": "^16.8.1",
    "i18next": "^23.11.5",
    "intl": "^1.2.5",
    "jwt-decode": "^3.1.2",
    "launchdarkly-react-native-client-sdk": "^7.1.4",
    "lodash": "^4.17.21",
    "lottie-react-native": "^6.7.2",
    "luxon": "^3.4.4",
    "native-base": "^3.4.28",
    "newrelic-react-native-agent": "^1.3.7",
    "observable-hooks": "^4.2.3",
    "phosphor-react-native": "^2.0.0",
    "react": "18.2",
    "react-i18next": "^14.1.2",
    "react-native": "0.73.8",
    "react-native-background-fetch": "^4.2.5",
    "react-native-background-geolocation": "^4.16.2",
    "react-native-clusterer": "^1.3.0",
    "react-native-code-push": "^8.2.2",
    "react-native-confetti-cannon": "^1.5.2",
    "react-native-config": "^1.5.1",
    "react-native-device-info": "^11.1.0",
    "react-native-encrypted-storage": "^4.0.3",
    "react-native-error-boundary": "^1.1.15",
    "react-native-fs": "^2.20.0",
    "react-native-gesture-handler": "^2.16.2",
    "react-native-get-random-values": "^1.11.0",
    "react-native-image-picker": "^5.1.0",
    "react-native-image-resizer": "^1.4.5",
    "react-native-in-app-review": "^4.3.3",
    "react-native-inappbrowser-reborn": "^3.7.0",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-keychain": "^4.0.1",
    "react-native-linear-gradient": "^2.8.3",
    "react-native-maps": "^1.15.4",
    "react-native-mimetype": "^0.0.7",
    "react-native-mlkit-ocr": "^0.3.0",
    "react-native-mmkv": "^2.12.2",
    "react-native-pager-view": "^6.3.1",
    "react-native-progress": "^5.0.0",
    "react-native-push-notification": "^8.1.1",
    "react-native-quick-base64": "^2.1.1",
    "react-native-reanimated": "^3.11.0",
    "react-native-safe-area-context": "^4.10.3",
    "react-native-screens": "^3.31.1",
    "react-native-shared-element": "^0.8.9",
    "react-native-splash-screen": "^3.3.0",
    "react-native-star-rating-widget": "^1.7.3",
    "react-native-svg": "^12.4.4",
    "react-native-toast-message": "^2.2.0",
    "react-native-url-polyfill": "^2.0.0",
    "react-native-uuid": "^2.0.2",
    "react-native-vector-icons": "^10.1.0",
    "react-native-vision-camera": "^4.4.2",
    "react-native-webview": "^13.10.2",
    "react-native-wheel-picker-android": "^2.0.6",
    "react-navigation-shared-element": "^3.1.3",
    "rxjs": "^7.8.1"
  },

My unfounded guess would be react-native-maps 🤷

spsaucier avatar Jul 15 '24 15:07 spsaucier