Skip to content

[Help Wanted]: [Geofence] Enter event occasionally fails to trigger in background #2653

Description

@ohkendevtest07

Required Reading

  • Confirmed

Plugin Version

5.5.0

Mobile operating-system(s)

  • iOS
  • Android

Device Manufacturer(s) and Model(s)

AQUOS wish4 (SHARP)

Device operating-systems(s)

Android 15

React Native / Expo version

Expo 57

What do you require assistance about?

Description

Geofence enter events occasionally fail to trigger in the background (roughly once every 3 days).
When this occurs, the enter event only fires once the app is opened.

This issue occurred in previous versions and continues to happen even after updating the SDK to version 5.5.

Configuration & Permissions

  • I am using only geofencing via startGeofence.
  • geofenceModeHighAccuracy is set to true, and foreground services have been removed from the app permissions.
  • Background battery usage is set to "Unrestricted", and all potential battery saver / power management features are disabled.

Log Explanation

  • At 08:30 on Sep 1st, I was already inside the geofence area, but no enter event occurred in the background.
  • The enter event was finally triggered at 09:32 on Sep 1st, right when I opened the app.

Is there anything noticeable or insightful from the logs?

Thanks in advance for your help.

[Optional] Plugin Code and/or Config

const state = await BackgroundGeolocation.ready({
        logger: {
          logLevel: BackgroundGeolocation.LogLevel.Verbose,
        },
        http: {
          url: '',
        },
        app: {
          stopOnTerminate: false,
          startOnBoot: true,
          enableHeadless: true,
          backgroundPermissionRationale: {
            title: "バックグラウンドでの位置情報の権限がありません。",
            message: "アプリ終了後も現場の入出を記録するために、位置情報の権限を常に許可してください。",
            positiveAction: "設定",
            negativeAction: "キャンセル",
          },
        },
        geolocation: {
          useSignificantChangesOnly: true,
          geofenceModeHighAccuracy: false,
          geofenceProximityRadius: 2000,
          locationAuthorizationAlert: {
            titleWhenNotEnabled: "位置情報の権限が無効になっています。",
            titleWhenOff: "位置情報の権限がオフになっています。",
            instructions: "アプリ終了後も現場の入出を記録するために、位置情報の権限を常に許可してください。",
            settingsButton: "設定",
            cancelButton: "キャンセル",
          },
        },
      });

      if (!state.enabled) {
        await BackgroundGeolocation.startGeofences();
      }

[Optional] Relevant log output

08-31 18:47:23.662 INFO [GeofencingProcessor handleGeofencingEvent] 
╔═════════════════════════════════════════════
║ Geofencing Event: EXIT
╠═════════════════════════════════════════════
╟─ 248a36ee-3333-47b9-9020-fea85de4873f
╚═════════════════════════════════════════════
08-31 18:47:23.666 INFO [GeofencingProcessor a] 
╔═════════════════════════════════════════════
║ Trigger vs Geofence center: 248a36ee-3333-47b9-9020-fea85de4873f
╠═════════════════════════════════════════════
╟─ 📍 Trigger=Location[fused 33.590651,130.398729 hAcc=14.717 et=+11d2h41m52s87ms alt=43.599998474121094 vAcc=1.0368224]
╟─ dist=279.60587m radius=200.0m
╟─ minPossibleDist=264.88885m (outsideBy=64.888855m)
╟─ triggerAge=593ms provider=fused
╚═════════════════════════════════════════════
08-31 18:47:23.670 DEBUG [n a] Updated geofence state 248a36ee-3333-47b9-9020-fea85de4873f (entry_state=0, hits=5)
08-31 18:47:23.685 DEBUG [HeadlessEventTx fire] 🛜 💀⚡️ geofence
08-31 18:47:23.685 DEBUG [HeadlessTask onHeadlessEvent] 💀  event: geofence
08-31 18:47:23.685 INFO [c0 a] 
  💾 ✅ 515206f1-dc5c-44f5-8f93-bca3c268dd86
08-31 18:47:23.731 DEBUG [TSGeofenceManager$e a] ℹ️  GeofencingClient addGeofences SUCCESS
08-31 18:47:23.733 DEBUG [TSGeofenceManager z] ℹ️  Persist monitored geofences: [fe29824c-395c-4341-a2da-fa751327872c, 6306aaaf-881d-41cd-9059-9c55be62978e, ba97741d-710b-4bf8-a8d6-850586ff7ea6, c2040e8a-0154-4425-b4ca-ddc20051a35f, 826630a7-f52d-4fec-8eca-164f516a52eb, 248a36ee-3333-47b9-9020-fea85de4873f, dae4e4ff-0717-4349-baae-9a9ec9268a00, b19e60bc-5cd5-40e7-8b37-7aca5828dbed, 32ba2fe6-e31a-4b1e-b66c-3500a5096a18, d000f7ba-3fcb-4422-b09d-1e830aa1b0a1, f4ea619c-216d-44c3-9a1c-715fbeac25de]
08-31 18:47:23.733 DEBUG [TSGeofenceManager$e a] 
╔═════════════════════════════════════════════
║ TSGeofenceManager monitoring 11/167 within 2000 meters
╠═════════════════════════════════════════════
╟─ 🎾  fe29824c-395c-4341-a2da-fa751327872c
╟─ 🎾  6306aaaf-881d-41cd-9059-9c55be62978e
╟─ 🎾  ba97741d-710b-4bf8-a8d6-850586ff7ea6
╟─ 🎾  c2040e8a-0154-4425-b4ca-ddc20051a35f
╟─ 🎾  826630a7-f52d-4fec-8eca-164f516a52eb
╟─ 🎾  248a36ee-3333-47b9-9020-fea85de4873f
╟─ 🎾  dae4e4ff-0717-4349-baae-9a9ec9268a00
╟─ 🎾  b19e60bc-5cd5-40e7-8b37-7aca5828dbed
╟─ 🎾  32ba2fe6-e31a-4b1e-b66c-3500a5096a18
╟─ 🎾  d000f7ba-3fcb-4422-b09d-1e830aa1b0a1
╟─ 🎾  f4ea619c-216d-44c3-9a1c-715fbeac25de
╚═════════════════════════════════════════════
08-31 18:47:23.734 DEBUG [HeadlessEventTx fire] 🛜 💀⚡️ geofenceschange
08-31 18:47:23.734 DEBUG [HeadlessTask onHeadlessEvent] 💀  event: geofenceschange
08-31 18:47:23.931 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 7
08-31 18:47:23.932 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 8
08-31 18:47:24.404 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 7
08-31 18:47:24.406 DEBUG [HeadlessTaskManager onHeadlessJsTaskFinish] [onHeadlessJsTaskFinish] taskId: 17
08-31 18:47:25.260 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 8
08-31 18:47:25.262 DEBUG [HeadlessTaskManager onHeadlessJsTaskFinish] [onHeadlessJsTaskFinish] taskId: 18
08-31 18:56:27.327 INFO [GeofencingProcessor handleGeofencingEvent] 
╔═════════════════════════════════════════════
║ Geofencing Event: ENTER
╠═════════════════════════════════════════════
╟─ ba97741d-710b-4bf8-a8d6-850586ff7ea6
╚═════════════════════════════════════════════
08-31 18:56:27.330 INFO [GeofencingProcessor a] 
╔═════════════════════════════════════════════
║ Trigger vs Geofence center: ba97741d-710b-4bf8-a8d6-850586ff7ea6
╠═════════════════════════════════════════════
╟─ 📍 Trigger=Location[fused 33.588529,130.399917 hAcc=41.413 et=+11d2h50m55s717ms alt=37.599998474121094 vAcc=4.6225]
╟─ dist=163.53394m radius=200.0m
╟─ minPossibleDist=122.12094m (insideBy=-77.87906m)
╟─ triggerAge=628ms provider=fused
╚═════════════════════════════════════════════
08-31 18:56:27.333 DEBUG [n a] Updated geofence state ba97741d-710b-4bf8-a8d6-850586ff7ea6 (entry_state=1, hits=1)
08-31 18:56:27.346 DEBUG [HeadlessEventTx fire] 🛜 💀⚡️ geofence
08-31 18:56:27.346 DEBUG [HeadlessTask onHeadlessEvent] 💀  event: geofence
08-31 18:56:27.347 INFO [c0 a] 
  💾 ✅ b621eed5-e7c0-4741-8c12-4b2578dae47c
08-31 18:56:27.383 DEBUG [TSGeofenceManager$e a] ℹ️  GeofencingClient addGeofences SUCCESS
08-31 18:56:27.386 DEBUG [TSGeofenceManager z] ℹ️  Persist monitored geofences: [fe29824c-395c-4341-a2da-fa751327872c, 6306aaaf-881d-41cd-9059-9c55be62978e, ba97741d-710b-4bf8-a8d6-850586ff7ea6, c2040e8a-0154-4425-b4ca-ddc20051a35f, 826630a7-f52d-4fec-8eca-164f516a52eb, 248a36ee-3333-47b9-9020-fea85de4873f, dae4e4ff-0717-4349-baae-9a9ec9268a00, b19e60bc-5cd5-40e7-8b37-7aca5828dbed, 32ba2fe6-e31a-4b1e-b66c-3500a5096a18, d000f7ba-3fcb-4422-b09d-1e830aa1b0a1, f4ea619c-216d-44c3-9a1c-715fbeac25de, b58d1af0-ca5b-4f2f-9eac-419299669aeb]
08-31 18:56:27.386 DEBUG [TSGeofenceManager$e a] 
╔═════════════════════════════════════════════
║ TSGeofenceManager monitoring 12/167 within 2000 meters
╠═════════════════════════════════════════════
╟─ 🎾  fe29824c-395c-4341-a2da-fa751327872c
╟─ 🎾  6306aaaf-881d-41cd-9059-9c55be62978e
╟─ 🎾  ba97741d-710b-4bf8-a8d6-850586ff7ea6
╟─ 🎾  c2040e8a-0154-4425-b4ca-ddc20051a35f
╟─ 🎾  826630a7-f52d-4fec-8eca-164f516a52eb
╟─ 🎾  248a36ee-3333-47b9-9020-fea85de4873f
╟─ 🎾  dae4e4ff-0717-4349-baae-9a9ec9268a00
╟─ 🎾  b19e60bc-5cd5-40e7-8b37-7aca5828dbed
╟─ 🎾  32ba2fe6-e31a-4b1e-b66c-3500a5096a18
╟─ 🎾  d000f7ba-3fcb-4422-b09d-1e830aa1b0a1
╟─ 🎾  f4ea619c-216d-44c3-9a1c-715fbeac25de
╟─ 🎾  b58d1af0-ca5b-4f2f-9eac-419299669aeb
╚═════════════════════════════════════════════
08-31 18:56:27.386 DEBUG [HeadlessEventTx fire] 🛜 💀⚡️ geofenceschange
08-31 18:56:27.387 DEBUG [HeadlessTask onHeadlessEvent] 💀  event: geofenceschange
08-31 18:56:27.548 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 9
08-31 18:56:27.549 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 10
08-31 18:56:27.894 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 10
08-31 18:56:27.896 DEBUG [HeadlessTaskManager onHeadlessJsTaskFinish] [onHeadlessJsTaskFinish] taskId: 21
08-31 18:56:28.551 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 9
08-31 18:56:28.553 DEBUG [HeadlessTaskManager onHeadlessJsTaskFinish] [onHeadlessJsTaskFinish] taskId: 20
08-31 19:03:36.171 WARN [GeofencingProcessor handleGeofencingEvent] 
╔═════════════════════════════════════════════
║ Deferring geofence transition (untrusted trigger location)
╠═════════════════════════════════════════════
╟─ id=ba97741d-710b-4bf8-a8d6-850586ff7ea6
╟─ transition=EXIT
╟─ dist=1738.4m radius=200.0m acc=200.0m outsideBy=1338.4m
╟─ 📍 Trigger=Location[fused 33.573261,130.406258 hAcc=200.0 et=+11d2h58m4s554ms alt=44.39999771118164 vAcc=4.020644]
╚═════════════════════════════════════════════
08-31 19:03:36.175 DEBUG [n a] Updated geofence state ba97741d-710b-4bf8-a8d6-850586ff7ea6 (entry_state=2, hits=1)
08-31 19:03:36.223 DEBUG [SingleLocationRequest trySatisfyLastLocation] 📍 
╟─ age: 682ms
╟─ maximumAge: 1000
╟─ desiredAccuracy: 10.0
╟─ meetsAccuracy: false
╟─ meetsStaleness: true

