trackLocation method

void trackLocation({
  1. required double latitude,
  2. required double longitude,
})

Track a geolocation update.

Batch does not ask for location permission or acquire user location on your behalf. Acquire location permission and values on your own and communicate them to Batch (if needed) using this method.

Implementation

void trackLocation({required double latitude, required double longitude}) {
  _channel.invokeMethod(
      "profile.track.location", {"latitude": latitude, "longitude": longitude});
}