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

Service does not complete tracking

Open andreaMoyotl opened this issue 3 years ago • 6 comments

Your Environment

  • Plugin version: ^4.4.4
  • Platform: Android
  • OS version: Android
  • Device manufacturer / model: OPPO A16
  • React Native version (react-native -v): react-native-cli: 2.0.1

 react-native: 0.67.3
  • Plugin config
{
    autoSync: true,
    debug: false,
    desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
    disableElasticity: false,
    distanceFilter: 30,
    enableHeadless: true,
    fastestLocationUpdateInterval: 10000,
    foregroundService: true,
    geofenceProximityRadius: 1000,
    heartbeatInterval: 60,
    logLevel: BackgroundGeolocation.LOG_LEVEL_OFF,
    logMaxDays: 0,
    method: 'POST',
    preventSuspend: true,
    stopDetectionDelay: 1000,
    stopOnTerminate: false,
    stopTimeout: 5,
    triggerActivities: 'in_vehicle, on_bicycle, running, walking, on_foot',
    url: "https://my-services.the-system.test",
    persist: true,
    persistMode: BackgroundGeolocation.PERSIST_MODE_LOCATION,
}

Expected Behavior

The plugin shouldn't stop doing the tracking.

Actual Behavior

A route is made with a device exposed to changes of signal coverage. During a point in the route the plugin stops the tracking and does not reflect new registered points.

Context

A route is made with a device exposed to changes of signal coverage. This problem has occurred on several occasions with different devices without a common pattern.

andreaMoyotl avatar May 26 '22 23:05 andreaMoyotl

OS version: Android

“android” is not an OS Version.

changes of signal coverage

I’m not sure what “signal coverage” means.

see wiki Debugging and gather logs from the plugin using .emailLog method.

christocracy avatar May 26 '22 23:05 christocracy

Thanks for your answer.

Sorry, it's Android 11. With signal coverage I mean that sometimes the device can have 4g, 3g or no signal at all.

This issue doesn't happen with all the routes we have made (happens randomly). In an exercise the log sent an 408 error after this the plug-in didn't try to send any register even though we use BackgroundGeolocation.sync().

andreaMoyotl avatar May 27 '22 00:05 andreaMoyotl

Cellular connection doesn’t affect tracking. While outdoors, the plugin is probably using GPS.

most of my 13 test devices don’t even have a SIM card.

christocracy avatar May 27 '22 00:05 christocracy

Ok, we followed the instructions of https://dontkillmyapp.com/ to avoid the 408 error but it has not worked. Is there something else we can try or another cause?

andreaMoyotl avatar May 27 '22 00:05 andreaMoyotl

Provide logs

christocracy avatar May 27 '22 00:05 christocracy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

stale[bot] avatar Sep 21 '22 03:09 stale[bot]