Skip to content

I need to send data to mysql database through php backend  #10

Description

@danushikay

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions