react-native-background-geolocation
react-native-background-geolocation copied to clipboard
My app stops sending location on iOS when screen lock.
My app stops sending location on iOS when screen lock.
My code is below:
BackgroundGeolocation.configure({
desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
stationaryRadius: 50,
distanceFilter: 100,
notificationTitle: 'Background Location',
notificationText: 'Monitoring location',
debug: true,
startOnBoot: true,
stopOnTerminate: false,
locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER,
interval: 50000,
fastestInterval: 50000,
activitiesInterval: 50000,
stopOnStillActivity: false,
maxLocations: 1000,
url:
http://****:3030/user,
postTemplate: {
long: '@longitude',
lat: '@latitude',
},
});
BackgroundGeolocation.checkStatus(status => {
this.setState({isRunning: status.isRunning});
});
BackgroundGeolocation.on('location', location => { });
Please help me fix it. Thanks everyone
+1
+1
Do you have any solution on ios yet?
+1
+1
Does anyone have a solution working?
+1
+1
@tuanduc2904 hi did you found any solution
same problem