react-native-background-geolocation
react-native-background-geolocation copied to clipboard
Android on location not working on foreground
BackgroundGeolocation.configure({
desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
distanceFilter: 50,
stationaryRadius:50,
startOnBoot: false,
debug:false,
stopOnTerminate: false,
locationProvider: BackgroundGeolocation.DISTANCE_FILTER_PROVIDER,
interval: 10000,
fastestInterval: 5000,
activitiesInterval: 10000,
stopOnStillActivity: false,
postTemplate: null
});
Your Environment
- Plugin version:^0.6.3
- Platform: Android
- OS version: Android 10
- Device manufacturer and model: Oppo A5
- Running in Simulator:
- React Native version:
- Plugin configuration options:
- Link to your project:
Context
Expected Behavior
Need foreground location updates for android device
Actual Behavior
Have not receiving any update on foreground android only for on location but works fine on ios
Possible Fix
Steps to Reproduce
Context
Debug logs
same issue
See https://github.com/mauron85/react-native-background-geolocation/issues/532 and use fork link in comments