-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
My BackgroundGeolocation configure :
BackgroundGeolocation.configure({
desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
stationaryRadius: 50,
distanceFilter: 50,
notificationTitle: 'Background tracking',
notificationText: 'enabled',
debug: false,
startOnBoot: false,
stopOnTerminate: false,
locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER,
interval: 10000,
fastestInterval: 5000,
activitiesInterval: 10000,
notificationsEnabled:true,
url: 'http://192.168.81.15:3000/location',
httpHeaders: {
'X-FOO': 'bar'
},
// customize post properties
postTemplate: {
lat: '@latitude',
lon: '@longitude',
foo: 'bar' // you can also add your own properties
}
});
BackgroundGeolocation.on('location', (location) => {
console.log('[ERROR] BackgroundGeolocation ', JSON.stringify(location));
Alert.alert("Get Location"+ JSON.stringify(location))
});
Not getting location values when the android application is closed not trigger any action in react native side.
JuanDeLeon
Metadata
Metadata
Assignees
Labels
No labels