-
Notifications
You must be signed in to change notification settings - Fork 45
Description
I need to send data to mysql database through php backend, configured as follows but no luck
BackgroundGeolocation.configure({
desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
stationaryRadius: 50,
distanceFilter: 50,
notificationTitle: 'Background tracking',
notificationText: 'enabled',
debug: true,
startOnBoot: true,
stopOnTerminate: true,
locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER,
interval: 10000,
fastestInterval: 5000,
activitiesInterval: 10000,
stopOnStillActivity: false,
url: 'http://example.com/the_Application/location_data',
httpHeaders: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
// customize post properties
postTemplate: {
latitude: '2.0909090',
longitude: '2.0909090',
token: 'DI-1-12122018_102321_1544610201',
battery : '0.8090'
// you can also add your own properties
}
});
Any suggestions welcome.