08-31 19:03:36.227 DEBUG [LocationAuthorization withPermission] 
  ℹ️  LocationAuthorization: Permission granted
08-31 19:03:36.253 DEBUG [TSGeofenceManager b] ℹ️  GeofencingClient removeGeofences SUCCESS
08-31 19:03:36.257 DEBUG [n a] Updated geofence state fe29824c-395c-4341-a2da-fa751327872c (entry_state=0, hits=8)
08-31 19:03:36.260 DEBUG [n a] Updated geofence state 6306aaaf-881d-41cd-9059-9c55be62978e (entry_state=0, hits=0)
08-31 19:03:36.263 DEBUG [n a] Updated geofence state 248a36ee-3333-47b9-9020-fea85de4873f (entry_state=0, hits=5)
08-31 19:03:36.267 DEBUG [n a] Updated geofence state dae4e4ff-0717-4349-baae-9a9ec9268a00 (entry_state=0, hits=0)
08-31 19:03:36.270 DEBUG [n a] Updated geofence state b19e60bc-5cd5-40e7-8b37-7aca5828dbed (entry_state=0, hits=0)
08-31 19:03:36.274 DEBUG [n a] Updated geofence state b58d1af0-ca5b-4f2f-9eac-419299669aeb (entry_state=0, hits=0)
08-31 19:03:36.274 DEBUG [TSGeofenceManager z] ℹ️  Persist monitored geofences: [ba97741d-710b-4bf8-a8d6-850586ff7ea6, c2040e8a-0154-4425-b4ca-ddc20051a35f, 826630a7-f52d-4fec-8eca-164f516a52eb, 32ba2fe6-e31a-4b1e-b66c-3500a5096a18, d000f7ba-3fcb-4422-b09d-1e830aa1b0a1, f4ea619c-216d-44c3-9a1c-715fbeac25de]
08-31 19:03:36.278 DEBUG [HeadlessEventTx fire] 🛜 💀⚡️ geofenceschange
08-31 19:03:36.279 DEBUG [HeadlessTask onHeadlessEvent] 💀  event: geofenceschange
08-31 19:03:36.289 DEBUG [TSGeofenceManager$e a] ℹ️  GeofencingClient addGeofences SUCCESS
08-31 19:03:36.289 DEBUG [TSGeofenceManager z] ℹ️  Persist monitored geofences: [ba97741d-710b-4bf8-a8d6-850586ff7ea6, c2040e8a-0154-4425-b4ca-ddc20051a35f, 826630a7-f52d-4fec-8eca-164f516a52eb, 32ba2fe6-e31a-4b1e-b66c-3500a5096a18, d000f7ba-3fcb-4422-b09d-1e830aa1b0a1, f4ea619c-216d-44c3-9a1c-715fbeac25de, 6269f1ce-491f-4009-8667-d5426ea60515, 7a4e044a-73b5-460d-a75c-1fe09338cd77]
08-31 19:03:36.290 DEBUG [TSGeofenceManager$e a] 
╔═════════════════════════════════════════════
║ TSGeofenceManager monitoring 8/167 within 2000 meters
╠═════════════════════════════════════════════
╟─ 🎾  ba97741d-710b-4bf8-a8d6-850586ff7ea6
╟─ 🎾  c2040e8a-0154-4425-b4ca-ddc20051a35f
╟─ 🎾  826630a7-f52d-4fec-8eca-164f516a52eb
╟─ 🎾  32ba2fe6-e31a-4b1e-b66c-3500a5096a18
╟─ 🎾  d000f7ba-3fcb-4422-b09d-1e830aa1b0a1
╟─ 🎾  f4ea619c-216d-44c3-9a1c-715fbeac25de
╟─ 🎾  6269f1ce-491f-4009-8667-d5426ea60515
╟─ 🎾  7a4e044a-73b5-460d-a75c-1fe09338cd77
╚═════════════════════════════════════════════
08-31 19:03:36.290 DEBUG [HeadlessEventTx fire] 🛜 💀⚡️ geofenceschange
08-31 19:03:36.290 DEBUG [HeadlessTask onHeadlessEvent] 💀  event: geofenceschange
08-31 19:03:36.325 DEBUG [TSGeofenceManager b] isMoving: false | stateChanged: false | timerExpired: false | elapsed: 0
08-31 19:03:36.326 INFO [TSLocationManager a] 
╔═════════════════════════════════════════════
║ SingleLocationResult LocationResult: 1 (786ms old)
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 33.573261,130.406258 hAcc=200.0 et=+11d2h58m4s554ms alt=44.39999771118164 vAcc=4.020644 {Bundle[{requestId=1}]}], time: 1788170615538

