react-native-background-geolocation
react-native-background-geolocation copied to clipboard
Getting Location update from terminated state after 2000 meters in IOS
Your Environment
- Plugin version: 4.16.5
- Platform: iOS
- OS version:17.6.1
- Device manufacturer / model: IPhone 14 Pro Max
- React Native version (
react-native -v): 0.70.6 - Plugin config BackgroundGeolocation.ready({ debug: false, locationAuthorizationRequest: 'Always', showsBackgroundLocationIndicator: false, logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE, desiredAccuracy: desiredAccuracy ? desiredAccuracy : BackgroundGeolocation.DESIRED_ACCURACY_HIGH, deferTime: 0, startOnBoot: true, enableHeadless: true, preventSuspend: false, stopOnTerminate: false, elasticityMultiplier: 1, foregroundService: true, disableElasticity: false, enableTimestampMeta: false, disableStopDetection: false, geofenceModeHighAccuracy: true, useSignificantChangesOnly: false, disableAutoSyncOnCellular: false, disableMotionActivityUpdates: true, distanceFilter: distanceFilter ?? 9, disableLocationAuthorizationAlert: false, activityType: BackgroundGeolocation.ACTIVITY_TYPE_OTHER, locationAuthorizationAlert: { titleWhenNotEnabled: t('title_when_not_enabled'), titleWhenOff: t('title_when_off'), instructions: t('location_auth_alert_instructions'), cancelButton: t('location_auth_alert_cancel'), settingsButton: t('location_auth_alert_settings'), }, stopTimeout: 5, desiredOdometerAccuracy: 10, backgroundPermissionRationale: { title: 'Allow "App" to use your location?', message: 'Please select "Change to Always Allow" below so the App can access your location even when you are not using the app.', positiveAction: 'Change to "Always Allow"', negativeAction: 'Cancel', }, })
Expected Behaviour
It should give location update after 200 meters when app is in terminated State.
Actual Behaviour
It is giving location update after 2000 meters when app is in terminated State.
Steps to Reproduce
1.Install App with above Plugin Config. 2.Move App to terminated State & start on route with device. 3.It will give location update after about 2000 meters.