BackgroundGeolocation.configure({
locationProvider: BackgroundGeolocation.DISTANCE_FILTER_PROVIDER,
desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
stationaryRadius: 50,
distanceFilter: 100,
notificationTitle: '',
notificationText: 'enabled',
notificationsEnabled: false,
debug: true,
startOnBoot: false,
stopOnTerminate: false,
fastestInterval: 10000,
activitiesInterval: 10000,
stopOnStillActivity: false,
});
`
On location event only trigger while app opened. Not trigger while location onchange. This used to be smooth, spontaneously broken.
On location event function should be trigger while location onchange
On location event not triggering while location onchange
1.
2.
3.
4.
Dealing with exactly the same problem, but I was using locationProvider: BackgroundGeolocation.RAW_PROVIDER because it was necessary for iOS. On Android, I was not receiving location updates. Switched to locationProvider: BackgroundGeolocation.DISTANCE_FILTER_PROVIDER on Android resolved this issue for me.
Same issue using : locationProvider: BackgroundGeolocation.RAW_PROVIDER
As JorenVos said: switched to locationProvider: BackgroundGeolocation.DISTANCE_FILTER_PROVIDERon Android resolved this issue for me.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn't be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it's important. Thank you for your contributions.
Most helpful comment
Dealing with exactly the same problem, but I was using
locationProvider: BackgroundGeolocation.RAW_PROVIDERbecause it was necessary for iOS. On Android, I was not receiving location updates. Switched tolocationProvider: BackgroundGeolocation.DISTANCE_FILTER_PROVIDERon Android resolved this issue for me.