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

My app stops sending location on iOS when screen lock.

Open tuanduc2904 opened this issue 4 years ago • 9 comments

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

tuanduc2904 avatar Feb 27 '20 02:02 tuanduc2904

+1

plastic avatar Mar 06 '20 15:03 plastic

+1

Do you have any solution on ios yet?

tuanduc2904 avatar Mar 18 '20 07:03 tuanduc2904

+1

peterleng avatar May 06 '20 07:05 peterleng

+1

AdeelMughal avatar Jul 06 '20 07:07 AdeelMughal

Does anyone have a solution working?

maddoherty avatar Jul 14 '20 15:07 maddoherty

+1

lyseiha avatar Jul 23 '20 10:07 lyseiha

+1

HacerBusraKILIC avatar Aug 26 '20 09:08 HacerBusraKILIC

@tuanduc2904 hi did you found any solution

ferasabufares avatar Sep 13 '20 10:09 ferasabufares

same problem

nazarTrynko avatar Jan 26 '22 17:01 nazarTrynko