08-31 19:03:36.334 DEBUG [HeadlessEventTx fire] 🛜 💀⚡️ location
08-31 19:03:36.334 DEBUG [HeadlessTask onHeadlessEvent] 💀  event: location
08-31 19:03:36.343 WARN [SingleLocationRequest finish] 
  ⚠️  📍 Android will not provide a fresh location to a backgrounded app without the FOREGROUND_SERVICE / FOREGROUND_SERVICE_LOCATION permissions — returning last known location
08-31 19:03:36.343 INFO [SingleLocationRequest finish] 
  🔵  Found previous sample
08-31 19:03:36.344 INFO [TSLocationManager a] 
╔═════════════════════════════════════════════
║ SingleLocationResult LocationResult: 1 (805ms old)
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 33.573261,130.406258 hAcc=200.0 et=+11d2h58m4s554ms alt=44.39999771118164 vAcc=4.020644 {Bundle[{requestId=1}]}], time: 1788170615538

08-31 19:03:36.348 WARN [GeofencingProcessor b] 
╔═════════════════════════════════════════════
║ Ignoring deferred geofence transition after confirm
╠═════════════════════════════════════════════
╟─ id=ba97741d-710b-4bf8-a8d6-850586ff7ea6
╟─ transition=2
╟─ verdict=DEFER_CONFIRM_LOCATION
╟─ reason=untrusted EXIT wildlyOutside=true impliedAnomaly=false awfulAccuracy=true
╟─ 📍 Confirm=Location[fused 33.573261,130.406258 hAcc=200.0 et=+11d2h58m4s554ms alt=44.39999771118164 vAcc=4.020644 {Bundle[{requestId=1}]}]
╟─ 📍 LastGood=Location[fused 33.573261,130.406258 hAcc=200.0 et=+11d2h58m4s554ms alt=44.39999771118164 vAcc=4.020644 {Bundle[{requestId=1}]}]
╚═════════════════════════════════════════════
08-31 19:03:36.364 DEBUG [HeadlessTaskManager onHeadlessJsTaskFinish] [onHeadlessJsTaskFinish] taskId: 24
08-31 19:03:36.406 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 11
08-31 19:03:36.408 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 12
08-31 19:03:37.043 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 11
08-31 19:03:37.044 DEBUG [HeadlessTaskManager onHeadlessJsTaskFinish] [onHeadlessJsTaskFinish] taskId: 22
08-31 19:03:38.218 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 12
08-31 19:03:38.219 DEBUG [HeadlessTaskManager onHeadlessJsTaskFinish] [onHeadlessJsTaskFinish] taskId: 23
08-31 19:08:37.924 WARN [GeofencingProcessor handleGeofencingEvent] 
╔═════════════════════════════════════════════
║ Ignoring spurious geofence EXIT (never entered)
╠═════════════════════════════════════════════
╟─ id=f4ea619c-216d-44c3-9a1c-715fbeac25de
╟─ entryState=OUTSIDE
╟─ reason=spurious EXIT (never entered, stationary)
╟─ 📍 Trigger=Location[fused 33.558025,130.428549 hAcc=98.4 et=+11d3h3m6s13ms alt=58.89999771118164 vAcc=18.49]
╟─ 📍 Current=Location[fused 33.573261,130.406258 hAcc=200.0 et=+11d2h58m4s554ms alt=44.39999771118164 vAcc=4.020644 {Bundle[{requestId=1}]}]
╚═════════════════════════════════════════════
08-31 19:08:37.934 DEBUG [HeadlessEventTx fire] 🛜 💀⚡️ locationfilter
08-31 19:08:37.936 DEBUG [HeadlessTask onHeadlessEvent] 💀  event: locationfilter
08-31 19:08:37.964 DEBUG [HeadlessTaskManager onHeadlessJsTaskFinish] [onHeadlessJsTaskFinish] taskId: 26
09-01 00:00:01.889 INFO [LoggerFacade$a a] ⏱️ [TSConfig hydrateTime] 9ms
09-01 00:00:01.890 INFO [LoggerFacade$a a] ⏱️ [JNILoader loadLibrary] tslocationmanager 10ms
09-01 00:00:01.890 INFO [LoggerFacade$a a] 
╔═════════════════════════════════════════════
║ TSLocationManager version: 4.5.0 (4071)
╠═════════════════════════════════════════════
╟─ jp.co.ohken.autostamp
╟─ SHARP A403SH @ 15 (react)
{
  "actions": [],
  "activity": {
    "activityRecognitionInterval": 10000,
    "disableMotionActivityUpdates": false,
    "disableStopDetection": false,
    "minimumActivityRecognitionConfidence": 75,
    "motionTriggerDelay": 0,
    "stopOnStationary": false,
    "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking"
  },
  "activityRecognitionInterval": 10000,
  "allowIdenticalLocations": false,
  "allowTap": true,
  "app": {
    "backgroundPermissionRationale": {
      "message": "アプリ終了後も現場の入出を記録するために、位置情報の権限を常に許可してください。",
      "negativeAction": "キャンセル",
      "positiveAction": "設定",
      "title": "バックグラウンドでの位置情報の権限がありません。"
    },
    "enableHeadless": true,
    "foregroundService": true,
    "headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessTask",
    "heartbeatInterval": -1,
    "mainActivityName": null,
    "notification": {
      "actions": [],
      "allowTap": true,
      "channelDescription": "Location tracking",
      "channelId": "bggeo",
      "channelName": "BackgroundGeolocation",
      "color": "",
      "importance": 2,
      "largeIcon": "",
      "layout": "",
      "priority": -1,
      "smallIcon": "mipmap\/ic_launcher",
      "sticky": false,
      "strings": {},
      "tapActivity": "",
      "text": "Tracking location",
      "title": "Background Geolocation"
    },
    "schedule": [],
    "scheduleUseAlarmManager": false,
    "serviceLaunchDelay": 1000,
    "startOnBoot": true,
    "stopOnTerminate": false
  },
  "authorization": {
    "accessToken": "✱✱✱",
    "expires": -1,
    "refreshHeaders": {},
    "refreshPayload": {},
    "refreshToken": "✱✱✱",
    "refreshUrl": "✱✱✱",
    "strategy": "JWT"
  },
  "autoSync": true,
  "autoSyncThreshold": 0,
  "backgroundPermissionRationale": {
    "message": "アプリ終了後も現場の入出を記録するために、位置情報の権限を常に許可してください。",
    "negativeAction": "キャンセル",
    "positiveAction": "設定",
    "title": "バックグラウンドでの位置情報の権限がありません。"
  },
  "batchSync": false,
  "channelDescription": "Location tracking",
  "channelId": "bggeo",
  "channelName": "BackgroundGeolocation",
  "color": "",
  "debug": false,
  "deferTime": 0,
  "desiredAccuracy": -1,
  "didDeviceReboot": false,
  "didShowBackgroundPermissionRationale": false,
  "disableAutoSyncOnCellular": false,
  "disableElasticity": false,
  "disableLocationAuthorizationAlert": false,
  "disableMotionActivityUpdates": false,
  "disableProviderChangeRecord": false,
  "disableStopDetection": false,
  "distanceFilter": 10,
  "elasticityMultiplier": 1,
  "enableHeadless": true,
  "enableTimestampMeta": false,
  "enabled": true,
  "extras": {},
  "fastestLocationUpdateInterval": -1,
  "foregroundService": true,
  "geofenceInitialTriggerEntry": true,
  "geofenceModeHighAccuracy": false,
  "geofenceProximityRadius": 2000,
  "geofenceTemplate": "",
  "geolocation": {
    "allowIdenticalLocations": false,
    "deferTime": 0,
    "desiredAccuracy": -1,
    "disableElasticity": false,
    "disableLocationAuthorizationAlert": false,
    "distanceFilter": 10,
    "elasticityMultiplier": 1,
    "enableTimestampMeta": false,
    "fastestLocationUpdateInterval": -1,
    "filter": {
      "burstWindow": 10,
      "filterDebug": false,
      "kalmanDebug": false,
      "kalmanProfile": 0,
      "maxBurstDistance": 300,
      "maxImpliedSpeed": 60,
      "odometerAccuracyThreshold": 20,
      "odometerPolicy": 1,
      "odometerUseKalmanFilter": true,
      "policy": 2,
      "rollingWindow": 5,
      "trackingAccuracyThreshold": 100,
      "useKalman": true
    },
    "geofenceInitialTriggerEntry": true,
    "geofenceModeHighAccuracy": false,
    "geofenceProximityRadius": 2000,
    "locationAuthorizationRequest": "Always",
    "locationTimeout": 60,
    "locationUpdateInterval": 1000,
    "stationaryRadius": 150,
    "stopAfterElapse
09-01 00:00:01.890 INFO [LoggerFacade$a a] 
╔═════════════════════════════════════════════
║ DEVICE SENSORS
╠═════════════════════════════════════════════
╟─ ✅  ACCELEROMETER: {Sensor name="ACCELEROMETER", vendor="MTK", version=1, type=1, maxRange=78.453606, resolution=0.0012, power=0.001, minDelay=5000}
╟─ ✅  GYROSCOPE: {Sensor name="GYROSCOPE", vendor="MTK", version=1, type=4, maxRange=34.9063, resolution=0.0011, power=0.001, minDelay=5000}
╟─ ✅  MAGNETOMETER: {Sensor name="MAGNETOMETER", vendor="MTK", version=1, type=2, maxRange=4912.0503, resolution=0.15, power=0.001, minDelay=20000}
╟─ ✅  SIGNIFICANT_MOTION: {Sensor name="SIGNIFICANT_MOTION", vendor="MTK", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.001, minDelay=-1}
╚═════════════════════════════════════════════
09-01 07:50:27.385 INFO [LoggerFacade$a a] ⏱️ [TSConfig hydrateTime] 8ms
09-01 07:50:27.386 INFO [LoggerFacade$a a] ⏱️ [JNILoader loadLibrary] tslocationmanager 9ms
09-01 07:50:27.386 INFO [LoggerFacade$a a] 
╔═════════════════════════════════════════════
║ TSLocationManager version: 4.5.0 (4071)
╠═════════════════════════════════════════════
╟─ jp.co.ohken.autostamp
╟─ SHARP A403SH @ 15 (react)
{
  "actions": [],
  "activity": {
    "activityRecognitionInterval": 10000,
    "disableMotionActivityUpdates": false,
    "disableStopDetection": false,
    "minimumActivityRecognitionConfidence": 75,
    "motionTriggerDelay": 0,
    "stopOnStationary": false,
    "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking"
  },
  "activityRecognitionInterval": 10000,
  "allowIdenticalLocations": false,
  "allowTap": true,
  "app": {
    "backgroundPermissionRationale": {
      "message": "アプリ終了後も現場の入出を記録するために、位置情報の権限を常に許可してください。",
      "negativeAction": "キャンセル",
      "positiveAction": "設定",
      "title": "バックグラウンドでの位置情報の権限がありません。"
    },
    "enableHeadless": true,
    "foregroundService": true,
    "headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessTask",
    "heartbeatInterval": -1,
    "mainActivityName": null,
    "notification": {
      "actions": [],
      "allowTap": true,
      "channelDescription": "Location tracking",
      "channelId": "bggeo",
      "channelName": "BackgroundGeolocation",
      "color": "",
      "importance": 2,
      "largeIcon": "",
      "layout": "",
      "priority": -1,
      "smallIcon": "mipmap\/ic_launcher",
      "sticky": false,
      "strings": {},
      "tapActivity": "",
      "text": "Tracking location",
      "title": "Background Geolocation"
    },
    "schedule": [],
    "scheduleUseAlarmManager": false,
    "serviceLaunchDelay": 1000,
    "startOnBoot": true,
    "stopOnTerminate": false
  },
  "authorization": {
    "accessToken": "✱✱✱",
    "expires": -1,
    "refreshHeaders": {},
    "refreshPayload": {},
    "refreshToken": "✱✱✱",
    "refreshUrl": "✱✱✱",
    "strategy": "JWT"
  },
  "autoSync": true,
  "autoSyncThreshold": 0,
  "backgroundPermissionRationale": {
    "message": "アプリ終了後も現場の入出を記録するために、位置情報の権限を常に許可してください。",
    "negativeAction": "キャンセル",
    "positiveAction": "設定",
    "title": "バックグラウンドでの位置情報の権限がありません。"
  },
  "batchSync": false,
  "channelDescription": "Location tracking",
  "channelId": "bggeo",
  "channelName": "BackgroundGeolocation",
  "color": "",
  "debug": false,
  "deferTime": 0,
  "desiredAccuracy": -1,
  "didDeviceReboot": false,
  "didShowBackgroundPermissionRationale": false,
  "disableAutoSyncOnCellular": false,
  "disableElasticity": false,
  "disableLocationAuthorizationAlert": false,
  "disableMotionActivityUpdates": false,
  "disableProviderChangeRecord": false,
  "disableStopDetection": false,
  "distanceFilter": 10,
  "elasticityMultiplier": 1,
  "enableHeadless": true,
  "enableTimestampMeta": false,
  "enabled": true,
  "extras": {},
  "fastestLocationUpdateInterval": -1,
  "foregroundService": true,
  "geofenceInitialTriggerEntry": true,
  "geofenceModeHighAccuracy": false,
  "geofenceProximityRadius": 2000,
  "geofenceTemplate": "",
  "geolocation": {
    "allowIdenticalLocations": false,
    "deferTime": 0,
    "desiredAccuracy": -1,
    "disableElasticity": false,
    "disableLocationAuthorizationAlert": false,
    "distanceFilter": 10,
    "elasticityMultiplier": 1,
    "enableTimestampMeta": false,
    "fastestLocationUpdateInterval": -1,
    "filter": {
      "burstWindow": 10,
      "filterDebug": false,
      "kalmanDebug": false,
      "kalmanProfile": 0,
      "maxBurstDistance": 300,
      "maxImpliedSpeed": 60,
      "odometerAccuracyThreshold": 20,
      "odometerPolicy": 1,
      "odometerUseKalmanFilter": true,
      "policy": 2,
      "rollingWindow": 5,
      "trackingAccuracyThreshold": 100,
      "useKalman": true
    },
    "geofenceInitialTriggerEntry": true,
    "geofenceModeHighAccuracy": false,
    "geofenceProximityRadius": 2000,
    "locationAuthorizationRequest": "Always",
    "locationTimeout": 60,
    "locationUpdateInterval": 1000,
    "stationaryRadius": 150,
    "stopAfterElapse
09-01 07:50:27.386 INFO [LoggerFacade$a a] 
╔═════════════════════════════════════════════
║ DEVICE SENSORS
╠═════════════════════════════════════════════
╟─ ✅  ACCELEROMETER: {Sensor name="ACCELEROMETER", vendor="MTK", version=1, type=1, maxRange=78.453606, resolution=0.0012, power=0.001, minDelay=5000}
╟─ ✅  GYROSCOPE: {Sensor name="GYROSCOPE", vendor="MTK", version=1, type=4, maxRange=34.9063, resolution=0.0011, power=0.001, minDelay=5000}
╟─ ✅  MAGNETOMETER: {Sensor name="MAGNETOMETER", vendor="MTK", version=1, type=2, maxRange=4912.0503, resolution=0.15, power=0.001, minDelay=20000}
╟─ ✅  SIGNIFICANT_MOTION: {Sensor name="SIGNIFICANT_MOTION", vendor="MTK", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.001, minDelay=-1}
╚═════════════════════════════════════════════
09-01 08:08:52.307 DEBUG [LifecycleManager d] ☯️  onCreate
09-01 08:08:52.312 INFO [BackgroundGeolocation <init>] 
  ✅  Google Play Services: connected (version code:12451000)
09-01 08:08:52.342 DEBUG [HttpService startMonitoringConnectivityChanges] 
  🎾  Start monitoring connectivity changes
09-01 08:08:52.372 INFO [h0 c] 
  🎾  Start monitoring location-provider changes
09-01 08:08:52.374 DEBUG [HttpService a] 
╔═════════════════════════════════════════════
║ 📶  Connectivity change: connected? true
╠═════════════════════════════════════════════

09-01 08:08:52.397 DEBUG [c0 a] 
  ℹ️  PRUNE -1 days
09-01 08:08:52.410 WARN [GeofencingProcessor handleGeofencingEvent] 
╔═════════════════════════════════════════════
║ Ignoring spurious geofence EXIT (never entered)
╠═════════════════════════════════════════════
╟─ id=6269f1ce-491f-4009-8667-d5426ea60515
╟─ entryState=OUTSIDE
╟─ reason=spurious EXIT (never entered, stationary)
╟─ 📍 Trigger=Location[fused 33.573261,130.406258 hAcc=200.0 et=+11d16h3m20s708ms alt=48.70000076293945 vAcc=1.0]
╚═════════════════════════════════════════════
09-01 08:08:52.429 DEBUG [LifecycleManager c] 
╔═════════════════════════════════════════════
║ ☯️  HeadlessMode? true
╠═════════════════════════════════════════════

09-01 08:08:52.432 DEBUG [HeadlessEventTx fire] 🛜 💀⚡️ connectivitychange
09-01 08:08:52.432 INFO [TSGeofenceManager start] 
  🎾  Start monitoring geofences
09-01 08:08:52.432 DEBUG [HeadlessTask onHeadlessEvent] 💀  event: connectivitychange
09-01 08:08:52.436 DEBUG [HeadlessEventTx fire] 🛜 💀⚡️ providerchange
09-01 08:08:52.436 DEBUG [HeadlessTask onHeadlessEvent] 💀  event: providerchange
09-01 08:08:52.443 DEBUG [HeadlessEventTx fire] 🛜 💀⚡️ locationfilter
09-01 08:08:52.443 DEBUG [HeadlessTask onHeadlessEvent] 💀  event: locationfilter
09-01 08:08:52.520 DEBUG [HeadlessTaskManager onHeadlessJsTaskFinish] [onHeadlessJsTaskFinish] taskId: 4
09-01 08:08:52.663 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 1
09-01 08:08:52.687 WARN [HeadlessTaskManager$Task invoke] 
  ⚠️  Task already invoked <IGNORED>: [HeadlessTaskManager.Task name: BackgroundGeolocation id: 2]
09-01 08:08:52.738 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 2
09-01 08:08:55.656 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 1
09-01 08:08:55.657 DEBUG [HeadlessTaskManager onHeadlessJsTaskFinish] [onHeadlessJsTaskFinish] taskId: 3
09-01 08:08:55.672 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 2
09-01 08:08:55.674 DEBUG [HeadlessTaskManager onHeadlessJsTaskFinish] [onHeadlessJsTaskFinish] taskId: 5
09-01 09:32:59.282 DEBUG [LifecycleManager g] ☯️  onStart
09-01 09:32:59.303 DEBUG [LifecycleManager f] ☯️  onResume
09-01 09:32:59.307 DEBUG [LocationAuthorization withBackgroundPermission] 
  ℹ️  LocationAuthorization: Permission granted
09-01 09:32:59.342 DEBUG [EventManager c]   🛜 ⚡️ providerchange
09-01 09:32:59.346 DEBUG [HttpService startMonitoringConnectivityChanges] 
  🎾  Start monitoring connectivity changes
09-01 09:32:59.346 DEBUG [DeviceSettings startMonitoringPowerSaveChanges] 
  🎾  Start monitoring powersave changes
09-01 09:32:59.347 INFO [o c] 
  🔴  Stop heartbeat
09-01 09:32:59.364 DEBUG [LifecycleManager d] ☯️ onWindowFocusChanged: true
09-01 09:32:59.394 DEBUG [SingleLocationRequest trySatisfyLastLocation] 📍 
╟─ age: 117388ms
╟─ maximumAge: 30000
╟─ desiredAccuracy: 20.0
╟─ meetsAccuracy: false
╟─ meetsStaleness: false

09-01 09:32:59.395 DEBUG [LocationAuthorization withPermission] 
  ℹ️  LocationAuthorization: Permission granted
09-01 09:32:59.408 WARN [TSGeofence normalizePendingExitIfStale] 
  ⚠️  TSGeofenceManager: Normalizing stale PENDING_EXIT -> OUTSIDE id=ba97741d-710b-4bf8-a8d6-850586ff7ea6 ageS=52163
09-01 09:32:59.415 DEBUG [n a] Updated geofence state ba97741d-710b-4bf8-a8d6-850586ff7ea6 (entry_state=0, hits=1)
09-01 09:32:59.423 DEBUG [TSGeofenceManager b] ℹ️  GeofencingClient removeGeofences SUCCESS
09-01 09:32:59.425 DEBUG [n a] Updated geofence state 6269f1ce-491f-4009-8667-d5426ea60515 (entry_state=0, hits=0)
09-01 09:32:59.429 DEBUG [n a] Updated geofence state d000f7ba-3fcb-4422-b09d-1e830aa1b0a1 (entry_state=0, hits=0)
09-01 09:32:59.432 DEBUG [n a] Updated geofence state f4ea619c-216d-44c3-9a1c-715fbeac25de (entry_state=0, hits=1)
09-01 09:32:59.434 DEBUG [n a] Updated geofence state 7a4e044a-73b5-460d-a75c-1fe09338cd77 (entry_state=0, hits=0)
09-01 09:32:59.435 DEBUG [TSGeofenceManager z] ℹ️  Persist monitored geofences: [ba97741d-710b-4bf8-a8d6-850586ff7ea6, c2040e8a-0154-4425-b4ca-ddc20051a35f, 826630a7-f52d-4fec-8eca-164f516a52eb, 32ba2fe6-e31a-4b1e-b66c-3500a5096a18]
09-01 09:32:59.435 DEBUG [EventManager c]   🛜 ⚡️ geofenceschange
09-01 09:32:59.460 DEBUG [TSGeofenceManager$e a] ℹ️  GeofencingClient addGeofences SUCCESS
09-01 09:32:59.460 DEBUG [TSGeofenceManager z] ℹ️  Persist monitored geofences: [ba97741d-710b-4bf8-a8d6-850586ff7ea6, c2040e8a-0154-4425-b4ca-ddc20051a35f, 826630a7-f52d-4fec-8eca-164f516a52eb, 32ba2fe6-e31a-4b1e-b66c-3500a5096a18, fe29824c-395c-4341-a2da-fa751327872c, 248a36ee-3333-47b9-9020-fea85de4873f, 6306aaaf-881d-41cd-9059-9c55be62978e, b19e60bc-5cd5-40e7-8b37-7aca5828dbed, dae4e4ff-0717-4349-baae-9a9ec9268a00, b58d1af0-ca5b-4f2f-9eac-419299669aeb]
09-01 09:32:59.460 DEBUG [TSGeofenceManager$e a] 
╔═════════════════════════════════════════════
║ TSGeofenceManager monitoring 10/167 within 2000 meters
╠═════════════════════════════════════════════
╟─ 🎾  ba97741d-710b-4bf8-a8d6-850586ff7ea6
╟─ 🎾  c2040e8a-0154-4425-b4ca-ddc20051a35f
╟─ 🎾  826630a7-f52d-4fec-8eca-164f516a52eb
╟─ 🎾  32ba2fe6-e31a-4b1e-b66c-3500a5096a18
╟─ 🎾  fe29824c-395c-4341-a2da-fa751327872c
╟─ 🎾  248a36ee-3333-47b9-9020-fea85de4873f
╟─ 🎾  6306aaaf-881d-41cd-9059-9c55be62978e
╟─ 🎾  b19e60bc-5cd5-40e7-8b37-7aca5828dbed
╟─ 🎾  dae4e4ff-0717-4349-baae-9a9ec9268a00
╟─ 🎾  b58d1af0-ca5b-4f2f-9eac-419299669aeb
╚═════════════════════════════════════════════
09-01 09:32:59.460 DEBUG [EventManager c]   🛜 ⚡️ geofenceschange
09-01 09:32:59.538 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 3
09-01 09:32:59.603 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 4
09-01 09:32:59.613 DEBUG [TSLocationManagerActivity a] locationsettings
09-01 09:32:59.631 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 5
09-01 09:32:59.666 DEBUG [LifecycleManager d] ☯️ onWindowFocusChanged: false
09-01 09:32:59.667 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
09-01 09:32:59.686 DEBUG [LifecycleManager d] ☯️ onWindowFocusChanged: true
09-01 09:32:59.687 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
09-01 09:32:59.693 DEBUG [TSLocationManagerActivity onDestroy] locationsettings
09-01 09:32:59.904 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 4
09-01 09:32:59.913 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 5
09-01 09:33:00.124 INFO [TSLocationManager a] 
╔═════════════════════════════════════════════
║ motionchange LocationResult: 1 (45ms old)
╠═════════════════════════════════════════════
╟─ 📍 Location[fused 33.594729,130.399801 hAcc=14.156 et=+11d17h27m29s95ms alt=57.79999923706055 vAcc=1.0 {Bundle[{requestId=1}]}], time: 1788222780079

09-01 09:33:00.125 INFO [TSLocationManager onSingleLocationResult] 
  🔵  Acquired motionchange position, isMoving: false
09-01 09:33:00.134 DEBUG [EventManager c]   🛜 ⚡️ location
09-01 09:33:00.135 DEBUG [EventManager c]   🛜 ⚡️ motionchange
09-01 09:33:00.136 DEBUG [TSGeofenceManager a] 
  🎾  Continue monitoring stationary region (radius: 150m 33.5947297,130.3998048 hAcc=7.086)
09-01 09:33:00.147 INFO [GeofencingProcessor handleGeofencingEvent] 
╔═════════════════════════════════════════════
║ Geofencing Event: ENTER
╠═════════════════════════════════════════════
╟─ fe29824c-395c-4341-a2da-fa751327872c
╚═════════════════════════════════════════════
09-01 09:33:00.148 INFO [GeofencingProcessor a] 
╔═════════════════════════════════════════════
║ Trigger vs Geofence center: fe29824c-395c-4341-a2da-fa751327872c
╠═════════════════════════════════════════════
╟─ 📍 Trigger=Location[fused 33.594729,130.399801 hAcc=14.156 et=+11d17h27m29s95ms alt=57.79999923706055 vAcc=1.0]
╟─ dist=164.89859m radius=200.0m
╟─ minPossibleDist=150.74258m (insideBy=-49.257416m)
╟─ triggerAge=68ms provider=fused
╚═════════════════════════════════════════════
09-01 09:33:00.150 DEBUG [n a] Updated geofence state fe29824c-395c-4341-a2da-fa751327872c (entry_state=1, hits=9)
09-01 09:33:00.152 DEBUG [EventManager c]   🛜 ⚡️ geofence
09-01 09:33:00.157 INFO [c0 a] 
  💾 ✅ 7ced4916-901b-49e0-b24a-d366dbf49304
09-01 09:33:00.183 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 6
09-01 09:33:00.188 INFO [BackgroundTaskManager$a a] ⏳ startBackgroundTask: 7
09-01 09:33:00.393 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 3
09-01 09:33:00.697 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 6
09-01 09:33:00.835 INFO [BackgroundTaskManager$a m] ⏳ stopBackgroundTask: 7
09-01 09:33:02.095 DEBUG [LifecycleManager d] ☯️ onWindowFocusChanged: false
09-01 09:33:02.097 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
09-01 09:33:04.202 DEBUG [LifecycleManager d] ☯️ onWindowFocusChanged: true
09-01 09:33:04.203 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions