-
Notifications
You must be signed in to change notification settings - Fork 274
Description
Required Reading
- Confirmed
Plugin Version
4.18.0
Cordova platform
Installed platforms:
android 14.0.1
Cordova plugins
cordova-background-geolocation-lt 4.18.0 "BackgroundGeolocation"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-android-permissions 1.1.5 "Permissions"
cordova-plugin-background-fetch 7.2.4 "CDVBackgroundFetch"
cordova-plugin-background-mode 0.7.10 "BackgroundMode"
cordova-plugin-camera 7.0.0 "Camera"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-firebase-messaging 7.0.4 "FirebaseMessagingPlugin"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-inappbrowser 4.0.0 "InAppBrowser"
cordova-plugin-nativeaudio 3.0.9 "Cordova Native Audio"
cordova-plugin-nativegeocoder 3.4.1 "NativeGeocoder"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-sqlite-storage 7.0.0 "Cordova SQLite storage plugin - cordova-sqlite-storage plugin version"
Mobile operating-system(s)
- iOS
- Android
Device Manufacturer(s) and Model(s)
Samsung SM-P615; Samsung SM-A566B
Device operating-systems(s)
Android 13 -15
What happened?
We recently upgraded the plugin from version 4.16.5 to 4.18.0 and have encountered an issue affecting multiple Android devices. Post-upgrade, these devices are sending location data to our server every minute, even while stationary without any actual location change. This behavior was not observed in the previous version.
Upon reviewing the incoming location data, it appears that every time the location data point differs slightly from the previous one. As a result, the device treats them as unique entries and continues transmitting them to the server. However, the device does not have any movement at all. For reference, I’ve attached sample location logs illustrating this pattern.
Could you advise on the recommended approach to resolve this issue?
Plugin Code and/or Config
config: any = {
debug: false,
autoSync: true,
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
distanceFilter: 80,
elasticityMultiplier: 2,
stationaryRadius: 50,
fastestLocationUpdateInterval: 20000,
stopTimeout: 1,
stopOnTerminate: true,
heartbeatInterval: 120,
url: 'https://sampledomain.com'
httpTimeout: 10000
};