react-native-background-geolocation: my application stops after a short time, after the update to android oreo

Your Environment

  • Plugin version:
  • Platform: Android 8
  • OS version:
  • Device manufacturer / model: Huawei mate 10 lite
  • React Native version (react-native -v): 0.49.5
  • Plugin config { “activityRecognitionInterval”: 8000, “allowIdenticalLocations”: false, “autoSync”: false, “autoSyncThreshold”: 0, “batchSync”: false, “debug”: false, “deferTime”: 0, “desiredAccuracy”: 10, “desiredOdometerAccuracy”: 100, “disableElasticity”: false, “disableStopDetection”: false, “distanceFilter”: 5, “elasticityMultiplier”: 1, “enableHeadless”: true, “extras”: {}, “fastestLocationUpdateInterval”: 1000, “forceReloadOnBoot”: false, “forceReloadOnGeofence”: false, “forceReloadOnHeartbeat”: false, “forceReloadOnLocationChange”: false, “forceReloadOnMotionChange”: false, “forceReloadOnSchedule”: false, “foregroundService”: true, “geofenceInitialTriggerEntry”: true, “geofenceProximityRadius”: 1000, “geofenceTemplate”: “”, “headers”: {}, “headlessJobService”: “com.transistorsoft.rnbackgroundgeolocation.HeadlessJobService”, “heartbeatInterval”: -1, “httpRootProperty”: “location”, “httpTimeout”: 60000, “isMoving”: false, “locationTemplate”: “”, “locationTimeout”: 60, “locationUpdateInterval”: 1000, “locationsOrderDirection”: “ASC”, “logLevel”: 5, “logMaxDays”: 1, “maxBatchSize”: -1, “maxDaysToPersist”: 1, “maxRecordsToPersist”: 0, “method”: “POST”, “minimumActivityRecognitionConfidence”: 50, “notificationColor”: “”, “notificationLargeIcon”: “”, “notificationPriority”: 0, “notificationSmallIcon”: “”, “notificationText”: “Location Service activated”, “notificationTitle”: “”, “params”: {}, “persist”: true, “schedule”: [], “startOnBoot”: true, “stationaryRadius”: 25, “stopAfterElapsedMinutes”: 0, “stopOnStationary”: false, “stopOnTerminate”: false, “stopTimeout”: 5, “triggerActivities”: “in_vehicle, on_bicycle, on_foot, running, walking”, “url”: “”, “enabled”: true, “schedulerEnabled”: false, “trackingMode”: 1, “odometer”: 1203219.75, “isFirstBoot”: false }

thank you !

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (12 by maintainers)

Most upvoted comments

There was some old plugin-code still lying around somewhere in your build. The headlessJobService class-name changed a few months ago.

It should look like this:

╔═════════════════════════════════════════════
║ TSLocationManager version: 3.0.16 (316)
╠═════════════════════════════════════════════
{
.
.
.
"headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessTask",

Not like this:

"headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessJobService",